Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
MotionSequenceMC< MAXMOVE > Class Template Reference#include <MotionSequenceMC.h>
Inheritance diagram for MotionSequenceMC< MAXMOVE >: ![]() Detailed Descriptiontemplate<unsigned int MAXMOVE>
Instantiates MotionSequences - when you want to make a new MotionSequence, make one of these.
|
Public Member Functions | |
MotionSequenceMC () | |
constructor | |
MotionSequenceMC (const char *filename) | |
constructor, loads from a file and then resets the playtime to beginning and begins to play | |
virtual | ~MotionSequenceMC () |
destructor | |
virtual int | updateOutputs () |
is called once per update cycle, can do any processing you need to change your priorities or set output commands on the MotionManager | |
virtual void | clear () |
empties out the sequence (constant time operation - faster than a series of pops) | |
virtual unsigned int | getMaxFrames () const |
returns the maximum number of key frames (Move's) which can be stored, determined by the instantiating MotionSequenceMC's template parameter | |
virtual unsigned int | getUsedFrames () const |
returns the number of used key frames (Move's) which have been stored by the instantiation MotionSequence subclass | |
Protected Types | |
typedef ListMemBuf< Move, MAXMOVE, Move_idx_t > | list_t |
shorthand for the ListMemBuf that stores all of the movement frames | |
Protected Member Functions | |
virtual Move & | getKeyFrame (Move_idx_t x) |
returns the Move struct corresponding to x in the subclass's actual data structure | |
virtual const Move & | getKeyFrame (Move_idx_t x) const |
returns the Move struct corresponding to x in the subclass's actual data structure | |
virtual Move_idx_t | newKeyFrame () |
causes subclass to create a new Move structure, returns its index | |
virtual void | eraseKeyFrame (Move_idx_t x) |
causes subclass to mark the corresponding Move structure as free | |
void | setRange (unsigned int t, Move_idx_t &prev, Move_idx_t &next) const |
Sets prev and next to the appropriate values for the given time and output index. | |
Protected Attributes | |
list_t | moves |
stores all of the movement keyframes |
|
shorthand for the ListMemBuf that stores all of the movement frames
Definition at line 310 of file MotionSequenceMC.h. |
|
constructor
Definition at line 224 of file MotionSequenceMC.h. |
|
constructor, loads from a file and then resets the playtime to beginning and begins to play
Definition at line 230 of file MotionSequenceMC.h. |
|
destructor
Definition at line 238 of file MotionSequenceMC.h. |
|
empties out the sequence (constant time operation - faster than a series of pops)
Implements MotionSequence. Definition at line 294 of file MotionSequenceMC.h. Referenced by MotionSequenceMC< MAXMOVE >::MotionSequenceMC(). |
|
causes subclass to mark the corresponding Move structure as free
Implements MotionSequence. Definition at line 323 of file MotionSequenceMC.h. |
|
returns the Move struct corresponding to x in the subclass's actual data structure
Implements MotionSequence. Definition at line 316 of file MotionSequenceMC.h. |
|
returns the Move struct corresponding to x in the subclass's actual data structure
Implements MotionSequence. Definition at line 315 of file MotionSequenceMC.h. |
|
returns the maximum number of key frames (Move's) which can be stored, determined by the instantiating MotionSequenceMC's template parameter
Implements MotionSequence. Definition at line 305 of file MotionSequenceMC.h. |
|
returns the number of used key frames (Move's) which have been stored by the instantiation MotionSequence subclass
Implements MotionSequence. Definition at line 306 of file MotionSequenceMC.h. |
|
causes subclass to create a new Move structure, returns its index
Implements MotionSequence. Definition at line 317 of file MotionSequenceMC.h. |
|
Sets prev and next to the appropriate values for the given time and output index.
Implements MotionSequence. Definition at line 324 of file MotionSequenceMC.h. Referenced by MotionSequenceMC< MAXMOVE >::updateOutputs(). |
|
is called once per update cycle, can do any processing you need to change your priorities or set output commands on the MotionManager
Reimplemented from MotionSequence. Definition at line 269 of file MotionSequenceMC.h. |
|
stores all of the movement keyframes
Definition at line 313 of file MotionSequenceMC.h. Referenced by MotionSequenceMC< MAXMOVE >::clear(), MotionSequenceMC< MAXMOVE >::eraseKeyFrame(), MotionSequenceMC< MAXMOVE >::getKeyFrame(), MotionSequenceMC< MAXMOVE >::getMaxFrames(), MotionSequenceMC< MAXMOVE >::getUsedFrames(), MotionSequenceMC< MAXMOVE >::MotionSequenceMC(), MotionSequenceMC< MAXMOVE >::newKeyFrame(), MotionSequenceMC< MAXMOVE >::setRange(), and MotionSequenceMC< MAXMOVE >::updateOutputs(). |
Tekkotsu v2.2 |
Generated Tue Oct 19 14:20:20 2004 by Doxygen 1.3.9.1 |