OGRE 2.1
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::v1::AnimationStateSet Class Reference

Class encapsulating a set of AnimationState objects. More...

#include <OgreAnimationState.h>

+ Inheritance diagram for Ogre::v1::AnimationStateSet:

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.
 
AnimationStatecreateAnimationState (const String &animName, Real timePos, Real length, Real weight=1.0, bool enabled=false)
 Create a new AnimationState instance.
 
AnimationStategetAnimationState (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 *)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info
 
voidoperator new (size_t sz, void *ptr)
 placement operator new
 
voidoperator new[] (size_t sz)
 
voidoperator 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.
 

Detailed Description

Class encapsulating a set of AnimationState objects.

Constructor & Destructor Documentation

◆ AnimationStateSet() [1/2]

Ogre::v1::AnimationStateSet::AnimationStateSet ( )

Create a blank animation state set.

◆ AnimationStateSet() [2/2]

Ogre::v1::AnimationStateSet::AnimationStateSet ( const AnimationStateSet rhs)

Create an animation set by copying the contents of another.

◆ ~AnimationStateSet()

Ogre::v1::AnimationStateSet::~AnimationStateSet ( )

Member Function Documentation

◆ _notifyAnimationStateEnabled()

void Ogre::v1::AnimationStateSet::_notifyAnimationStateEnabled ( AnimationState target,
bool  enabled 
)

Internal method respond to enable/disable an animation state.

◆ _notifyDirty()

void Ogre::v1::AnimationStateSet::_notifyDirty ( void  )

Set the dirty flag and dirty frame number on this state set.

◆ copyMatchingState()

void Ogre::v1::AnimationStateSet::copyMatchingState ( AnimationStateSet target) const

Copy the state of any matching animation states from this to another.

◆ createAnimationState()

AnimationState * Ogre::v1::AnimationStateSet::createAnimationState ( const String animName,
Real  timePos,
Real  length,
Real  weight = 1.0,
bool  enabled = false 
)

Create a new AnimationState instance.

Parameters
animNameThe name of the animation
timePosStarting time position
lengthLength of the animation to play
weightWeight to apply the animation with
enabledWhether the animation is enabled

◆ getAnimationState()

AnimationState * Ogre::v1::AnimationStateSet::getAnimationState ( const String name) const

Get an animation state by the name of the animation.

◆ getAnimationStateIterator() [1/2]

AnimationStateIterator Ogre::v1::AnimationStateSet::getAnimationStateIterator ( void  )

Get an iterator over all the animation states in this set.

Note
The iterator returned from this method is not threadsafe, you will need to manually lock the public mutex on this class to ensure thread safety if you need it.

◆ getAnimationStateIterator() [2/2]

ConstAnimationStateIterator Ogre::v1::AnimationStateSet::getAnimationStateIterator ( void  ) const

Get an iterator over all the animation states in this set.

Note
The iterator returned from this method is not threadsafe, you will need to manually lock the public mutex on this class to ensure thread safety if you need it.

◆ getDirtyFrameNumber()

unsigned long Ogre::v1::AnimationStateSet::getDirtyFrameNumber ( void  ) const
inline

Get the latest animation state been altered frame number.

◆ getEnabledAnimationStateIterator()

ConstEnabledAnimationStateIterator Ogre::v1::AnimationStateSet::getEnabledAnimationStateIterator ( void  ) const

Get an iterator over all the enabled animation states in this set.

Note
The iterator returned from this method is not threadsafe, you will need to manually lock the public mutex on this class to ensure thread safety if you need it.

◆ hasAnimationState()

bool Ogre::v1::AnimationStateSet::hasAnimationState ( const String name) const

Tests if state for the named animation is present.

◆ hasEnabledAnimationState()

bool Ogre::v1::AnimationStateSet::hasEnabledAnimationState ( void  ) const
inline

Tests if exists enabled animation state in this set.

◆ operator delete() [1/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr)
inlineinherited

◆ operator delete() [2/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr,
const char ,
int  ,
const char  
)
inlineinherited

◆ operator delete() [3/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr,
void  
)
inlineinherited

◆ operator delete[]() [1/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void ptr)
inlineinherited

◆ operator delete[]() [2/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void ptr,
const char ,
int  ,
const char  
)
inlineinherited

◆ operator new() [1/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

◆ operator new() [2/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char file,
int  line,
const char func 
)
inlineinherited

operator new, with debug line info

◆ operator new() [3/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void ptr 
)
inlineinherited

placement operator new

◆ operator new[]() [1/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

◆ operator new[]() [2/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char file,
int  line,
const char func 
)
inlineinherited

array operator new, with debug line info

◆ removeAllAnimationStates()

void Ogre::v1::AnimationStateSet::removeAllAnimationStates ( void  )

Remove all animation states.

◆ removeAnimationState()

void Ogre::v1::AnimationStateSet::removeAnimationState ( const String name)

Remove animation state with the given name.

Member Data Documentation

◆ OGRE_AUTO_MUTEX

Ogre::v1::AnimationStateSet::OGRE_AUTO_MUTEX

Mutex, public for external locking if needed.


The documentation for this class was generated from the following file: