| - Cal3D 0.11 API Reference - |
The core keyframe class. More...
#include <corekeyframe.h>
Public Member Functions | |
| CalCoreKeyframe () | |
| Constructs the core keyframe instance. | |
| virtual | ~CalCoreKeyframe () |
| Destructs the core keyframe instance. | |
| bool | create () |
| Creates the core keyframe instance. | |
| unsigned int | size () |
| void | destroy () |
| Destroys the core keyframe instance. | |
| const CalQuaternion & | getRotation () const |
| Returns the rotation. | |
| float | getTime () const |
| Returns the time. | |
| const CalVector & | getTranslation () const |
| Returns the translation. | |
| void | setRotation (const CalQuaternion &rotation) |
| Sets the rotation. | |
| void | setTime (float time) |
| Sets the time. | |
| void | setTranslation (const CalVector &translation) |
| Sets the translation. | |
Static Public Member Functions | |
| static unsigned int | numCalCoreKeyframes () |
| static unsigned int | numCalCoreKeyframeBytes () |
Protected Attributes | |
| float | m_time |
| CalVector | m_translation |
| CalQuaternion | m_rotation |
The core keyframe class.
| CalCoreKeyframe::CalCoreKeyframe | ( | ) |
Constructs the core keyframe instance.
This function is the default constructor of the core keyframe instance.
|
virtual |
Destructs the core keyframe instance.
This function is the destructor of the core keyframe instance.
| bool CalCoreKeyframe::create | ( | ) |
Creates the core keyframe instance.
This function creates the core keyframe instance.
| void CalCoreKeyframe::destroy | ( | ) |
Destroys the core keyframe instance.
This function destroys all data stored in the core keyframe instance and frees all allocated memory.
| const CalQuaternion & CalCoreKeyframe::getRotation | ( | ) | const |
Returns the rotation.
This function returns the rotation of the core keyframe instance.
|
inline |
Returns the time.
This function returns the time of the core keyframe instance.
| const CalVector & CalCoreKeyframe::getTranslation | ( | ) | const |
Returns the translation.
This function returns the translation of the core keyframe instance.
| void CalCoreKeyframe::setRotation | ( | const CalQuaternion & | rotation | ) |
Sets the rotation.
This function sets the rotation of the core keyframe instance.
| rotation | The rotation as quaternion. |
| void CalCoreKeyframe::setTime | ( | float | time | ) |
Sets the time.
This function sets the time of the core keyframe instance.
| rotation | The time in seconds. |
| void CalCoreKeyframe::setTranslation | ( | const CalVector & | translation | ) |
Sets the translation.
This function sets the translation of the core keyframe instance.
| rotation | The translation as vector. |