Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

AnimationPathTimedCallback Class Reference

Own implementation of osg::AnimationPathCallback. More...

#include <AnimationPathTimedCallback.h>

Collaboration diagram for AnimationPathTimedCallback:

Collaboration graph
[legend]
List of all members.

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

DispatchertimeKeeper
double elapsed

Detailed Description

Own implementation of osg::AnimationPathCallback.

This osg::animationCallback subclass uses the time offset and multiplication factor as set by MessageController.

Definition at line 28 of file AnimationPathTimedCallback.h.


Constructor & Destructor Documentation

AnimationPathTimedCallback::AnimationPathTimedCallback  ) 
 

Definition at line 113 of file AnimationPathTimedCallback.cpp.

References elapsed.


Member Function Documentation

double AnimationPathTimedCallback::getAnimationTime  )  const
 

Gives back the elapsed time of the animation path. Needed to be redefined to allow changes in the timeflow.

Returns:
Elapsed time of the animation path.

Definition at line 119 of file AnimationPathTimedCallback.cpp.

References elapsed.

Referenced by update().

void AnimationPathTimedCallback::operator() osg::Node *  node,
osg::NodeVisitor *  nv
[virtual]
 

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.

Parameters:
node An osg::Node
nv An osg::NodeVisitor

Definition at line 134 of file AnimationPathTimedCallback.cpp.

References elapsed, Dispatcher::getTimeFlow(), timeKeeper, and update().

Here is the call graph for this function:

void AnimationPathTimedCallback::setTimeReference Dispatcher dp  ) 
 

Sets the reference to the instace of Dispatcher that is known to StateControl. This way Dispatcher can be asked directly for for the time.

Parameters:
dp Reference to the dispatcher.

Definition at line 162 of file AnimationPathTimedCallback.cpp.

References timeKeeper.

Referenced by StateControl::drv().

void AnimationPathTimedCallback::update osg::Node &  node  ) 
 

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:


Member Data Documentation

double AnimationPathTimedCallback::elapsed [protected]
 

Definition at line 59 of file AnimationPathTimedCallback.h.

Referenced by AnimationPathTimedCallback(), getAnimationTime(), and operator()().

Dispatcher* AnimationPathTimedCallback::timeKeeper [protected]
 

Definition at line 58 of file AnimationPathTimedCallback.h.

Referenced by operator()(), and setTimeReference().


The documentation for this class was generated from the following files:
Generated on Mon Jun 19 10:22:12 2006 for TraplasVisualisation by  doxygen 1.4.4