vector< SLAnimKeyframe * > SLVKeyframe
std::map< SLuint, SLNodeAnimTrack * > SLMNodeAnimTrack
SLAnimInterpolation
Enumeration for animation modes.
Base class for all animation keyframes.
Abstract base class for SLAnimationTracks providing time and keyframe functions.
SLAnimTrack(SLAnimation *parent)
virtual SLAnimKeyframe * createKeyframeImpl(SLfloat time)=0
Keyframe creator function for derived implementations.
SLAnimKeyframe * keyframe(SLint index)
SLAnimKeyframe * createKeyframe(SLfloat time)
virtual void calcInterpolatedKeyframe(SLfloat time, SLAnimKeyframe *keyframe) const =0
virtual void drawVisuals(SLSceneView *sv)=0
SLAnimation * _animation
parent animation that created this track
SLfloat getKeyframesAtTime(SLfloat time, SLAnimKeyframe **k1, SLAnimKeyframe **k2) const
virtual void apply(SLfloat time, SLfloat weight=1.0f, SLfloat scale=1.0f)=0
SLint numKeyframes() const
SLVKeyframe _keyframes
keyframe list for this track
SLAnimation is the base container for all animation data.
Base class for curves defined by multiple 3D points.
Specialized animation track for node animations.
SLbool _rebuildInterpolationCurve
dirty flag of the Bezier curve
virtual void drawVisuals(SLSceneView *sv)
Draws all visualizations of node animations.
void animatedNode(SLNode *target)
void interpolationCurve(SLCurve *curve)
virtual ~SLNodeAnimTrack()
SLCurve * _interpolationCurve
the translation interpolation curve
SLAnimInterpolation _translationInterpolation
interpolation mode for translations (Bezier or linear)
SLTransformKeyframe * createNodeKeyframe(SLfloat time)
SLNode * _animatedNode
the target node for this track_nodeID
void buildInterpolationCurve() const
virtual void applyToNode(SLNode *node, SLfloat time, SLfloat weight=1.0f, SLfloat scale=1.0f)
void translationInterpolation(SLAnimInterpolation interp)
SLNodeAnimTrack(SLAnimation *parent)
virtual void calcInterpolatedKeyframe(SLfloat time, SLAnimKeyframe *keyframe) const
virtual void apply(SLfloat time, SLfloat weight=1.0f, SLfloat scale=1.0f)
virtual SLAnimKeyframe * createKeyframeImpl(SLfloat time)
SLNode represents a node in a hierarchical scene graph.
SceneView class represents a dynamic real time 3D view onto the scene.