#include <OGREInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Public Member Functions | |
| const char * | GetName (void) |
| Gets the name of this animation. | |
| float | GetLength (void) |
| Gets the total length of the animation. | |
| DIOGRENodeAnimationTrack * | CreateNodeTrack (unsigned short handle) |
| Creates an AnimationTrack. | |
| DIOGRENodeAnimationTrack * | CreateNodeTrack (unsigned short handle, DIOGRENode *node) |
| Creates a new AnimationTrack automatically associated with a Node. | |
| unsigned short | GetNumNodeTracks (void) |
| Gets the number of AnimationTrack objects which make up this animation. | |
| DIOGRENodeAnimationTrack * | GetNodeTrack (unsigned short handle) |
| Gets a track by it's handle. | |
| void | DestroyNodeTrack (unsigned short handle) |
| Destroys the track with the given handle. | |
| void | DestroyAllNodeTracks (void) |
| Removes and destroys all tracks making up this animation. | |
| void | Apply (float timePos, float weight=1.0, float scale=1.0f) |
| Applies an animation given a specific time point and weight. | |
| void | Apply (DigitalSpaces::DIOGRESkeleton *skeleton, float timePos, float weight=1.0, float scale=1.0f) |
| Applies an animation given a specific time point and weight to a given skeleton. | |
| void | SetInterpolationMode (OGREInterpolationMode im) |
| Tells the animation how to interpolate between keyframes. | |
| OGREInterpolationMode | GetInterpolationMode (void) |
| Gets the current interpolation mode of this animation. | |
| void | SetRotationInterpolationMode (OGRERotationInterpolationMode im) |
| Tells the animation how to interpolate rotations. | |
| OGRERotationInterpolationMode | GetRotationInterpolationMode (void) |
| Gets the current rotation interpolation mode of this animation. | |
| void | SetDefaultInterpolationMode (OGREInterpolationMode im) |
| Sets the default animation interpolation mode. | |
| OGREInterpolationMode | GetDefaultInterpolationMode (void) |
| Gets the default interpolation mode for all animations. | |
| void | SetDefaultRotationInterpolationMode (OGRERotationInterpolationMode im) |
| Sets the default rotation interpolation mode. | |
| OGRERotationInterpolationMode | GetDefaultRotationInterpolationMode (void) |
| Gets the default rotation interpolation mode for all animations. | |
| void | Optimise (void) |
| Fast access to NON-UPDATEABLE track list. | |
| const char* DigitalSpaces::DIOGREAnimation::GetName | ( | void | ) |
Gets the name of this animation.
| float DigitalSpaces::DIOGREAnimation::GetLength | ( | void | ) |
Gets the total length of the animation.
| DIOGRENodeAnimationTrack* DigitalSpaces::DIOGREAnimation::CreateNodeTrack | ( | unsigned short | handle | ) |
Creates an AnimationTrack.
| handle | Numeric handle to give the track, used for accessing the track later. Must be unique within this Animation. |
| DIOGRENodeAnimationTrack* DigitalSpaces::DIOGREAnimation::CreateNodeTrack | ( | unsigned short | handle, | |
| DIOGRENode * | node | |||
| ) |
Creates a new AnimationTrack automatically associated with a Node.
| handle | Numeric handle to give the track, used for accessing the track later. Must be unique within this Animation. | |
| node | A pointer to the Node object which will be affected by this track |
| unsigned short DigitalSpaces::DIOGREAnimation::GetNumNodeTracks | ( | void | ) |
Gets the number of AnimationTrack objects which make up this animation.
| DIOGRENodeAnimationTrack* DigitalSpaces::DIOGREAnimation::GetNodeTrack | ( | unsigned short | handle | ) |
Gets a track by it's handle.
| void DigitalSpaces::DIOGREAnimation::DestroyNodeTrack | ( | unsigned short | handle | ) |
Destroys the track with the given handle.
| void DigitalSpaces::DIOGREAnimation::DestroyAllNodeTracks | ( | void | ) |
Removes and destroys all tracks making up this animation.
| void DigitalSpaces::DIOGREAnimation::Apply | ( | float | timePos, | |
| float | weight = 1.0, |
|||
| float | scale = 1.0f | |||
| ) |
Applies an animation given a specific time point and weight.
| timePos | The time position in the animation to apply. | |
| weight | The influence to give to this track, 1.0 for full influence, less to blend with other animations. | |
| scale | The scale to apply to translations and scalings, useful for adapting an animation to a different size target. |
| void DigitalSpaces::DIOGREAnimation::Apply | ( | DigitalSpaces::DIOGRESkeleton * | skeleton, | |
| float | timePos, | |||
| float | weight = 1.0, |
|||
| float | scale = 1.0f | |||
| ) |
Applies an animation given a specific time point and weight to a given skeleton.
| timePos | The time position in the animation to apply. | |
| weight | The influence to give to this track, 1.0 for full influence, less to blend with other animations. | |
| scale | The scale to apply to translations and scalings, useful for adapting an animation to a different size target. |
| void DigitalSpaces::DIOGREAnimation::SetInterpolationMode | ( | OGREInterpolationMode | im | ) |
Tells the animation how to interpolate between keyframes.
| OGREInterpolationMode DigitalSpaces::DIOGREAnimation::GetInterpolationMode | ( | void | ) |
Gets the current interpolation mode of this animation.
| void DigitalSpaces::DIOGREAnimation::SetRotationInterpolationMode | ( | OGRERotationInterpolationMode | im | ) |
Tells the animation how to interpolate rotations.
| OGRERotationInterpolationMode DigitalSpaces::DIOGREAnimation::GetRotationInterpolationMode | ( | void | ) |
Gets the current rotation interpolation mode of this animation.
| void DigitalSpaces::DIOGREAnimation::SetDefaultInterpolationMode | ( | OGREInterpolationMode | im | ) |
Sets the default animation interpolation mode.
| OGREInterpolationMode DigitalSpaces::DIOGREAnimation::GetDefaultInterpolationMode | ( | void | ) |
Gets the default interpolation mode for all animations.
| void DigitalSpaces::DIOGREAnimation::SetDefaultRotationInterpolationMode | ( | OGRERotationInterpolationMode | im | ) |
Sets the default rotation interpolation mode.
| OGRERotationInterpolationMode DigitalSpaces::DIOGREAnimation::GetDefaultRotationInterpolationMode | ( | void | ) |
Gets the default rotation interpolation mode for all animations.
| void DigitalSpaces::DIOGREAnimation::Optimise | ( | void | ) |
Fast access to NON-UPDATEABLE track list.
Get non-updateable iterator over tracks Optimise an animation by removing unnecessary tracks and keyframes.
1.5.6