openscenegraph
Public Member Functions | Public Attributes | Protected Member Functions
osgPresentation::AnimationMaterialCallback Class Reference
Inheritance diagram for osgPresentation::AnimationMaterialCallback:
osg::NodeCallback osg::Object osg::Referenced

List of all members.

Public Member Functions

 AnimationMaterialCallback ()
 AnimationMaterialCallback (const AnimationMaterialCallback &apc, const osg::CopyOp &copyop)
 META_Object (osg, AnimationMaterialCallback)
 AnimationMaterialCallback (AnimationMaterial *ap, double timeOffset=0.0f, double timeMultiplier=1.0f)
void setAnimationMaterial (AnimationMaterial *path)
AnimationMaterial * getAnimationMaterial ()
const AnimationMaterial * getAnimationMaterial () const
void setTimeOffset (double offset)
double getTimeOffset () const
void setTimeMultiplier (double multiplier)
double getTimeMultiplier () const
void reset ()
void setPause (bool pause)
double getAnimationTime () const
virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)
void update (osg::Node &node)

Public Attributes

osg::ref_ptr< AnimationMaterial > _animationMaterial
bool _useInverseMatrix
double _timeOffset
double _timeMultiplier
double _firstTime
double _latestTime
bool _pause
double _pauseTime

Protected Member Functions

 ~AnimationMaterialCallback ()

Constructor & Destructor Documentation

osgPresentation::AnimationMaterialCallback::AnimationMaterialCallback ( AnimationMaterial *  ap,
double  timeOffset = 0.0f,
double  timeMultiplier = 1.0f 
) [inline]

Member Function Documentation

get the animation time that is used to specify the position along the AnimationMaterial. Animation time is computed from the formula ((_latestTime-_firstTime)-_timeOffset)*_timeMultiplier.

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

implements the callback

Reimplemented from osg::NodeCallback.


Member Data Documentation


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