Public Member Functions | |
AnimationPathCallback () | |
AnimationPathCallback (const AnimationPathCallback &apc, const CopyOp ©op) | |
META_Object (osg, AnimationPathCallback) | |
AnimationPathCallback (AnimationPath *ap, double timeOffset=0.0, double timeMultiplier=1.0) | |
Construct an AnimationPathCallback with a specified animation path. | |
AnimationPathCallback (const osg::Vec3d &pivot, const osg::Vec3d &axis, float angularVelocity) | |
Construct an AnimationPathCallback and automatical create an animation path to produce a rotation about a point. | |
void | setAnimationPath (AnimationPath *path) |
AnimationPath * | getAnimationPath () |
const AnimationPath * | getAnimationPath () const |
void | setPivotPoint (const Vec3d &pivot) |
const Vec3d & | getPivotPoint () const |
void | setUseInverseMatrix (bool useInverseMatrix) |
bool | getUseInverseMatrix () const |
void | setTimeOffset (double offset) |
double | getTimeOffset () const |
void | setTimeMultiplier (double multiplier) |
double | getTimeMultiplier () const |
void | reset () |
void | setPause (bool pause) |
bool | getPause () const |
double | getAnimationTime () const |
Get the animation time that is used to specify the position along the AnimationPath. | |
virtual void | operator() (Node *node, NodeVisitor *nv) |
Implements the callback. | |
void | update (osg::Node &node) |
Public Attributes | |
ref_ptr< AnimationPath > | _animationPath |
osg::Vec3d | _pivotPoint |
bool | _useInverseMatrix |
double | _timeOffset |
double | _timeMultiplier |
double | _firstTime |
double | _latestTime |
bool | _pause |
double | _pauseTime |
Protected Member Functions | |
~AnimationPathCallback () |
|
|
|
|
|
Construct an AnimationPathCallback with a specified animation path.
|
|
Construct an AnimationPathCallback and automatical create an animation path to produce a rotation about a point.
|
|
|
|
|
|
|
|
Get the animation time that is used to specify the position along the AnimationPath. Animation time is computed from the formula: ((_latestTime-_firstTime)-_timeOffset)*_timeMultiplier. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Implements the callback.
Reimplemented from osg::NodeCallback. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|