- Cal3D 0.11 API Reference - |
Public Member Functions | |
CalCoreTrack () | |
Constructs the core track instance. | |
virtual | ~CalCoreTrack () |
Destructs the core track instance. | |
bool | create () |
Creates the core track instance. | |
void | destroy () |
Destroys the core track instance. | |
bool | getState (float time, CalVector &translation, CalQuaternion &rotation) |
Returns a specified state. | |
int | getCoreBoneId () |
Returns the ID of the core bone. | |
bool | setCoreBoneId (int coreBoneId) |
Sets the ID of the core bone. | |
int | getCoreKeyframeCount () |
CalCoreKeyframe * | getCoreKeyframe (int idx) |
bool | addCoreKeyframe (CalCoreKeyframe *pCoreKeyframe) |
Adds a core keyframe. | |
void | removeCoreKeyFrame (int _i) |
void | scale (float factor) |
Scale the core track. | |
Protected Attributes | |
int | m_coreBoneId |
The index of the associated CoreBone in the CoreSkeleton. | |
std::vector< CalCoreKeyframe * > | m_keyframes |
List of keyframes, always sorted by time. |
CalCoreTrack::CalCoreTrack | ( | ) |
Constructs the core track instance.
This function is the default constructor of the core track instance.
CalCoreTrack::~CalCoreTrack | ( | ) | [virtual] |
Destructs the core track instance.
This function is the destructor of the core track instance.
bool CalCoreTrack::addCoreKeyframe | ( | CalCoreKeyframe * | pCoreKeyframe | ) |
Adds a core keyframe.
This function adds a core keyframe to the core track instance.
pCoreKeyframe | A pointer to the core keyframe that should be added. |
bool CalCoreTrack::create | ( | ) |
Creates the core track instance.
This function creates the core track instance.
void CalCoreTrack::destroy | ( | ) |
Destroys the core track instance.
This function destroys all data stored in the core track instance and frees all allocated memory.
int CalCoreTrack::getCoreBoneId | ( | ) | [inline] |
Returns the ID of the core bone.
This function returns the ID of the core bone to which the core track instance is attached to.
bool CalCoreTrack::getState | ( | float | time, |
CalVector & | translation, | ||
CalQuaternion & | rotation | ||
) |
Returns a specified state.
This function returns the state (translation and rotation of the core bone) for the specified time and duration.
time | The time in seconds at which the state should be returned. |
translation | A reference to the translation reference that will be filled with the specified state. |
rotation | A reference to the rotation reference that will be filled with the specified state. |
void CalCoreTrack::scale | ( | float | factor | ) |
Scale the core track.
This function rescale all the data that are in the core track instance.
factor | A float with the scale factor |
bool CalCoreTrack::setCoreBoneId | ( | int | coreBoneId | ) |
Sets the ID of the core bone.
This function sets the ID of the core bone to which the core track instance is attached to.
coreBoneId | The ID of the bone to which the core track instance should be attached to. |