#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. | |
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) |
Applies an animation given a specific time point and weight. | |
void | apply (Skeleton *skeleton, Real timePos, Real weight=1.0, bool accumulate=false) |
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. | |
const TrackList & | _getTrackList (void) const |
Fast access to NON-UPDATEABLE track list. | |
Static Public Methods | |
void | setDefaultInterpolationMode (InterpolationMode im) |
Sets the default animation interpolation mode. | |
InterpolationMode | getDefaultInterpolationMode (void) |
Gets the default interpolation mode for all animations. | |
Protected Attributes | |
TrackList | mTrackList |
Tracks, indexed by handle. | |
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.
Definition at line 44 of file OgreAnimation.h.
|
Definition at line 152 of file OgreAnimation.h. |
|
The types of animation interpolation available.
Definition at line 49 of file OgreAnimation.h. |
|
You should not use this constructor directly, use the parent object such as Skeleton instead.
Definition at line 37 of file OgreAnimation.cpp. References mInterpolationMode, and Ogre::Real. |
|
Definition at line 42 of file OgreAnimation.cpp. References destroyAllTracks(). |
|
Fast access to NON-UPDATEABLE track list.
Definition at line 159 of file OgreAnimation.cpp. References mTrackList. Referenced by Ogre::SceneManager::_applySceneAnimations(). |
|
Applies an animation given a specific time point and weight to a given skeleton.
Definition at line 126 of file OgreAnimation.cpp. References Ogre::Skeleton::getBone(), mTrackList, and Ogre::Real. |
|
Applies an animation given a specific time point and weight.
Definition at line 115 of file OgreAnimation.cpp. References mTrackList, and Ogre::Real. Referenced by Ogre::SceneManager::_applySceneAnimations(), and Ogre::Skeleton::setAnimationState(). |
|
Creates a new AnimationTrack automatically associated with a Node.
Definition at line 62 of file OgreAnimation.cpp. References createTrack(), and Ogre::AnimationTrack::setAssociatedNode(). |
|
Creates an AnimationTrack.
Definition at line 52 of file OgreAnimation.cpp. References mTrackList. Referenced by createTrack(), and Ogre::SkeletonSerializer::readAnimationTrack(). |
|
Removes and destroys all tracks making up this animation.
Definition at line 100 of file OgreAnimation.cpp. References mTrackList. Referenced by ~Animation(). |
|
Destroys the track with the given handle.
Definition at line 91 of file OgreAnimation.cpp. References mTrackList. |
|
Gets the default interpolation mode for all animations.
Definition at line 154 of file OgreAnimation.cpp. References msDefaultInterpolationMode. |
|
Gets the current interpolation mode of this animation.
Definition at line 144 of file OgreAnimation.cpp. References mInterpolationMode. Referenced by Ogre::AnimationTrack::getInterpolatedKeyFrame(). |
|
Gets the total length of the animation.
Definition at line 47 of file OgreAnimation.cpp. References mLength, and Ogre::Real. Referenced by Ogre::Skeleton::_dumpContents(), Ogre::Skeleton::_initAnimationState(), Ogre::SceneManager::createAnimationState(), Ogre::AnimationTrack::getKeyFramesAtTime(), and Ogre::SkeletonSerializer::writeAnimation(). |
|
Gets the name of this animation.
Definition at line 110 of file OgreAnimation.cpp. References mName. Referenced by Ogre::Skeleton::_dumpContents(), Ogre::Skeleton::_initAnimationState(), Ogre::SkeletonSerializer::calcAnimationSize(), Ogre::SkeletonSerializer::exportSkeleton(), and Ogre::SkeletonSerializer::writeAnimation(). |
|
Gets the number of AnimationTrack objects which make up this animation.
Definition at line 71 of file OgreAnimation.cpp. References mTrackList. Referenced by Ogre::Skeleton::_dumpContents(), Ogre::SkeletonSerializer::calcAnimationSize(), and Ogre::SkeletonSerializer::writeAnimation(). |
|
Gets a track by it's handle.
Definition at line 76 of file OgreAnimation.cpp. References Except, and mTrackList. Referenced by Ogre::Skeleton::_dumpContents(), Ogre::SkeletonSerializer::calcAnimationSize(), and Ogre::SkeletonSerializer::writeAnimation(). |
|
Sets the default animation interpolation mode.
Definition at line 149 of file OgreAnimation.cpp. References msDefaultInterpolationMode. |
|
Tells the animation how to interpolate between keyframes.
Definition at line 139 of file OgreAnimation.cpp. References mInterpolationMode. |
|
Definition at line 166 of file OgreAnimation.h. Referenced by Animation(), getInterpolationMode(), and setInterpolationMode(). |
|
Definition at line 164 of file OgreAnimation.h. Referenced by getLength(). |
|
Definition at line 162 of file OgreAnimation.h. Referenced by getName(). |
|
Definition at line 35 of file OgreAnimation.cpp. Referenced by getDefaultInterpolationMode(), and setDefaultInterpolationMode(). |
|
Tracks, indexed by handle.
Definition at line 161 of file OgreAnimation.h. Referenced by _getTrackList(), apply(), createTrack(), destroyAllTracks(), destroyTrack(), getNumTracks(), and getTrack(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Fri May 14 23:25:49 2004