Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Ogre::AnimableObject Class Reference

Defines an interface to classes which have one or more AnimableValue instances to expose. More...

#include <OgreAnimable.h>

Inheritance diagram for Ogre::AnimableObject:

Ogre::MovableObject Ogre::BillboardChain Ogre::BillboardSet Ogre::Entity Ogre::Frustum Ogre::Light Ogre::ManualObject Ogre::MovablePlane Ogre::ParticleSystem Ogre::SimpleRenderable Ogre::StaticGeometry::Region Ogre::TerrainRenderable List of all members.

Public Member Functions

 AnimableObject ()
virtual ~AnimableObject ()
const StringVectorgetAnimableValueNames (void) const
 Gets a list of animable value names for this object.

virtual AnimableValuePtr createAnimableValue (const String &valueName)
 Create a reference-counted AnimableValuePtr for the named value.


Protected Types

typedef std::map< String,
StringVector
AnimableDictionaryMap

Protected Member Functions

virtual const StringgetAnimableDictionaryName (void) const
 Get the name of the animable dictionary for this class.

void createAnimableDictionary (void) const
 Internal method for creating a dictionary of animable value names for the class, if it does not already exist.

StringVectorgetAnimableValueNames (void)
 Get an updateable reference to animable value list.

virtual void initialiseAnimableDictionary (StringVector &vec) const
 Internal method for initialising dictionary; should be implemented by subclasses wanting to expose animable parameters.


Static Protected Attributes

AnimableDictionaryMap msAnimableDictionary
 Static map of class name to list of animable value names.


Detailed Description

Defines an interface to classes which have one or more AnimableValue instances to expose.

Definition at line 199 of file OgreAnimable.h.


Member Typedef Documentation

typedef std::map<String, StringVector> Ogre::AnimableObject::AnimableDictionaryMap [protected]
 

Definition at line 202 of file OgreAnimable.h.


Constructor & Destructor Documentation

Ogre::AnimableObject::AnimableObject  ) 
 

Definition at line 252 of file OgreAnimable.h.

virtual Ogre::AnimableObject::~AnimableObject  )  [virtual]
 

Definition at line 253 of file OgreAnimable.h.


Member Function Documentation

void Ogre::AnimableObject::createAnimableDictionary void   )  const [protected]
 

Internal method for creating a dictionary of animable value names for the class, if it does not already exist.

Definition at line 215 of file OgreAnimable.h.

References Ogre::StringVector.

virtual AnimableValuePtr Ogre::AnimableObject::createAnimableValue const String valueName  )  [virtual]
 

Create a reference-counted AnimableValuePtr for the named value.

Remarks:
You can use the returned object to animate a value on this object, using AnimationTrack. Subclasses must override this if they wish to support animation of their values.

Reimplemented in Ogre::Light.

Definition at line 281 of file OgreAnimable.h.

References Ogre::AnimableValuePtr, OGRE_EXCEPT, and Ogre::String.

virtual const String& Ogre::AnimableObject::getAnimableDictionaryName void   )  const [protected, virtual]
 

Get the name of the animable dictionary for this class.

Remarks:
Subclasses must override this if they want to support animation of their values.

Reimplemented in Ogre::Light.

Definition at line 210 of file OgreAnimable.h.

References Ogre::String.

const StringVector& Ogre::AnimableObject::getAnimableValueNames void   )  const
 

Gets a list of animable value names for this object.

Definition at line 256 of file OgreAnimable.h.

References OGRE_EXCEPT, and Ogre::StringVector.

StringVector& Ogre::AnimableObject::getAnimableValueNames void   )  [protected]
 

Get an updateable reference to animable value list.

Definition at line 228 of file OgreAnimable.h.

References OGRE_EXCEPT, and Ogre::StringVector.

virtual void Ogre::AnimableObject::initialiseAnimableDictionary StringVector vec  )  const [protected, virtual]
 

Internal method for initialising dictionary; should be implemented by subclasses wanting to expose animable parameters.

Reimplemented in Ogre::Light.

Definition at line 248 of file OgreAnimable.h.

References Ogre::StringVector.


Member Data Documentation

AnimableDictionaryMap Ogre::AnimableObject::msAnimableDictionary [static, protected]
 

Static map of class name to list of animable value names.

Definition at line 204 of file OgreAnimable.h.


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

Copyright © 2000-2005 by The OGRE Team
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:38:04 2006