![]() |
OGRE
14.1
Object-Oriented Graphics Rendering Engine
|
An animation container interface, which allows generic access to sibling animations. More...
#include <OgreAnimation.h>
Public Member Functions | |
virtual | ~AnimationContainer () |
virtual Animation * | createAnimation (const String &name, Real length)=0 |
Create a new animation with a given length owned by this container. More... | |
virtual Animation * | getAnimation (const String &name) const =0 |
Retrieve an animation by name. More... | |
virtual Animation * | getAnimation (unsigned short index) const =0 |
Retrieve an animation by index. More... | |
virtual unsigned short | getNumAnimations (void) const =0 |
Gets the number of animations in this container. More... | |
virtual bool | hasAnimation (const String &name) const =0 |
Returns whether this object contains the named animation. More... | |
virtual void | removeAnimation (const String &name)=0 |
Removes an Animation from this container. More... | |
An animation container interface, which allows generic access to sibling animations.
Because Animation instances can be held by different kinds of classes, and there are sometimes instances when you need to reference other Animation instances within the same container, this class allows generic access to named animations within that container, whatever it may be.
|
inlinevirtual |
|
pure virtual |
Gets the number of animations in this container.
Implemented in Ogre::SkeletonInstance, Ogre::Skeleton, and Ogre::Mesh.
|
pure virtual |
Retrieve an animation by index.
Implemented in Ogre::SkeletonInstance, Ogre::Skeleton, and Ogre::Mesh.
Retrieve an animation by name.
Implemented in Ogre::Skeleton, and Ogre::Mesh.
|
pure virtual |
Create a new animation with a given length owned by this container.
Implemented in Ogre::SkeletonInstance, Ogre::Skeleton, and Ogre::Mesh.
|
pure virtual |
Returns whether this object contains the named animation.
Implemented in Ogre::Skeleton, and Ogre::Mesh.
|
pure virtual |
Removes an Animation from this container.
Implemented in Ogre::SkeletonInstance, Ogre::Skeleton, and Ogre::Mesh.