| - Cal3D 0.11 API Reference - |
Public Member Functions | |
| CalCoreMorphTrack () | |
| Constructs the core track instance. More... | |
| virtual | ~CalCoreMorphTrack () |
| Destructs the core track instance. More... | |
| bool | create () |
| Creates the core track instance. More... | |
| void | destroy () |
| Destroys the core track instance. More... | |
| bool | getState (float time, float &weightOut) |
| Returns a specified state. More... | |
| std::string | getMorphName () const |
| Returns the ID of the core bone. More... | |
| void | setMorphName (std::string name) |
| Sets the ID of the core bone. More... | |
| int | getCoreMorphKeyframeCount () const |
| void | reserve (int) |
| CalCoreMorphKeyframe * | getCoreMorphKeyframe (int idx) |
| const CalCoreMorphKeyframe * | getCoreMorphKeyframe (int idx) const |
| bool | addCoreMorphKeyframe (CalCoreMorphKeyframe *pCoreKeyframe) |
| Adds a core keyframe. More... | |
| const std::vector< CalCoreMorphKeyframe > & | getVectorCoreMorphKeyframes () const |
| std::vector< CalCoreMorphKeyframe > & | getVectorCoreMorphKeyframes () |
| void | scale (float factor) |
| Scale the core track. More... | |
Protected Attributes | |
| std::string | m_morphName |
| std::vector< CalCoreMorphKeyframe > | m_keyframes |
| List of keyframes, always sorted by time. | |
| std::vector< CalCoreMorphKeyframe * > | m_keyframesToDelete |
| CalCoreMorphTrack::CalCoreMorphTrack | ( | ) |
Constructs the core track instance.
This function is the default constructor of the core track instance.
|
virtual |
Destructs the core track instance.
This function is the destructor of the core track instance.
| bool CalCoreMorphTrack::addCoreMorphKeyframe | ( | CalCoreMorphKeyframe * | pCoreMorphKeyframe | ) |
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 CalCoreMorphTrack::create | ( | ) |
Creates the core track instance.
This function creates the core track instance.
| void CalCoreMorphTrack::destroy | ( | ) |
Destroys the core track instance.
This function destroys all data stored in the core track instance and frees all allocated memory.
| std::string CalCoreMorphTrack::getMorphName | ( | ) | const |
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 CalCoreMorphTrack::getState | ( | float | time, |
| float & | weight | ||
| ) |
Returns a specified state.
This function returns the state for the specified time and duration.
| time | The time in seconds at which the state should be returned. |
| weight | outparam |
| void CalCoreMorphTrack::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 |
| void CalCoreMorphTrack::setMorphName | ( | std::string | morphname | ) |
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.
| morphname | The ID of the bone to which the core track instance should be attached to. |