#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 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. | |
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. | |
Static Public Methods | |
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 = Animation::IM_LINEAR |
RotationInterpolationMode | msDefaultRotationInterpolationMode = Animation::RIM_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 45 of file OgreAnimation.h.
|
Definition at line 193 of file OgreAnimation.h. |
|
Definition at line 192 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.
Definition at line 39 of file OgreAnimation.cpp. References mInterpolationMode, mRotationInterpolationMode, Ogre::Real, and Ogre::String. |
|
Definition at line 45 of file OgreAnimation.cpp. References destroyAllTracks(). |
|
Fast access to NON-UPDATEABLE track list.
Definition at line 162 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 129 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 118 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 65 of file OgreAnimation.cpp. References createTrack(), and Ogre::AnimationTrack::setAssociatedNode(). |
|
Creates an AnimationTrack.
Definition at line 55 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 103 of file OgreAnimation.cpp. References mTrackList. Referenced by ~Animation(). |
|
Destroys the track with the given handle.
Definition at line 94 of file OgreAnimation.cpp. References mTrackList. |
|
Gets the default interpolation mode for all animations.
Definition at line 157 of file OgreAnimation.cpp. References msDefaultInterpolationMode. |
|
Gets the default rotation interpolation mode for all animations.
Definition at line 183 of file OgreAnimation.cpp. References msDefaultRotationInterpolationMode. |
|
Gets the current interpolation mode of this animation.
Definition at line 147 of file OgreAnimation.cpp. References mInterpolationMode. Referenced by Ogre::AnimationTrack::getInterpolatedKeyFrame(). |
|
Gets the total length of the animation.
Definition at line 50 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 113 of file OgreAnimation.cpp. References mName, and Ogre::String. 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 74 of file OgreAnimation.cpp. References mTrackList. Referenced by Ogre::Skeleton::_dumpContents(), and Ogre::SkeletonSerializer::calcAnimationSize(). |
|
Gets the current rotation interpolation mode of this animation.
Definition at line 173 of file OgreAnimation.cpp. References mRotationInterpolationMode. Referenced by Ogre::AnimationTrack::applyToNode(), and Ogre::AnimationTrack::getInterpolatedKeyFrame(). |
|
Gets a track by it's handle.
Definition at line 79 of file OgreAnimation.cpp. References Except, and mTrackList. Referenced by Ogre::Skeleton::_dumpContents(), and Ogre::SkeletonSerializer::calcAnimationSize(). |
|
Get non-updateable iterator over tracks.
Definition at line 199 of file OgreAnimation.h. Referenced by Ogre::SkeletonSerializer::writeAnimation(). |
|
Sets the default animation interpolation mode.
Definition at line 152 of file OgreAnimation.cpp. References msDefaultInterpolationMode. |
|
Sets the default rotation interpolation mode.
Definition at line 178 of file OgreAnimation.cpp. References msDefaultRotationInterpolationMode. |
|
Tells the animation how to interpolate between keyframes.
Definition at line 142 of file OgreAnimation.cpp. References mInterpolationMode. |
|
Tells the animation how to interpolate rotations.
Definition at line 168 of file OgreAnimation.cpp. References mRotationInterpolationMode. |
|
Definition at line 212 of file OgreAnimation.h. Referenced by Animation(), getInterpolationMode(), and setInterpolationMode(). |
|
Definition at line 210 of file OgreAnimation.h. Referenced by getLength(). |
|
Definition at line 208 of file OgreAnimation.h. Referenced by getName(). |
|
Definition at line 213 of file OgreAnimation.h. Referenced by Animation(), getRotationInterpolationMode(), and setRotationInterpolationMode(). |
|
Definition at line 35 of file OgreAnimation.cpp. Referenced by getDefaultInterpolationMode(), and setDefaultInterpolationMode(). |
|
Definition at line 37 of file OgreAnimation.cpp. Referenced by getDefaultRotationInterpolationMode(), and setDefaultRotationInterpolationMode(). |
|
Tracks, indexed by handle.
Definition at line 207 of file OgreAnimation.h. Referenced by _getTrackList(), apply(), createTrack(), destroyAllTracks(), destroyTrack(), getNumTracks(), and getTrack(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:50:46 2004