#include <OgreAnimation.h>
Public Types | |
| typedef std::map< unsigned short, AnimationTrack * > | TrackList |
| enum | InterpolationMode { IM_LINEAR, IM_SPLINE } |
| The types of animation interpolation available. More... | |
Public Methods | |
| Animation (const String &name, Real length) | |
| You should not use this constructor directly, use the parent object such as Skeleton instead. More... | |
| virtual | ~Animation () |
| String | getName (void) const |
| Gets the name of this animation. More... | |
| Real | getLength (void) const |
| Gets the total length of the animation. More... | |
| AnimationTrack * | createTrack (unsigned short handle) |
| Creates an AnimationTrack. More... | |
| AnimationTrack * | createTrack (unsigned short handle, Node *node) |
| Creates a new AnimationTrack automatically associated with a Node. More... | |
| unsigned short | getNumTracks (void) const |
| Gets the number of AnimationTrack objects which make up this animation. More... | |
| AnimationTrack * | getTrack (unsigned short handle) const |
| Gets a track by it's handle. More... | |
| void | destroyTrack (unsigned short handle) |
| Destroys the track with the given handle. More... | |
| void | destroyAllTracks (void) |
| Removes and destroys all tracks making up this animation. More... | |
| void | apply (Real timePos, Real weight=1.0, bool accumulate=false) |
| Applies an animation given a specific time point and weight. More... | |
| void | setInterpolationMode (InterpolationMode im) |
| Tells the animation how to interpolate between keyframes. More... | |
| InterpolationMode | getInterpolationMode (void) const |
| Gets the current interpolation mode of this animation. More... | |
| const TrackList & | _getTrackList (void) const |
| Fast access to NON-UPDATEABLE track list. More... | |
Static Public Methods | |
| void | setDefaultInterpolationMode (InterpolationMode im) |
| Sets the default animation interpolation mode. More... | |
| InterpolationMode | getDefaultInterpolationMode (void) |
| Gets the default interpolation mode for all animations. More... | |
Protected Attributes | |
| TrackList | mTrackList |
| Tracks, indexed by handle. More... | |
| String | mName |
| Real | mLength |
| InterpolationMode | mInterpolationMode |
Static Protected Attributes | |
| InterpolationMode | msDefaultInterpolationMode = Animation::IM_LINEAR |
You should not create these animations directly. They will be created via a parent object which owns the animation, e.g. Skeleton.
|
|
|
|
|
The types of animation interpolation available.
|
|
||||||||||||
|
You should not use this constructor directly, use the parent object such as Skeleton instead.
|
|
|
|
|
|
Fast access to NON-UPDATEABLE track list.
|
|
||||||||||||||||
|
Applies an animation given a specific time point and weight.
|
|
||||||||||||
|
Creates a new AnimationTrack automatically associated with a Node.
|
|
|
Creates an AnimationTrack.
|
|
|
Removes and destroys all tracks making up this animation.
|
|
|
Destroys the track with the given handle.
|
|
|
Gets the default interpolation mode for all animations.
|
|
|
Gets the current interpolation mode of this animation.
|
|
|
Gets the total length of the animation.
|
|
|
Gets the name of this animation.
|
|
|
Gets the number of AnimationTrack objects which make up this animation.
|
|
|
Gets a track by it's handle.
|
|
|
Sets the default animation interpolation mode.
|
|
|
Tells the animation how to interpolate between keyframes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Tracks, indexed by handle.
|
Copyright © 2002 by The OGRE Team