Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <DynamicMotionSequence.h>
Inheritance diagram for DynamicMotionSequence:
See MotionSequenceMC for documentation on its members
Definition at line 10 of file DynamicMotionSequence.h.
Public Member Functions | |
DynamicMotionSequence () | |
constructor | |
DynamicMotionSequence (const char *filename) | |
constructor, loads from a file and then resets the playtime to beginning and begins to play | |
virtual | ~DynamicMotionSequence () |
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 std::vector< Move > | 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 | |
std::vector< Move_idx_t > | erased |
recycles erased keyframes, can't just shift elements in moves, it would throw of index numbers in Move structures |
|
shorthand for the ListMemBuf that stores all of the movement frames
Definition at line 76 of file DynamicMotionSequence.h. |
|
constructor
Definition at line 13 of file DynamicMotionSequence.h. |
|
constructor, loads from a file and then resets the playtime to beginning and begins to play
Definition at line 15 of file DynamicMotionSequence.h. References clear(), erased, LoadSave::LoadFile(), moves, and MotionSequence::setPlayTime(). |
|
destructor
Definition at line 17 of file DynamicMotionSequence.h. |
|
empties out the sequence (constant time operation - faster than a series of pops)
Implements MotionSequence. Definition at line 58 of file DynamicMotionSequence.h. References erased, MotionSequence::invalid_move, moves, MotionSequence::nexts, ERS210Info::NumOutputs, MotionSequence::prevs, MotionSequence::setPlayTime(), and MotionSequence::starts. |
|
causes subclass to mark the corresponding Move structure as free
Implements MotionSequence. Definition at line 94 of file DynamicMotionSequence.h. References erased. |
|
returns the Move struct corresponding to x in the subclass's actual data structure
Implements MotionSequence. Definition at line 83 of file DynamicMotionSequence.h. References moves. |
|
returns the Move struct corresponding to x in the subclass's actual data structure
Implements MotionSequence. Definition at line 82 of file DynamicMotionSequence.h. References moves. |
|
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 71 of file DynamicMotionSequence.h. |
|
returns the number of used key frames (Move's) which have been stored by the instantiation MotionSequence subclass
Implements MotionSequence. Definition at line 72 of file DynamicMotionSequence.h. |
|
causes subclass to create a new Move structure, returns its index
Implements MotionSequence. Definition at line 84 of file DynamicMotionSequence.h. References erased, MotionSequence::Move_idx_t, and moves. |
|
Sets prev and next to the appropriate values for the given time and output index.
Implements MotionSequence. Definition at line 95 of file DynamicMotionSequence.h. References MotionSequence::invalid_move, and moves. |
|
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 33 of file DynamicMotionSequence.h. References MotionSequence::calcOutput(), ERS210Info::FrameTime, MotionSequence::getOutputCmd(), MotionSequence::invalid_move, MotionSequence::isPlaying(), motman, MotionSequence::Move_idx_t, moves, MotionSequence::nexts, ERS210Info::NumFrames, ERS210Info::NumOutputs, MotionSequence::playtime, MotionSequence::prevs, MotionManager::setOutput(), setRange(), OutputCmd::unset(), and MotionSequence::updateOutputs(). |
|
recycles erased keyframes, can't just shift elements in moves, it would throw of index numbers in Move structures
Definition at line 80 of file DynamicMotionSequence.h. |
|
stores all of the movement keyframes
Definition at line 79 of file DynamicMotionSequence.h. |
Tekkotsu v1.4 |
Generated Sat Jul 19 00:08:54 2003 by Doxygen 1.3.2 |