#include <OgreAnimation.h>
Public Types | |
typedef std::map< unsigned short, AnimationTrack * > | TrackList |
typedef ConstMapIterator< TrackList > | TrackIterator |
enum | InterpolationMode { IM_LINEAR, IM_SPLINE } |
The types of animation interpolation available. More... | |
enum | RotationInterpolationMode { RIM_LINEAR, RIM_SPHERICAL } |
The types of rotational interpolation available. More... | |
Public Member Functions | |
Animation (const String &name, Real length) | |
You should not use this constructor directly, use the parent object such as Skeleton instead. | |
virtual | ~Animation () |
const String & | getName (void) const |
Gets the name of this animation. | |
Real | getLength (void) const |
Gets the total length of the animation. | |
AnimationTrack * | createTrack (unsigned short handle) |
Creates an AnimationTrack. | |
AnimationTrack * | createTrack (unsigned short handle, Node *node) |
Creates a new AnimationTrack automatically associated with a Node. | |
unsigned short | getNumTracks (void) const |
Gets the number of AnimationTrack objects which make up this animation. | |
AnimationTrack * | getTrack (unsigned short handle) const |
Gets a track by it's handle. | |
void | destroyTrack (unsigned short handle) |
Destroys the track with the given handle. | |
void | destroyAllTracks (void) |
Removes and destroys all tracks making up this animation. | |
void | apply (Real timePos, Real weight=1.0, bool accumulate=false, Real scale=1.0f) |
Applies an animation given a specific time point and weight. | |
void | apply (Skeleton *skeleton, Real timePos, Real weight=1.0, bool accumulate=false, Real scale=1.0f) |
Applies an animation given a specific time point and weight to a given skeleton. | |
void | setInterpolationMode (InterpolationMode im) |
Tells the animation how to interpolate between keyframes. | |
InterpolationMode | getInterpolationMode (void) const |
Gets the current interpolation mode of this animation. | |
void | setRotationInterpolationMode (RotationInterpolationMode im) |
Tells the animation how to interpolate rotations. | |
RotationInterpolationMode | getRotationInterpolationMode (void) const |
Gets the current rotation interpolation mode of this animation. | |
const TrackList & | _getTrackList (void) const |
Fast access to NON-UPDATEABLE track list. | |
TrackIterator | getTrackIterator (void) const |
Get non-updateable iterator over tracks. | |
void | optimise (void) |
Optimise an animation by removing unnecessary tracks and keyframes. | |
Static Public Member Functions | |
void | setDefaultInterpolationMode (InterpolationMode im) |
Sets the default animation interpolation mode. | |
InterpolationMode | getDefaultInterpolationMode (void) |
Gets the default interpolation mode for all animations. | |
void | setDefaultRotationInterpolationMode (RotationInterpolationMode im) |
Sets the default rotation interpolation mode. | |
RotationInterpolationMode | getDefaultRotationInterpolationMode (void) |
Gets the default rotation interpolation mode for all animations. | |
Protected Attributes | |
TrackList | mTrackList |
Tracks, indexed by handle. | |
String | mName |
Real | mLength |
InterpolationMode | mInterpolationMode |
RotationInterpolationMode | mRotationInterpolationMode |
Static Protected Attributes | |
InterpolationMode | msDefaultInterpolationMode |
RotationInterpolationMode | msDefaultRotationInterpolationMode |
Definition at line 45 of file OgreAnimation.h.
|
Definition at line 199 of file OgreAnimation.h. Referenced by getTrackIterator(). |
|
Definition at line 198 of file OgreAnimation.h. |
|
The types of animation interpolation available.
Definition at line 50 of file OgreAnimation.h. |
|
The types of rotational interpolation available.
Definition at line 59 of file OgreAnimation.h. |
|
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 to a given skeleton.
|
|
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 default rotation 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 the current rotation interpolation mode of this animation.
|
|
Gets a track by it's handle.
|
|
Get non-updateable iterator over tracks.
Definition at line 205 of file OgreAnimation.h. References TrackIterator. |
|
Optimise an animation by removing unnecessary tracks and keyframes.
|
|
Sets the default animation interpolation mode.
|
|
Sets the default rotation interpolation mode.
|
|
Tells the animation how to interpolate between keyframes.
|
|
Tells the animation how to interpolate rotations.
|
|
Definition at line 228 of file OgreAnimation.h. |
|
Definition at line 226 of file OgreAnimation.h. |
|
Definition at line 224 of file OgreAnimation.h. |
|
Definition at line 229 of file OgreAnimation.h. |
|
Definition at line 231 of file OgreAnimation.h. |
|
Definition at line 232 of file OgreAnimation.h. |
|
Tracks, indexed by handle.
Definition at line 223 of file OgreAnimation.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Feb 12 13:00:05 2006