OGRE-Next
2.3
Object-Oriented Graphics Rendering Engine
|
Class encapsulating a set of AnimationState objects. More...
#include <OgreAnimationState.h>
Public Member Functions | |
AnimationStateSet () | |
Create a blank animation state set. More... | |
AnimationStateSet (const AnimationStateSet &rhs) | |
Create an animation set by copying the contents of another. More... | |
~AnimationStateSet () | |
void | _notifyAnimationStateEnabled (AnimationState *target, bool enabled) |
Internal method respond to enable/disable an animation state. More... | |
void | _notifyDirty () |
Set the dirty flag and dirty frame number on this state set. More... | |
void | copyMatchingState (AnimationStateSet *target) const |
Copy the state of any matching animation states from this to another. More... | |
AnimationState * | createAnimationState (const String &animName, Real timePos, Real length, Real weight=1.0, bool enabled=false) |
Create a new AnimationState instance. More... | |
AnimationState * | getAnimationState (const String &name) const |
Get an animation state by the name of the animation. More... | |
AnimationStateIterator | getAnimationStateIterator () |
Get an iterator over all the animation states in this set. More... | |
ConstAnimationStateIterator | getAnimationStateIterator () const |
Get an iterator over all the animation states in this set. More... | |
unsigned long | getDirtyFrameNumber () const |
Get the latest animation state been altered frame number. More... | |
ConstEnabledAnimationStateIterator | getEnabledAnimationStateIterator () const |
Get an iterator over all the enabled animation states in this set. More... | |
bool | hasAnimationState (const String &name) const |
Tests if state for the named animation is present. More... | |
bool | hasEnabledAnimationState () const |
Tests if exists enabled animation state in this set. More... | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
void | removeAllAnimationStates () |
Remove all animation states. More... | |
void | removeAnimationState (const String &name) |
Remove animation state with the given name. More... | |
Public Attributes | |
OGRE_AUTO_MUTEX | |
Mutex, public for external locking if needed. More... | |
Class encapsulating a set of AnimationState objects.
Ogre::v1::AnimationStateSet::AnimationStateSet | ( | ) |
Create a blank animation state set.
Ogre::v1::AnimationStateSet::AnimationStateSet | ( | const AnimationStateSet & | rhs | ) |
Create an animation set by copying the contents of another.
Ogre::v1::AnimationStateSet::~AnimationStateSet | ( | ) |
void Ogre::v1::AnimationStateSet::_notifyAnimationStateEnabled | ( | AnimationState * | target, |
bool | enabled | ||
) |
Internal method respond to enable/disable an animation state.
void Ogre::v1::AnimationStateSet::_notifyDirty | ( | ) |
Set the dirty flag and dirty frame number on this state set.
void Ogre::v1::AnimationStateSet::copyMatchingState | ( | AnimationStateSet * | target | ) | const |
Copy the state of any matching animation states from this to another.
AnimationState* Ogre::v1::AnimationStateSet::createAnimationState | ( | const String & | animName, |
Real | timePos, | ||
Real | length, | ||
Real | weight = 1.0 , |
||
bool | enabled = false |
||
) |
Create a new AnimationState instance.
animName | The name of the animation |
timePos | Starting time position |
length | Length of the animation to play |
weight | Weight to apply the animation with |
enabled | Whether the animation is enabled |
AnimationState* Ogre::v1::AnimationStateSet::getAnimationState | ( | const String & | name | ) | const |
Get an animation state by the name of the animation.
AnimationStateIterator Ogre::v1::AnimationStateSet::getAnimationStateIterator | ( | ) |
Get an iterator over all the animation states in this set.
ConstAnimationStateIterator Ogre::v1::AnimationStateSet::getAnimationStateIterator | ( | ) | const |
Get an iterator over all the animation states in this set.
|
inline |
Get the latest animation state been altered frame number.
ConstEnabledAnimationStateIterator Ogre::v1::AnimationStateSet::getEnabledAnimationStateIterator | ( | ) | const |
Get an iterator over all the enabled animation states in this set.
bool Ogre::v1::AnimationStateSet::hasAnimationState | ( | const String & | name | ) | const |
Tests if state for the named animation is present.
|
inline |
Tests if exists enabled animation state in this set.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
|
inlineinherited |
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
void Ogre::v1::AnimationStateSet::removeAllAnimationStates | ( | ) |
Remove all animation states.
void Ogre::v1::AnimationStateSet::removeAnimationState | ( | const String & | name | ) |
Remove animation state with the given name.
Ogre::v1::AnimationStateSet::OGRE_AUTO_MUTEX |
Mutex, public for external locking if needed.