#include <OgreAnimable.h>
Public Types | |
enum | ValueType { INT, REAL, VECTOR2, VECTOR3, VECTOR4, QUATERNION, COLOUR } |
The type of the value being animated. More... | |
Public Member Functions | |
AnimableValue (ValueType t) | |
virtual | ~AnimableValue () |
ValueType | getType (void) const |
Gets the value type of this animable value. | |
virtual void | setCurrentStateAsBaseValue (void)=0 |
Sets the current state as the 'base' value; used for delta animation. | |
virtual void | setValue (int) |
Set value. | |
virtual void | setValue (Real) |
Set value. | |
virtual void | setValue (const Vector2 &) |
Set value. | |
virtual void | setValue (const Vector3 &) |
Set value. | |
virtual void | setValue (const Vector4 &) |
Set value. | |
virtual void | setValue (const Quaternion &) |
Set value. | |
virtual void | setValue (const ColourValue &) |
Set value. | |
virtual void | setValue (const Any &val) |
Set value. | |
virtual void | resetToBaseValue (void) |
virtual void | applyDeltaValue (int) |
Apply delta value. | |
virtual void | applyDeltaValue (Real) |
Set value. | |
virtual void | applyDeltaValue (const Vector2 &) |
Apply delta value. | |
virtual void | applyDeltaValue (const Vector3 &) |
Apply delta value. | |
virtual void | applyDeltaValue (const Vector4 &) |
Apply delta value. | |
virtual void | applyDeltaValue (const Quaternion &) |
Apply delta value. | |
virtual void | applyDeltaValue (const ColourValue &) |
Apply delta value. | |
virtual void | applyDeltaValue (const Any &val) |
Apply delta value. | |
Protected Member Functions | |
virtual void | setAsBaseValue (int val) |
Internal method to set a value as base. | |
virtual void | setAsBaseValue (Real val) |
Internal method to set a value as base. | |
virtual void | setAsBaseValue (const Vector2 &val) |
Internal method to set a value as base. | |
virtual void | setAsBaseValue (const Vector3 &val) |
Internal method to set a value as base. | |
virtual void | setAsBaseValue (const Vector4 &val) |
Internal method to set a value as base. | |
virtual void | setAsBaseValue (const Quaternion &val) |
Internal method to set a value as base. | |
virtual void | setAsBaseValue (const Any &val) |
Internal method to set a value as base. | |
virtual void | setAsBaseValue (const ColourValue &val) |
Internal method to set a value as base. | |
Protected Attributes | |
ValueType | mType |
Value type. | |
union { | |
int mBaseValueInt | |
Real mBaseValueReal [4] | |
}; | |
Base value data. |
Definition at line 65 of file OgreAnimable.h.
Ogre::AnimableValue::AnimableValue | ( | ValueType | t | ) |
Definition at line 119 of file OgreAnimable.h.
virtual Ogre::AnimableValue::~AnimableValue | ( | ) | [virtual] |
Definition at line 120 of file OgreAnimable.h.
virtual void Ogre::AnimableValue::setAsBaseValue | ( | int | val | ) | [protected, virtual] |
virtual void Ogre::AnimableValue::setAsBaseValue | ( | Real | val | ) | [protected, virtual] |
virtual void Ogre::AnimableValue::setAsBaseValue | ( | const Vector2 & | val | ) | [protected, virtual] |
Internal method to set a value as base.
Definition at line 95 of file OgreAnimable.h.
References Ogre::Vector2::ptr().
virtual void Ogre::AnimableValue::setAsBaseValue | ( | const Vector3 & | val | ) | [protected, virtual] |
Internal method to set a value as base.
Definition at line 98 of file OgreAnimable.h.
References Ogre::Vector3::ptr().
virtual void Ogre::AnimableValue::setAsBaseValue | ( | const Vector4 & | val | ) | [protected, virtual] |
Internal method to set a value as base.
Definition at line 101 of file OgreAnimable.h.
References Ogre::Vector4::ptr().
virtual void Ogre::AnimableValue::setAsBaseValue | ( | const Quaternion & | val | ) | [protected, virtual] |
Internal method to set a value as base.
Definition at line 104 of file OgreAnimable.h.
References Ogre::Quaternion::ptr().
virtual void Ogre::AnimableValue::setAsBaseValue | ( | const Any & | val | ) | [protected, virtual] |
Internal method to set a value as base.
virtual void Ogre::AnimableValue::setAsBaseValue | ( | const ColourValue & | val | ) | [protected, virtual] |
Internal method to set a value as base.
Definition at line 109 of file OgreAnimable.h.
References Ogre::ColourValue::a, Ogre::ColourValue::b, Ogre::ColourValue::g, and Ogre::ColourValue::r.
ValueType Ogre::AnimableValue::getType | ( | void | ) | const |
virtual void Ogre::AnimableValue::setCurrentStateAsBaseValue | ( | void | ) | [pure virtual] |
Sets the current state as the 'base' value; used for delta animation.
virtual void Ogre::AnimableValue::setValue | ( | int | ) | [virtual] |
Set value.
Definition at line 129 of file OgreAnimable.h.
References Ogre::Exception::ERR_NOT_IMPLEMENTED, and OGRE_EXCEPT.
virtual void Ogre::AnimableValue::setValue | ( | Real | ) | [virtual] |
Set value.
Definition at line 133 of file OgreAnimable.h.
References Ogre::Exception::ERR_NOT_IMPLEMENTED, and OGRE_EXCEPT.
virtual void Ogre::AnimableValue::setValue | ( | const Vector2 & | ) | [virtual] |
Set value.
Definition at line 137 of file OgreAnimable.h.
References Ogre::Exception::ERR_NOT_IMPLEMENTED, and OGRE_EXCEPT.
virtual void Ogre::AnimableValue::setValue | ( | const Vector3 & | ) | [virtual] |
Set value.
Definition at line 141 of file OgreAnimable.h.
References Ogre::Exception::ERR_NOT_IMPLEMENTED, and OGRE_EXCEPT.
virtual void Ogre::AnimableValue::setValue | ( | const Vector4 & | ) | [virtual] |
Set value.
Definition at line 145 of file OgreAnimable.h.
References Ogre::Exception::ERR_NOT_IMPLEMENTED, and OGRE_EXCEPT.
virtual void Ogre::AnimableValue::setValue | ( | const Quaternion & | ) | [virtual] |
Set value.
Definition at line 149 of file OgreAnimable.h.
References Ogre::Exception::ERR_NOT_IMPLEMENTED, and OGRE_EXCEPT.
virtual void Ogre::AnimableValue::setValue | ( | const ColourValue & | ) | [virtual] |
Set value.
Definition at line 153 of file OgreAnimable.h.
References Ogre::Exception::ERR_NOT_IMPLEMENTED, and OGRE_EXCEPT.
virtual void Ogre::AnimableValue::setValue | ( | const Any & | val | ) | [virtual] |
Set value.
virtual void Ogre::AnimableValue::resetToBaseValue | ( | void | ) | [virtual] |
virtual void Ogre::AnimableValue::applyDeltaValue | ( | int | ) | [virtual] |
Apply delta value.
Definition at line 163 of file OgreAnimable.h.
References Ogre::Exception::ERR_NOT_IMPLEMENTED, and OGRE_EXCEPT.
virtual void Ogre::AnimableValue::applyDeltaValue | ( | Real | ) | [virtual] |
Set value.
Definition at line 167 of file OgreAnimable.h.
References Ogre::Exception::ERR_NOT_IMPLEMENTED, and OGRE_EXCEPT.
virtual void Ogre::AnimableValue::applyDeltaValue | ( | const Vector2 & | ) | [virtual] |
Apply delta value.
Definition at line 171 of file OgreAnimable.h.
References Ogre::Exception::ERR_NOT_IMPLEMENTED, and OGRE_EXCEPT.
virtual void Ogre::AnimableValue::applyDeltaValue | ( | const Vector3 & | ) | [virtual] |
Apply delta value.
Definition at line 175 of file OgreAnimable.h.
References Ogre::Exception::ERR_NOT_IMPLEMENTED, and OGRE_EXCEPT.
virtual void Ogre::AnimableValue::applyDeltaValue | ( | const Vector4 & | ) | [virtual] |
Apply delta value.
Definition at line 179 of file OgreAnimable.h.
References Ogre::Exception::ERR_NOT_IMPLEMENTED, and OGRE_EXCEPT.
virtual void Ogre::AnimableValue::applyDeltaValue | ( | const Quaternion & | ) | [virtual] |
Apply delta value.
Definition at line 183 of file OgreAnimable.h.
References Ogre::Exception::ERR_NOT_IMPLEMENTED, and OGRE_EXCEPT.
virtual void Ogre::AnimableValue::applyDeltaValue | ( | const ColourValue & | ) | [virtual] |
Apply delta value.
Definition at line 187 of file OgreAnimable.h.
References Ogre::Exception::ERR_NOT_IMPLEMENTED, and OGRE_EXCEPT.
virtual void Ogre::AnimableValue::applyDeltaValue | ( | const Any & | val | ) | [virtual] |
Apply delta value.
ValueType Ogre::AnimableValue::mType [protected] |
Definition at line 86 of file OgreAnimable.h.
Definition at line 87 of file OgreAnimable.h.
union { ... } [protected] |
Base value data.
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sat May 10 16:25:13 2008