osgAnimation::Timeline Class Reference

Inheritance diagram for osgAnimation::Timeline:

osgAnimation::Action osg::Object osg::Referenced

List of all members.

Public Types

enum  TimelineStatus { Play, Stop }
typedef std::vector< FrameActionActionList
typedef std::map< int, ActionListActionLayers

Public Member Functions

 Timeline ()
 Timeline (const Timeline &nc, const osg::CopyOp &op=osg::CopyOp::SHALLOW_COPY)
 META_Action (osgAnimation, Timeline)
TimelineStatus getStatus () const
const ActionListgetActionLayer (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)
void addActionNow (Action *action, int priority=0)
void clearActions ()
virtual void update (double simulationTime)
void setLastFrameEvaluated (unsigned int frame)
void setEvaluating (bool state)
void traverse (ActionVisitor &visitor)
void setStats (osg::Stats *stats)
osg::StatsgetStats ()
void collectStats (bool state)
osgAnimation::StatsActionVisitorgetStatsVisitor ()
const ActionLayersgetActionLayers () const
void processPendingOperation ()
void setAnimationManager (AnimationManagerBase *)

Protected Types

typedef std::vector< CommandCommandList

Protected Member Functions

void internalRemoveAction (Action *action)
void internalAddAction (int priority, const FrameAction &ftl)

Protected Attributes

osg::observer_ptr
< AnimationManagerBase
_animationManager
ActionLayers _actions
double _lastUpdate
double _speed
unsigned int _currentFrame
unsigned int _previousFrameEvaluated
bool _initFirstFrame
TimelineStatus _state
bool _collectStats
osg::ref_ptr< osg::Stats_stats
osg::ref_ptr
< osgAnimation::StatsActionVisitor
_statsVisitor
bool _evaluating
CommandList _addActionOperations
ActionList _removeActionOperations

Classes

struct  Command


Member Typedef Documentation

typedef std::vector<Command> osgAnimation::Timeline::CommandList [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

osgAnimation::Timeline::META_Action ( osgAnimation  ,
Timeline   
)

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

const ActionList& osgAnimation::Timeline::getActionLayer ( int  i  )  [inline]

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

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

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

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

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

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

bool osgAnimation::Timeline::isActive ( Action activeAction  ) 

void osgAnimation::Timeline::removeAction ( Action action  ) 

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

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

void osgAnimation::Timeline::addActionNow ( Action action,
int  priority = 0 
)

void osgAnimation::Timeline::clearActions (  ) 

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

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

void osgAnimation::Timeline::setEvaluating ( bool  state  )  [inline]

void osgAnimation::Timeline::traverse ( ActionVisitor visitor  )  [virtual]

Reimplemented from osgAnimation::Action.

void osgAnimation::Timeline::setStats ( osg::Stats stats  ) 

osg::Stats* osgAnimation::Timeline::getStats (  ) 

void osgAnimation::Timeline::collectStats ( bool  state  ) 

osgAnimation::StatsActionVisitor* osgAnimation::Timeline::getStatsVisitor (  ) 

const ActionLayers& osgAnimation::Timeline::getActionLayers (  )  const [inline]

void osgAnimation::Timeline::processPendingOperation (  ) 

void osgAnimation::Timeline::setAnimationManager ( AnimationManagerBase  ) 

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

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


Member Data Documentation

double osgAnimation::Timeline::_speed [protected]

Reimplemented from osgAnimation::Action.

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

Reimplemented from osgAnimation::Action.


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

Generated on Fri Mar 19 19:52:53 2010 for openscenegraph by  doxygen 1.5.6