#include <HTCObjectRotate.h>
|
| 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 () |
|
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 HBaseOperator * | Clone () |
|
HPoint const | GetFirstPoint () |
| Returns the initial selection point.
|
|
virtual const char * | GetName () |
|
HPoint const | GetNewPoint () |
| Returns the current selection point.
|
|
HBaseView * | GetView () |
| 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.
|
|
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) |
|
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
◆ HTCObjectRotate() [1/2]
HTCObjectRotate::HTCObjectRotate |
( |
HBaseView * |
view, |
|
|
int |
DoRepeat = 0 , |
|
|
int |
DoCapture = 1 |
|
) |
| |
◆ HTCObjectRotate() [2/2]
◆ OnLButtonDown()
int HTCObjectRotate::OnLButtonDown |
( |
HEventInfo & |
hevent | ) |
|
|
virtual |
◆ 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 |
◆ UnRegister()
void HTCObjectRotate::UnRegister |
( |
| ) |
|
Kills the animation (and possibly deletes *this, depending on the status of m_delete_on_unregister, as described above).
◆ 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: