| - Cal3D 0.11 API Reference - |
Public Member Functions | |
| CalCoreMorphTrack () | |
| Constructs the core track instance. | |
| virtual | ~CalCoreMorphTrack () |
| Destructs the core track instance. | |
| bool | create () |
| Creates the core track instance. | |
| void | destroy () |
| Destroys the core track instance. | |
| bool | getState (float time, float &weightOut) |
| Returns a specified state. | |
| const unsigned int & | getMorphID () const |
| void | setMorphID (const unsigned int &name) |
| const unsigned int & | getTargetMesh () const |
| void | setTargetMesh (unsigned int name) |
| const unsigned int | getNumTargetSubMeshes () const |
| TargetSubMeshes container if empty assume ALL submeshes have morphtarget. | |
| void | addTargetSubMesh (unsigned int i) |
| void | removeTargetSubMesh (unsigned int name) |
| const unsigned int & | getTargetSubMesh (const unsigned int &name) const |
| int | getCoreMorphKeyframeCount () const |
| void | reserve (int) |
| CalCoreMorphKeyframe * | getCoreMorphKeyframe (int idx) |
| const CalCoreMorphKeyframe * | getCoreMorphKeyframe (int idx) const |
| bool | addCoreMorphKeyframe (CalCoreMorphKeyframe *pCoreKeyframe) |
| Adds a core keyframe. | |
| const std::vector< CalCoreMorphKeyframe > & | getVectorCoreMorphKeyframes () const |
| std::vector< CalCoreMorphKeyframe > & | getVectorCoreMorphKeyframes () |
| void | scale (float factor) |
| Scale the core track. | |
Protected Attributes | |
| unsigned int | m_morphID |
| unsigned int | m_targetMeshID |
| std::vector< unsigned int > | m_targetSubMeshIDs |
| 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.
| 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 |