#include <OgreAnimation.h>
Collaboration diagram for Ogre::Animation:

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 | 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 143 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 35 of file OgreAnimation.cpp. References mInterpolationMode, and Ogre::Real. |
|
|
Definition at line 40 of file OgreAnimation.cpp. References destroyAllTracks(). |
|
|
Fast access to NON-UPDATEABLE track list.
Definition at line 144 of file OgreAnimation.cpp. References mTrackList. Referenced by Ogre::SceneManager::_applySceneAnimations(). |
|
||||||||||||||||
|
Applies an animation given a specific time point and weight.
Definition at line 113 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 60 of file OgreAnimation.cpp. References createTrack(), and Ogre::AnimationTrack::setAssociatedNode(). |
|
|
Creates an AnimationTrack.
Definition at line 50 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 98 of file OgreAnimation.cpp. References mTrackList. Referenced by ~Animation(). |
|
|
Destroys the track with the given handle.
Definition at line 89 of file OgreAnimation.cpp. References mTrackList. |
|
|
Gets the default interpolation mode for all animations.
Definition at line 139 of file OgreAnimation.cpp. References msDefaultInterpolationMode. |
|
|
Gets the current interpolation mode of this animation.
Definition at line 129 of file OgreAnimation.cpp. References mInterpolationMode. Referenced by Ogre::AnimationTrack::getInterpolatedKeyFrame(). |
|
|
Gets the total length of the animation.
Definition at line 45 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 108 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 69 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 74 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 134 of file OgreAnimation.cpp. References msDefaultInterpolationMode. |
|
|
Tells the animation how to interpolate between keyframes.
Definition at line 124 of file OgreAnimation.cpp. References mInterpolationMode. |
|
|
Definition at line 157 of file OgreAnimation.h. Referenced by Animation(), getInterpolationMode(), and setInterpolationMode(). |
|
|
Definition at line 155 of file OgreAnimation.h. Referenced by getLength(). |
|
|
Definition at line 153 of file OgreAnimation.h. Referenced by getName(). |
|
|
Definition at line 33 of file OgreAnimation.cpp. Referenced by getDefaultInterpolationMode(), and setDefaultInterpolationMode(). |
|
|
Tracks, indexed by handle.
Definition at line 152 of file OgreAnimation.h. Referenced by _getTrackList(), apply(), createTrack(), destroyAllTracks(), destroyTrack(), getNumTracks(), and getTrack(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:16:38 2004