#include <OgreAnimationState.h>
Inheritance diagram for Ogre::AnimationState:
Public Methods | |
AnimationState () | |
Default constructor for STL only. More... | |
virtual | ~AnimationState () |
Destructor - is here because class has virtual functions and some compilers would whine if it won't exist. More... | |
AnimationState (const String &animName, Real timePos, Real length, Real weight=1.0, bool enabled=false) | |
Normal constructor with all params supplied. More... | |
String | getAnimationName () const |
Gets the name of the animation to which this state applies. More... | |
void | setAnimationName (const String &name) |
Sets the name of the animation to which this state applies. More... | |
Real | getTimePosition (void) const |
Gets the time position for this animation. More... | |
void | setTimePosition (Real timePos) |
Sets the time position for this animation. More... | |
Real | getLength () const |
Gets the total length of this animation (may be shorter than whole animation). More... | |
void | setLength (Real len) |
Sets the total length of this animation (may be shorter than whole animation). More... | |
Real | getWeight (void) const |
Gets the weight (influence) of this animation. More... | |
void | setWeight (Real weight) |
Sets the weight (influence) of this animation. More... | |
void | addTime (Real offset) |
Modifies the time position, adjusting for animation length. More... | |
bool | getEnabled (void) const |
Returns true if this animation is currently enabled. More... | |
void | setEnabled (bool enabled) |
Sets whether this animation is enabled. More... | |
bool | operator== (const AnimationState &rhs) const |
Equality operator. More... | |
bool | operator!= (const AnimationState &rhs) const |
Real | getValue (void) |
ControllerValue implementation. More... | |
void | setValue (Real value) |
ControllerValue implementation. More... | |
Protected Attributes | |
String | mAnimationName |
Real | mTimePos |
Real | mLength |
Real | mInvLength |
Real | mWeight |
bool | mEnabled |
|
Default constructor for STL only.
|
|
Destructor - is here because class has virtual functions and some compilers would whine if it won't exist.
|
|
Normal constructor with all params supplied.
|
|
Modifies the time position, adjusting for animation length.
|
|
Gets the name of the animation to which this state applies.
|
|
Returns true if this animation is currently enabled.
|
|
Gets the total length of this animation (may be shorter than whole animation).
|
|
Gets the time position for this animation.
|
|
ControllerValue implementation.
Implements Ogre::ControllerValue. |
|
Gets the weight (influence) of this animation.
|
|
|
|
Equality operator.
|
|
Sets the name of the animation to which this state applies.
|
|
Sets whether this animation is enabled.
|
|
Sets the total length of this animation (may be shorter than whole animation).
|
|
Sets the time position for this animation.
|
|
ControllerValue implementation.
Implements Ogre::ControllerValue. |
|
Sets the weight (influence) of this animation.
|
|
|
|
|
|
|
|
|
|
|
|
|
Copyright © 2002 by The OGRE Team