#include <OgreAnimationState.h>
Inheritance diagram for Ogre::AnimationState:
Public Types | |
typedef std::vector< float > | BoneBlendMask |
typedef for an array of float values used as a bone blend mask | |
Public Member Functions | |
AnimationState (const String &animName, AnimationStateSet *parent, Real timePos, Real length, Real weight=1.0, bool enabled=false) | |
Normal constructor with all params supplied. | |
AnimationState (AnimationStateSet *parent, const AnimationState &rhs) | |
constructor to copy from an existing state with new parent | |
virtual | ~AnimationState () |
Destructor - is here because class has virtual functions and some compilers would whine if it won't exist. | |
const String & | getAnimationName () const |
Gets the name of the animation to which this state applies. | |
Real | getTimePosition (void) const |
Gets the time position for this animation. | |
void | setTimePosition (Real timePos) |
Sets the time position for this animation. | |
Real | getLength () const |
Gets the total length of this animation (may be shorter than whole animation). | |
void | setLength (Real len) |
Sets the total length of this animation (may be shorter than whole animation). | |
Real | getWeight (void) const |
Gets the weight (influence) of this animation. | |
void | setWeight (Real weight) |
Sets the weight (influence) of this animation. | |
void | addTime (Real offset) |
Modifies the time position, adjusting for animation length. | |
bool | hasEnded (void) const |
Returns true if the animation has reached the end and is not looping. | |
bool | getEnabled (void) const |
Returns true if this animation is currently enabled. | |
void | setEnabled (bool enabled) |
Sets whether this animation is enabled. | |
bool | operator== (const AnimationState &rhs) const |
Equality operator. | |
bool | operator!= (const AnimationState &rhs) const |
void | setLoop (bool loop) |
Sets whether or not an animation loops at the start and end of the animation if the time continues to be altered. | |
bool | getLoop (void) const |
Gets whether or not this animation loops. | |
void | copyStateFrom (const AnimationState &animState) |
Copies the states from another animation state, preserving the animation name (unlike operator=) but copying everything else. | |
AnimationStateSet * | getParent (void) const |
Get the parent animation state set. | |
void | createBlendMask (size_t blendMaskSizeHint, float initialWeight=1.0f) |
create a new blend mask with the given number of entries | |
void | destroyBlendMask () |
destroy the currently set blend mask | |
void | _setBlendMaskData (const float *blendMaskData) |
set the blend mask data (might be dangerous) | |
void | _setBlendMask (const BoneBlendMask *blendMask) |
set the blend mask | |
const BoneBlendMask * | getBlendMask () const |
get the current blend mask (const version, may be 0) | |
bool | hasBlendMask () const |
return whether there is currently a valid blend mask set | |
void | setBlendMaskEntry (size_t boneHandle, float weight) |
set the weight for the bone identified by the given handle | |
float | getBlendMaskEntry (size_t boneHandle) const |
get the weight for the bone identified by the given handle | |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void * | operator new[] (size_t sz) |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
Protected Attributes | |
BoneBlendMask * | mBlendMask |
the blend mask (containing per bone weights) | |
String | mAnimationName |
AnimationStateSet * | mParent |
Real | mTimePos |
Real | mLength |
Real | mWeight |
bool | mEnabled |
bool | mLoop |
Definition at line 46 of file OgreAnimationState.h.
|
typedef for an array of float values used as a bone blend mask
Definition at line 51 of file OgreAnimationState.h. |
|
Normal constructor with all params supplied.
|
|
constructor to copy from an existing state with new parent
|
|
Destructor - is here because class has virtual functions and some compilers would whine if it won't exist.
|
|
set the blend mask
|
|
set the blend mask data (might be dangerous)
|
|
Modifies the time position, adjusting for animation length.
|
|
Copies the states from another animation state, preserving the animation name (unlike operator=) but copying everything else.
|
|
create a new blend mask with the given number of entries In addition to assigning a single weight value to a skeletal animation, it may be desirable to assign animation weights per bone using a 'blend mask'.
|
|
destroy the currently set blend mask
|
|
Gets the name of the animation to which this state applies.
|
|
get the current blend mask (const version, may be 0)
Definition at line 142 of file OgreAnimationState.h. |
|
get the weight for the bone identified by the given handle
Definition at line 148 of file OgreAnimationState.h. |
|
Returns true if this animation is currently enabled.
|
|
Gets the total length of this animation (may be shorter than whole animation).
|
|
Gets whether or not this animation loops.
Definition at line 101 of file OgreAnimationState.h. |
|
Get the parent animation state set.
Definition at line 110 of file OgreAnimationState.h. |
|
Gets the time position for this animation.
|
|
Gets the weight (influence) of this animation.
|
|
return whether there is currently a valid blend mask set
Definition at line 144 of file OgreAnimationState.h. |
|
Returns true if the animation has reached the end and is not looping.
|
|
Definition at line 101 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 95 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 89 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 112 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 106 of file OgreMemoryAllocatedObject.h. |
|
placement operator new
Definition at line 73 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 67 of file OgreMemoryAllocatedObject.h. |
|
operator new, with debug line info
Definition at line 62 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 84 of file OgreMemoryAllocatedObject.h. |
|
array operator new, with debug line info
Definition at line 79 of file OgreMemoryAllocatedObject.h. |
|
|
|
Equality operator.
|
|
set the weight for the bone identified by the given handle
|
|
Sets whether this animation is enabled.
|
|
Sets the total length of this animation (may be shorter than whole animation).
|
|
Sets whether or not an animation loops at the start and end of the animation if the time continues to be altered.
Definition at line 99 of file OgreAnimationState.h. |
|
Sets the time position for this animation.
|
|
Sets the weight (influence) of this animation.
|
|
Definition at line 157 of file OgreAnimationState.h. |
|
the blend mask (containing per bone weights)
Definition at line 155 of file OgreAnimationState.h. |
|
Definition at line 162 of file OgreAnimationState.h. |
|
Definition at line 160 of file OgreAnimationState.h. |
|
Definition at line 163 of file OgreAnimationState.h. |
|
Definition at line 158 of file OgreAnimationState.h. |
|
Definition at line 159 of file OgreAnimationState.h. |
|
Definition at line 161 of file OgreAnimationState.h. |
Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sat Apr 11 13:46:53 2009