#include <OgreAnimationState.h>
Inheritance diagram for Ogre::AnimationState:
Public Methods | |
AnimationState () | |
Default constructor for STL only. | |
virtual | ~AnimationState () |
Destructor - is here because class has virtual functions and some compilers would whine if it won't exist. | |
AnimationState (const String &animName, Real timePos, Real length, Real weight=1.0, bool enabled=false) | |
Normal constructor with all params supplied. | |
const String & | getAnimationName () const |
Gets the name of the animation to which this state applies. | |
void | setAnimationName (const String &name) |
Sets 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 | 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 |
Real | getValue (void) const |
ControllerValue implementation. | |
void | setValue (Real value) |
ControllerValue implementation. | |
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. | |
Protected Attributes | |
String | mAnimationName |
Real | mTimePos |
Real | mLength |
Real | mInvLength |
Real | mWeight |
bool | mEnabled |
bool | mLoop |
Definition at line 44 of file OgreAnimationState.h.
|
Default constructor for STL only.
Definition at line 33 of file OgreAnimationState.cpp. References mInvLength, mLength, mLoop, mTimePos, and mWeight. |
|
Destructor - is here because class has virtual functions and some compilers would whine if it won't exist.
Definition at line 42 of file OgreAnimationState.cpp. |
|
Normal constructor with all params supplied.
Definition at line 46 of file OgreAnimationState.cpp. References mLoop, Ogre::Real, and setLength(). |
|
Modifies the time position, adjusting for animation length.
Definition at line 116 of file OgreAnimationState.cpp. References mTimePos, Ogre::Real, and setTimePosition(). |
|
Gets the name of the animation to which this state applies.
Definition at line 53 of file OgreAnimationState.cpp. References mAnimationName. Referenced by Ogre::Skeleton::setAnimationState(). |
|
Returns true if this animation is currently enabled.
Definition at line 121 of file OgreAnimationState.cpp. References mEnabled. Referenced by Ogre::Skeleton::setAnimationState(). |
|
Gets the total length of this animation (may be shorter than whole animation).
Definition at line 88 of file OgreAnimationState.cpp. References mLength, and Ogre::Real. |
|
Gets whether or not this animation loops.
Definition at line 98 of file OgreAnimationState.h. |
|
Gets the time position for this animation.
Definition at line 63 of file OgreAnimationState.cpp. References mTimePos, and Ogre::Real. Referenced by Ogre::Skeleton::setAnimationState(). |
|
ControllerValue implementation.
Implements Ogre::ControllerValue< Real >. Definition at line 153 of file OgreAnimationState.cpp. References mInvLength, mTimePos, and Ogre::Real. |
|
Gets the weight (influence) of this animation.
Definition at line 106 of file OgreAnimationState.cpp. References mWeight, and Ogre::Real. Referenced by Ogre::Skeleton::setAnimationState(). |
|
Definition at line 148 of file OgreAnimationState.cpp. |
|
Equality operator.
Definition at line 131 of file OgreAnimationState.cpp. References mAnimationName, mEnabled, mLength, mLoop, mTimePos, and mWeight. |
|
Sets the name of the animation to which this state applies.
Definition at line 58 of file OgreAnimationState.cpp. References mAnimationName. |
|
Sets whether this animation is enabled.
Definition at line 126 of file OgreAnimationState.cpp. References mEnabled. |
|
Sets the total length of this animation (may be shorter than whole animation).
Definition at line 93 of file OgreAnimationState.cpp. References mInvLength, mLength, and Ogre::Real. Referenced by AnimationState(). |
|
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 96 of file OgreAnimationState.h. |
|
Sets the time position for this animation.
Definition at line 68 of file OgreAnimationState.cpp. References mLength, mTimePos, and Ogre::Real. Referenced by addTime(). |
|
ControllerValue implementation.
Implements Ogre::ControllerValue< Real >. Definition at line 158 of file OgreAnimationState.cpp. References mLength, mTimePos, and Ogre::Real. |
|
Sets the weight (influence) of this animation.
Definition at line 111 of file OgreAnimationState.cpp. References mWeight, and Ogre::Real. |
|
Definition at line 101 of file OgreAnimationState.h. Referenced by getAnimationName(), operator==(), and setAnimationName(). |
|
Definition at line 106 of file OgreAnimationState.h. Referenced by getEnabled(), operator==(), and setEnabled(). |
|
Definition at line 104 of file OgreAnimationState.h. Referenced by AnimationState(), getValue(), and setLength(). |
|
Definition at line 103 of file OgreAnimationState.h. Referenced by AnimationState(), getLength(), operator==(), setLength(), setTimePosition(), and setValue(). |
|
Definition at line 107 of file OgreAnimationState.h. Referenced by AnimationState(), and operator==(). |
|
Definition at line 102 of file OgreAnimationState.h. Referenced by addTime(), AnimationState(), getTimePosition(), getValue(), operator==(), setTimePosition(), and setValue(). |
|
Definition at line 105 of file OgreAnimationState.h. Referenced by AnimationState(), getWeight(), operator==(), and setWeight(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Fri May 14 23:25:50 2004