Public Methods |
| AnimationTrack (Animation *parent) |
| Constructor. More...
|
| AnimationTrack (Animation *parent, Node *targetNode) |
| Constructor, associates with a Node. More...
|
virtual | ~AnimationTrack () |
unsigned short | getNumKeyFrames (void) const |
| Returns the number of keyframes in this animation. More...
|
KeyFrame * | getKeyFrame (unsigned short index) const |
| Returns the KeyFrame at the specified index. More...
|
Real | getKeyFramesAtTime (Real timePos, KeyFrame **keyFrame1, KeyFrame **keyFrame2, unsigned short *firstKeyIndex=0) const |
| Gets the 2 KeyFrame objects which are active at the time given, and the blend value between them. More...
|
KeyFrame * | createKeyFrame (Real timePos) |
| Creates a new KeyFrame and adds it to this animation at the given time index. More...
|
void | removeKeyFrame (unsigned short index) |
| Removes a KeyFrame by it's index. More...
|
void | removeAllKeyFrames (void) |
| Removes all the KeyFrames from this track. More...
|
KeyFrame | getInterpolatedKeyFrame (Real timeIndex) const |
| Gets a KeyFrame object which contains the interpolated transforms at the time index specified. More...
|
void | apply (Real timePos, Real weight=1.0, bool accumulate=false) |
| Applies an animation track at a certain position to the target node. More...
|
Node * | getAssociatedNode (void) const |
| Returns a pointer to the associated Node object (if any). More...
|
void | setAssociatedNode (Node *node) |
| Sets the associated Node object which will be automatically affected by calls to 'apply'. More...
|
void | applyToNode (Node *node, Real timePos, Real weight=1.0, bool accumulate=false) |
| As the 'apply' method but applies to a specified Node instead of associated node. More...
|
Protected Types |
typedef std::vector< KeyFrame * > | KeyFrameList |
Protected Methods |
void | buildInterpolationSplines (void) const |
Protected Attributes |
KeyFrameList | mKeyFrames |
Real | mMaxKeyFrameTime |
Animation * | mParent |
Node * | mTargetNode |
bool | mSplineBuildNeeded |
SimpleSpline | mPositionSpline |
SimpleSpline | mScaleSpline |
RotationalSpline | mRotationSpline |