Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes

osgAnimation::Timeline Class Reference

Inheritance diagram for osgAnimation::Timeline:
Inheritance graph
[legend]

List of all members.

Classes

struct  Command

Public Member Functions

 META_Object (osgAnimation, Timeline)
 Timeline ()
 Timeline (const Timeline &nc, const osg::CopyOp &op=osg::CopyOp::SHALLOW_COPY)
State getStatus () const
const ActionList & getActionLayer (int i)
unsigned int getCurrentFrame () const
double getCurrentTime () const
void play ()
void gotoFrame (unsigned int frame)
void stop ()
bool getEvaluating () const
bool isActive (Action *activeAction)
void removeAction (Action *action)
virtual void addActionAt (unsigned int frame, Action *action, int priority=0)
virtual void addActionAt (double t, Action *action, int priority=0)
virtual void evaluate (unsigned int frame)
virtual void evaluateCallback (unsigned int frame)
virtual void update (double simulationTime)

Protected Types

enum  State { Play, Stop }
typedef std::pair< unsigned
int, osg::ref_ptr< Action > > 
FrameAction
typedef std::vector< FrameAction > ActionList
typedef std::map< int, ActionList > ActionLayers
typedef std::vector< Command > CommandList

Protected Member Functions

void setEvaluating (bool state)
void processPendingOperation ()
void internalRemoveAction (Action *action)
void internalAddAction (int priority, const FrameAction &ftl)

Protected Attributes

ActionLayers _actions
double _lastUpdate
double _speed
unsigned int _currentFrame
unsigned int _fps
unsigned int _numberFrame
unsigned int _previousFrameEvaluated
bool _loop
bool _initFirstFrame
State _state
bool _evaluating
CommandList _addActionOperations
ActionList _removeActionOperations

Member Typedef Documentation

typedef std::map<int, ActionList> osgAnimation::Timeline::ActionLayers [protected]
typedef std::vector<FrameAction> osgAnimation::Timeline::ActionList [protected]
typedef std::vector<Command> osgAnimation::Timeline::CommandList [protected]
typedef std::pair<unsigned int, osg::ref_ptr<Action> > osgAnimation::Timeline::FrameAction [protected]

Member Enumeration Documentation

Enumerator:
Play 
Stop 

Constructor & Destructor Documentation

osgAnimation::Timeline::Timeline (  ) 
osgAnimation::Timeline::Timeline ( const Timeline &  nc,
const osg::CopyOp &  op = osg::CopyOp::SHALLOW_COPY 
)

Member Function Documentation

virtual void osgAnimation::Timeline::addActionAt ( unsigned int  frame,
Action *  action,
int  priority = 0 
) [inline, virtual]
virtual void osgAnimation::Timeline::addActionAt ( double  t,
Action *  action,
int  priority = 0 
) [inline, virtual]

References _fps, and addActionAt().

virtual void osgAnimation::Timeline::evaluate ( unsigned int  frame  )  [inline, virtual]
virtual void osgAnimation::Timeline::evaluateCallback ( unsigned int  frame  )  [inline, virtual]
const ActionList& osgAnimation::Timeline::getActionLayer ( int  i  )  [inline]

References _actions.

unsigned int osgAnimation::Timeline::getCurrentFrame (  )  const [inline]

References _currentFrame.

double osgAnimation::Timeline::getCurrentTime (  )  const [inline]

References _currentFrame, and _fps.

bool osgAnimation::Timeline::getEvaluating (  )  const [inline]

References _evaluating.

Referenced by addActionAt(), and removeAction().

State osgAnimation::Timeline::getStatus (  )  const [inline]

References _state.

void osgAnimation::Timeline::gotoFrame ( unsigned int  frame  )  [inline]

References _currentFrame.

void osgAnimation::Timeline::internalAddAction ( int  priority,
const FrameAction &  ftl 
) [inline, protected]

References _actions.

Referenced by addActionAt(), and processPendingOperation().

void osgAnimation::Timeline::internalRemoveAction ( Action *  action  )  [inline, protected]

References _actions.

Referenced by processPendingOperation(), and removeAction().

bool osgAnimation::Timeline::isActive ( Action *  activeAction  )  [inline]
osgAnimation::Timeline::META_Object ( osgAnimation  ,
Timeline   
)
void osgAnimation::Timeline::play (  )  [inline]

References _state.

void osgAnimation::Timeline::processPendingOperation (  )  [inline, protected]
void osgAnimation::Timeline::removeAction ( Action *  action  )  [inline]
void osgAnimation::Timeline::setEvaluating ( bool  state  )  [inline, protected]

References _evaluating.

Referenced by evaluate().

void osgAnimation::Timeline::stop (  )  [inline]

References _state.

virtual void osgAnimation::Timeline::update ( double  simulationTime  )  [inline, virtual]

Member Data Documentation

unsigned int osgAnimation::Timeline::_currentFrame [protected]

Referenced by getEvaluating(), and setEvaluating().

unsigned int osgAnimation::Timeline::_fps [protected]

Referenced by addActionAt(), getCurrentTime(), and update().

Referenced by update().

Referenced by update().

unsigned int osgAnimation::Timeline::_numberFrame [protected]

Referenced by evaluate().

double osgAnimation::Timeline::_speed [protected]

Referenced by update().

Referenced by getStatus(), play(), stop(), and update().


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

osg logo
Generated at Wed Nov 3 2010 02:40:17 for the OpenSceneGraph by doxygen 1.7.1.