osgAnimation::Timeline Class Reference

Inheritance diagram for osgAnimation::Timeline:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 META_Object (osgAnimation, Timeline)
 Timeline ()
 Timeline (const Timeline &nc, const osg::CopyOp &op=osg::CopyOp::SHALLOW_COPY)
State 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)
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< FrameActionActionList
typedef std::map< int, ActionListActionLayers
typedef std::vector< CommandCommandList

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

Classes

struct  Command


Member Typedef Documentation

typedef std::pair<unsigned int, osg::ref_ptr<Action> > osgAnimation::Timeline::FrameAction [protected]

typedef std::vector<FrameAction> osgAnimation::Timeline::ActionList [protected]

typedef std::map<int, ActionList> osgAnimation::Timeline::ActionLayers [protected]

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

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

References _evaluating.

Referenced by evaluate().

void osgAnimation::Timeline::processPendingOperation (  )  [inline, protected]

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

References _actions.

Referenced by processPendingOperation(), and removeAction().

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

References _actions.

Referenced by addActionAt(), and processPendingOperation().

osgAnimation::Timeline::META_Object ( osgAnimation  ,
Timeline   
)

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

References _state.

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.

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

References _state, and Play.

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

References _currentFrame.

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

References _state, and Stop.

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

References _evaluating.

Referenced by addActionAt(), and removeAction().

bool osgAnimation::Timeline::isActive ( Action activeAction  )  [inline]

void osgAnimation::Timeline::removeAction ( Action action  )  [inline]

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]

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


Member Data Documentation

Referenced by update().

double osgAnimation::Timeline::_speed [protected]

Referenced by update().

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

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

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

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

Referenced by evaluate().

Referenced by update().

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

Referenced by getEvaluating(), and setEvaluating().


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

osg logo
Generated at Mon Mar 30 09:06:14 2009 for the OpenSceneGraph by doxygen 1.5.5.