#include <AnimationPathTimedCallback.h>
Collaboration diagram for AnimationPathTimedCallback:
Public Member Functions | |
AnimationPathTimedCallback () | |
double | getAnimationTime () const |
void | update (osg::Node &node) |
virtual void | operator() (osg::Node *node, osg::NodeVisitor *nv) |
void | setTimeReference (Dispatcher *dp) |
Protected Attributes | |
Dispatcher * | timeKeeper |
double | elapsed |
This osg::animationCallback subclass uses the time offset and multiplication factor as set by MessageController.
Definition at line 28 of file AnimationPathTimedCallback.h.
|
Definition at line 113 of file AnimationPathTimedCallback.cpp. References elapsed. |
|
Gives back the elapsed time of the animation path. Needed to be redefined to allow changes in the timeflow.
Definition at line 119 of file AnimationPathTimedCallback.cpp. References elapsed. Referenced by update(). |
|
Function called by the nodevisitor that is going to update this node. This is an overload of the operator() that has been defined in osg::AnimationPathCallback. It offers extra functionality in that it keeps track of the global time multiplication factor in the visualisation.
Definition at line 134 of file AnimationPathTimedCallback.cpp. References elapsed, Dispatcher::getTimeFlow(), timeKeeper, and update(). Here is the call graph for this function: ![]() |
|
Sets the reference to the instace of Dispatcher that is known to StateControl. This way Dispatcher can be asked directly for for the time.
Definition at line 162 of file AnimationPathTimedCallback.cpp. References timeKeeper. Referenced by StateControl::drv(). |
|
Identical as method in AnimationPathCallback. It needs to be included here to force usage of our own getAnimationTime(). Definition at line 124 of file AnimationPathTimedCallback.cpp. References getAnimationTime(). Referenced by operator()(). Here is the call graph for this function: ![]() |
|
Definition at line 59 of file AnimationPathTimedCallback.h. Referenced by AnimationPathTimedCallback(), getAnimationTime(), and operator()(). |
|
Definition at line 58 of file AnimationPathTimedCallback.h. Referenced by operator()(), and setTimeReference(). |