#include <HTCObjectRotate.h>

Public Member Functions

 HTCObjectRotate (HBaseView *view, int DoRepeat=0, int DoCapture=1)
 
 HTCObjectRotate (HTCObjectRotate *mommy)
 
int OnLButtonDown (HEventInfo &hevent)
 
bool OnSignal (int signal)
 
void SetDeleteOnUnRegister ()
 
bool Tick (float request_time, float actual_time)
 
void UnRegister ()
 
- Public Member Functions inherited from HBaseOperator
int Capture ()
 Returns whether we are currently in mouse capture mode. See this class' constructor for a more detailed description of what this means. This method has been deprecated.
 
virtual HBaseOperatorClone ()
 
HPoint const GetFirstPoint ()
 Returns the initial selection point.
 
virtual const char * GetName ()
 
HPoint const GetNewPoint ()
 Returns the current selection point.
 
HBaseViewGetView ()
 Returns a pointer to the view that this operator is associated with.
 
 HBaseOperator (HBaseView *view, int DoRepeat=0, int DoCapture=1)
 
virtual int OnKeyDown (HEventInfo &hevent)
 
virtual int OnKeyUp (HEventInfo &hevent)
 
virtual int OnLButtonDblClk (HEventInfo &hevent)
 
virtual int OnLButtonDownAndMove (HEventInfo &hevent)
 
virtual int OnLButtonUp (HEventInfo &hevent)
 
virtual int OnLRButtonDownAndMove (HEventInfo &hevent)
 
virtual int OnMButtonDblClk (HEventInfo &hevent)
 
virtual int OnMButtonDown (HEventInfo &hevent)
 
virtual int OnMButtonDownAndMove (HEventInfo &hevent)
 
virtual int OnMButtonUp (HEventInfo &hevent)
 
virtual int OnMouseMove (HEventInfo &hevent)
 
virtual int OnMouseWheel (HEventInfo &hevent)
 
virtual int OnNoButtonDownAndMove (HEventInfo &hevent)
 
virtual int OnRButtonDblClk (HEventInfo &hevent)
 
virtual int OnRButtonDown (HEventInfo &hevent)
 
virtual int OnRButtonDownAndMove (HEventInfo &hevent)
 
virtual int OnRButtonUp (HEventInfo &hevent)
 
virtual int OnTimer (HEventInfo &hevent)
 
virtual int OnTouchesDown (HEventInfo &hevent)
 
virtual int OnTouchesMove (HEventInfo &hevent)
 
virtual int OnTouchesUp (HEventInfo &hevent)
 
virtual bool OperatorStarted ()
 Operator has been started if true, and has not been started if false.
 
int Repeat ()
 Returns whether the operation is repeatable. This method has been deprecated.
 
void SetFirstPoint (HPoint const &new_point)
 Sets the initial selection point.
 
void SetMapTouchesToMouseEvents (bool val)
 Touch Events are mapped to mouse events if true, and are not if false.
 
void SetNewPoint (HPoint const &new_point)
 Sets the current selection point.
 
void SetOperatorStarted (bool val)
 Operator has been started if true, and has not been started if false.
 
void SetView (HBaseView *new_view)
 Sets the view that this operator is associated with.
 
- Public Member Functions inherited from HTClient
float GetInterval () const
 
float GetNextRequest () const
 
int GetPriority () const
 
HTCStyle GetStyle () const
 
HTClientTickFunction GetTickFunction () const
 
void * GetUserData () const
 
 HTClient (float interval=0.1f, HTCStyle style=HTCS_Invalid, HTClientTickFunction tick_function=0, void *user_data=0)
 
void SetInterval (float interval)
 
void SetNextRequest (float nr)
 
void SetPriorityLowest ()
 
void SetStyle (HTCStyle style)
 
void SetTickFunction (HTClientTickFunction tick_function)
 
void SetUserData (void *user_data)
 

Protected Attributes

float m_angle
 
HPoint m_centroid
 
int m_cookie
 
bool m_delete_on_unregister
 
float m_duration
 
HC_KEY m_key
 
float m_original_matrix [16]
 
bool m_original_matrix_valid
 
HC_KEY m_segkey
 
float m_start_time
 
int m_state
 
- Protected Attributes inherited from HBaseOperator
bool m_bMapTouchesToMouseEvents
 Indicates if touch events are mapped to mouse events.
 
bool m_bOpStarted
 Indicates whether the operator has already 'started'. More...
 
int m_doCapture
 Integer indicating whether to capture mouse on button down and release on button up. This parameter has been deprecated.
 
int m_doRepeat
 Integer indicating if the operator is repeatable . This parameter has been deprecated.
 
HPoint m_ptFirst
 Initial selection point.
 
HPoint m_ptNew
 Current selection point.
 
HBaseViewm_pView
 The HOOPS view corresponding to this operator.
 
HCutGeometryVisibility m_TempCutGeometryVisibility
 stores original cut geometry visibility
 
HShadowMode m_TempShadowMode
 stores original shadow mode
 
- Protected Attributes inherited from HTClient
float mt_interval
 
float mt_next_request
 
int mt_priority
 
HTCStyle mt_style
 
HTClientTickFunction mt_tick_function
 
void * mt_user_data
 

Additional Inherited Members

- Protected Member Functions inherited from HBaseOperator
bool IsSpecialKey (HC_KEY key)
 

Detailed Description

HTCObjectRotate is a reference implementation of a timer client. It is the first of what we hope will be a long list of objects to make use of the centralized timer service in MVO provided by the HTManager class. It is not necessarily meant to do anything useful except serve as an example of how it is possible to do animation in the context of MVO without completely

Constructor & Destructor Documentation

◆ HTCObjectRotate() [1/2]

HTCObjectRotate::HTCObjectRotate ( HBaseView view,
int  DoRepeat = 0,
int  DoCapture = 1 
)

constructor

◆ HTCObjectRotate() [2/2]

HTCObjectRotate::HTCObjectRotate ( HTCObjectRotate mommy)

constructor that accepts pointer to a parent HTCObjectRotate object

Member Function Documentation

◆ OnLButtonDown()

int HTCObjectRotate::OnLButtonDown ( HEventInfo hevent)
virtual

Overrides HBaseOperator

Reimplemented from HBaseOperator.

◆ OnSignal()

bool HTCObjectRotate::OnSignal ( int  signal)

Handles signals delivered from other objects

◆ SetDeleteOnUnRegister()

void HTCObjectRotate::SetDeleteOnUnRegister ( )
inline

Makes HTCObjectRotate clean up after itself, as opposed to having a delete call required after everything is finished

◆ Tick()

bool HTCObjectRotate::Tick ( float  request_time,
float  actual_time 
)
virtual

Overrides HTClient.

Reimplemented from HTClient.

◆ UnRegister()

void HTCObjectRotate::UnRegister ( )

Kills the animation (and possibly deletes *this, depending on the status of m_delete_on_unregister, as described above).

Member Data Documentation

◆ m_angle

float HTCObjectRotate::m_angle
protected

The current rotation angle

◆ m_centroid

HPoint HTCObjectRotate::m_centroid
protected

Centroid of segment to be rotated in object space

◆ m_cookie

int HTCObjectRotate::m_cookie
protected

The key that needs to be passed to HBaseView::UnSetEventNotify()

◆ m_delete_on_unregister

bool HTCObjectRotate::m_delete_on_unregister
protected

If true, object will delete(this) upon UnRegister

◆ m_duration

float HTCObjectRotate::m_duration
protected

The length of the animation

◆ m_key

HC_KEY HTCObjectRotate::m_key
protected

The object getting rotated. Can be geometry or segment.

◆ m_original_matrix

float HTCObjectRotate::m_original_matrix[16]
protected

The original modelling matrix in the m_segkey segment, if applicable. Left uninitialized if !m_original_matrix_valid

◆ m_original_matrix_valid

bool HTCObjectRotate::m_original_matrix_valid
protected

If true, m_segkey contained a modelling matrix at the start that needs preserving

◆ m_segkey

HC_KEY HTCObjectRotate::m_segkey
protected

The key of the object's owner segment, into which modelling matrices are put (or possibly the same as m_key, if m_key itself refers to a segment)

◆ m_start_time

float HTCObjectRotate::m_start_time
protected

The time at which the animation started, as reported by HC_Show_Time

◆ m_state

int HTCObjectRotate::m_state
protected

An identifier to describe the current state of the animation. Legal values are HTCOR_Resting and HTCOR_Animating.


The documentation for this class was generated from the following file: