Class encapsulating a set of AnimationState objects. More...
#include <OgreAnimationState.h>
Public Member Functions | |
AnimationStateSet () | |
Create a blank animation state set. | |
AnimationStateSet (const AnimationStateSet &rhs) | |
Create an animation set by copying the contents of another. | |
~AnimationStateSet () | |
void | _notifyAnimationStateEnabled (AnimationState *target, bool enabled) |
Internal method respond to enable/disable an animation state. | |
void | _notifyDirty (void) |
Set the dirty flag and dirty frame number on this state set. | |
void | copyMatchingState (AnimationStateSet *target) const |
Copy the state of any matching animation states from this to another. | |
AnimationState * | createAnimationState (const String &animName, Real timePos, Real length, Real weight=1.0, bool enabled=false) |
Create a new AnimationState instance. | |
AnimationState * | getAnimationState (const String &name) const |
Get an animation state by the name of the animation. | |
AnimationStateIterator | getAnimationStateIterator (void) |
Get an iterator over all the animation states in this set. | |
ConstAnimationStateIterator | getAnimationStateIterator (void) const |
Get an iterator over all the animation states in this set. | |
unsigned long | getDirtyFrameNumber (void) const |
Get the latest animation state been altered frame number. | |
ConstEnabledAnimationStateIterator | getEnabledAnimationStateIterator (void) const |
Get an iterator over all the enabled animation states in this set. | |
bool | hasAnimationState (const String &name) const |
Tests if state for the named animation is present. | |
bool | hasEnabledAnimationState (void) const |
Tests if exists enabled animation state in this set. | |
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 | |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
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 | |
void | removeAllAnimationStates (void) |
Remove all animation states. | |
void | removeAnimationState (const String &name) |
Remove animation state with the given name. | |
Public Attributes | |
OGRE_AUTO_MUTEX | |
Mutex, public for external locking if needed. | |
Protected Attributes | |
AnimationStateMap | mAnimationStates |
unsigned long | mDirtyFrameNumber |
EnabledAnimationStateList | mEnabledAnimationStates |
Class encapsulating a set of AnimationState objects.
Definition at line 196 of file OgreAnimationState.h.
Ogre::AnimationStateSet::AnimationStateSet | ( | ) |
Create a blank animation state set.
Ogre::AnimationStateSet::AnimationStateSet | ( | const AnimationStateSet & | rhs | ) |
Create an animation set by copying the contents of another.
Ogre::AnimationStateSet::~AnimationStateSet | ( | ) |
void Ogre::AnimationStateSet::_notifyAnimationStateEnabled | ( | AnimationState * | target, |
bool | enabled | ||
) |
Internal method respond to enable/disable an animation state.
Set the dirty flag and dirty frame number on this state set.
void Ogre::AnimationStateSet::copyMatchingState | ( | AnimationStateSet * | target | ) | const |
Copy the state of any matching animation states from this to another.
AnimationState * Ogre::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::AnimationStateSet::getAnimationState | ( | const String & | name | ) | const |
Get an animation state by the name of the animation.
AnimationStateIterator Ogre::AnimationStateSet::getAnimationStateIterator | ( | void | ) |
Get an iterator over all the animation states in this set.
Referenced by Ogre::SceneManager::getAnimationStateIterator().
ConstAnimationStateIterator Ogre::AnimationStateSet::getAnimationStateIterator | ( | void | ) | const |
Get an iterator over all the animation states in this set.
Get the latest animation state been altered frame number.
Definition at line 245 of file OgreAnimationState.h.
ConstEnabledAnimationStateIterator Ogre::AnimationStateSet::getEnabledAnimationStateIterator | ( | void | ) | const |
Get an iterator over all the enabled animation states in this set.
Tests if state for the named animation is present.
Tests if exists enabled animation state in this set.
Definition at line 250 of file OgreAnimationState.h.
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
inherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
Remove animation state with the given name.
|
protected |
Definition at line 261 of file OgreAnimationState.h.
Definition at line 260 of file OgreAnimationState.h.
|
protected |
Definition at line 262 of file OgreAnimationState.h.
Ogre::AnimationStateSet::OGRE_AUTO_MUTEX |
Mutex, public for external locking if needed.
Definition at line 200 of file OgreAnimationState.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.