Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

DynamicMotionSequenceNode Class Reference

A StateNode for playing a DynamicMotionSequence (and looping it if desired). More...

#include <DynamicMotionSequenceNode.h>

Inheritance diagram for DynamicMotionSequenceNode:

Detailed Description

A StateNode for playing a DynamicMotionSequence (and looping it if desired).

Definition at line 21 of file DynamicMotionSequenceNode.h.

List of all members.

Public Member Functions

 DynamicMotionSequenceNode ()
 constructor
 DynamicMotionSequenceNode (const std::string &name, const std::string &file="", bool loop=false)
 constructor
virtual void preStart ()
 Adds the motion command to the motion manager, but stops it from running until the user has a chance to program it.
virtual void postStart ()
 Adds a listener and then starts the motion command.
virtual void setFile (const std::string &file)
 sets the file to play
virtual void setLooping (bool loop)
 turns looping on or off
virtual void doEvent ()
 Assumes the event is a completion event from the motion, throws a corresponding state node completion event.
virtual bool getLooping ()
 returns true if currently looping

Protected Member Functions

void update (const std::string &file)
 resets the motion command and starts it playing

Protected Attributes

bool looping
 true if we should loop
std::string filename
 filename of current motion sequence

Constructor & Destructor Documentation

DynamicMotionSequenceNode::DynamicMotionSequenceNode (  ) 

constructor

Definition at line 24 of file DynamicMotionSequenceNode.h.

DynamicMotionSequenceNode::DynamicMotionSequenceNode ( const std::string &  name,
const std::string &  file = "",
bool  loop = false 
)

constructor

Definition at line 29 of file DynamicMotionSequenceNode.h.


Member Function Documentation

virtual void DynamicMotionSequenceNode::doEvent (  )  [virtual]

Assumes the event is a completion event from the motion, throws a corresponding state node completion event.

Reimplemented from MCNodeBase.

Definition at line 59 of file DynamicMotionSequenceNode.h.

virtual bool DynamicMotionSequenceNode::getLooping (  )  [virtual]

returns true if currently looping

Definition at line 69 of file DynamicMotionSequenceNode.h.

virtual void DynamicMotionSequenceNode::postStart (  )  [virtual]

Adds a listener and then starts the motion command.

Reimplemented from MCNode< DynamicMotionSequence, defDynamicMotionSequenceNodeName, defDynamicMotionSequenceNodeDesc, true >.

Definition at line 43 of file DynamicMotionSequenceNode.h.

virtual void DynamicMotionSequenceNode::preStart (  )  [virtual]

Adds the motion command to the motion manager, but stops it from running until the user has a chance to program it.

Reimplemented from MCNode< DynamicMotionSequence, defDynamicMotionSequenceNodeName, defDynamicMotionSequenceNodeDesc, true >.

Definition at line 33 of file DynamicMotionSequenceNode.h.

virtual void DynamicMotionSequenceNode::setFile ( const std::string &  file  )  [virtual]

sets the file to play

Definition at line 49 of file DynamicMotionSequenceNode.h.

virtual void DynamicMotionSequenceNode::setLooping ( bool  loop  )  [virtual]

turns looping on or off

Definition at line 57 of file DynamicMotionSequenceNode.h.

void DynamicMotionSequenceNode::update ( const std::string &  file  )  [protected]

resets the motion command and starts it playing

Definition at line 74 of file DynamicMotionSequenceNode.h.

Referenced by preStart(), and setFile().


Member Data Documentation

std::string DynamicMotionSequenceNode::filename [protected]

filename of current motion sequence

Definition at line 85 of file DynamicMotionSequenceNode.h.

Referenced by preStart(), setFile(), and update().

true if we should loop

Definition at line 84 of file DynamicMotionSequenceNode.h.

Referenced by doEvent(), getLooping(), and setLooping().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:06 2016 by Doxygen 1.6.3