![]() |
SLProject 4.0.000
|
Specialized animation track for node animations. More...
#include <SLAnimTrack.h>
Protected Member Functions | |
void | buildInterpolationCurve () const |
virtual SLAnimKeyframe * | createKeyframeImpl (SLfloat time) |
virtual SLAnimKeyframe * | createKeyframeImpl (SLfloat time)=0 |
Keyframe creator function for derived implementations. More... | |
Protected Attributes | |
SLNode * | _animatedNode |
the target node for this track_nodeID More... | |
SLCurve * | _interpolationCurve |
the translation interpolation curve More... | |
SLAnimInterpolation | _translationInterpolation |
interpolation mode for translations (Bezier or linear) More... | |
SLbool | _rebuildInterpolationCurve |
dirty flag of the Bezier curve More... | |
![]() | |
SLAnimation * | _animation |
parent animation that created this track More... | |
SLVKeyframe | _keyframes |
keyframe list for this track More... | |
Specialized animation track for node animations.
Allows for translation, scale and rotation parameters to be animated. Also allows for either linear or Bezier interpolation of the position parameter in the track.
SLNodeAnimTrack::SLNodeAnimTrack | ( | SLAnimation * | animation | ) |
Constructor for specialized NodeAnimationTrack
|
virtual |
Destructor
|
inline |
|
inline |
Applies the animation with the input timestamp to the set animation target if it exists.
Implements SLAnimTrack.
|
virtual |
Applies the animation to the input node with the input timestamp and weight.
|
protected |
Rebuilds the translation interpolation Bezier curve.
|
virtual |
Calculates a new keyframe based on the input time and interpolation functions.
Implements SLAnimTrack.
|
protectedvirtual |
Implementation for the keyframe creation function.
Implements SLAnimTrack.
SLTransformKeyframe * SLNodeAnimTrack::createNodeKeyframe | ( | SLfloat | time | ) |
Creates a new SLTransformKeyframe at 'time'.
|
virtual |
Draws all visualizations of node animations.
Implements SLAnimTrack.
void SLNodeAnimTrack::interpolationCurve | ( | SLCurve * | curve | ) |
setter for the interpolation curve
|
inline |
|
protected |
the target node for this track_nodeID
|
mutableprotected |
the translation interpolation curve
|
protected |
dirty flag of the Bezier curve
|
protected |
interpolation mode for translations (Bezier or linear)