
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 |
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] |
enum osgAnimation::Timeline::State [protected] |
| osgAnimation::Timeline::Timeline | ( | ) |
| osgAnimation::Timeline::Timeline | ( | const Timeline & | nc, | |
| const osg::CopyOp & | op = osg::CopyOp::SHALLOW_COPY | |||
| ) |
| virtual void osgAnimation::Timeline::addActionAt | ( | double | t, | |
| Action * | action, | |||
| int | priority = 0 | |||
| ) | [inline, virtual] |
References _fps, and addActionAt().
| virtual void osgAnimation::Timeline::addActionAt | ( | unsigned int | frame, | |
| Action * | action, | |||
| int | priority = 0 | |||
| ) | [inline, virtual] |
References _addActionOperations, getEvaluating(), and internalAddAction().
Referenced by addActionAt().
| virtual void osgAnimation::Timeline::evaluate | ( | unsigned int | frame | ) | [inline, virtual] |
| virtual void osgAnimation::Timeline::evaluateCallback | ( | unsigned int | frame | ) | [inline, virtual] |
References _actions, osgAnimation::Action::evaluateCallback(), osgAnimation::Action::getNumFrames(), and processPendingOperation().
Referenced by evaluate().
| 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] |
| void osgAnimation::Timeline::gotoFrame | ( | unsigned int | frame | ) | [inline] |
References _currentFrame.
| void osgAnimation::Timeline::internalAddAction | ( | int | priority, | |
| const FrameAction & | ftl | |||
| ) | [inline, protected] |
| void osgAnimation::Timeline::internalRemoveAction | ( | Action * | action | ) | [inline, protected] |
| bool osgAnimation::Timeline::isActive | ( | Action * | activeAction | ) | [inline] |
References _actions, _currentFrame, and osgAnimation::Action::getNumFrames().
| osgAnimation::Timeline::META_Object | ( | osgAnimation | , | |
| Timeline | ||||
| ) |
| void osgAnimation::Timeline::processPendingOperation | ( | ) | [inline, protected] |
References _addActionOperations, _removeActionOperations, internalAddAction(), and internalRemoveAction().
Referenced by evaluateCallback().
| void osgAnimation::Timeline::removeAction | ( | Action * | action | ) | [inline] |
References _removeActionOperations, getEvaluating(), and internalRemoveAction().
| void osgAnimation::Timeline::setEvaluating | ( | bool | state | ) | [inline, protected] |
| virtual void osgAnimation::Timeline::update | ( | double | simulationTime | ) | [inline, virtual] |
References _currentFrame, _fps, _initFirstFrame, _lastUpdate, _speed, _state, evaluate(), and Play.
ActionLayers osgAnimation::Timeline::_actions [protected] |
Referenced by evaluate(), evaluateCallback(), getActionLayer(), internalAddAction(), internalRemoveAction(), and isActive().
Referenced by addActionAt(), and processPendingOperation().
unsigned int osgAnimation::Timeline::_currentFrame [protected] |
Referenced by evaluate(), getCurrentFrame(), getCurrentTime(), gotoFrame(), isActive(), and update().
bool osgAnimation::Timeline::_evaluating [protected] |
Referenced by getEvaluating(), and setEvaluating().
unsigned int osgAnimation::Timeline::_fps [protected] |
Referenced by addActionAt(), getCurrentTime(), and update().
bool osgAnimation::Timeline::_initFirstFrame [protected] |
Referenced by update().
double osgAnimation::Timeline::_lastUpdate [protected] |
Referenced by update().
bool osgAnimation::Timeline::_loop [protected] |
unsigned int osgAnimation::Timeline::_numberFrame [protected] |
unsigned int osgAnimation::Timeline::_previousFrameEvaluated [protected] |
Referenced by evaluate().
Referenced by processPendingOperation(), and removeAction().
double osgAnimation::Timeline::_speed [protected] |
Referenced by update().
State osgAnimation::Timeline::_state [protected] |
Referenced by getStatus(), play(), stop(), and update().
| Generated at Thu Mar 19 23:36:52 2009 for the OpenSceneGraph by doxygen 1.5.8. |