| - Cal3D 0.11 API Reference - |
Public Member Functions | |
| CalCoreTrack () | |
| Constructs the core track instance. | |
| ~CalCoreTrack () | |
| Destructs the core track instance. | |
| void | create () |
| Creates the core track instance. | |
| void | destroy () |
| Destroys the core track instance. | |
| unsigned int | size () |
| bool | getState (float time, CalVector &translation, CalQuaternion &rotation) const |
| Returns a specified state. | |
| int | getCoreBoneId () const |
| Returns the ID of the core bone. | |
| bool | setCoreBoneId (int coreBoneId) |
| Sets the ID of the core bone. | |
| int | getCoreKeyframeCount () const |
| CalCoreKeyframe * | getCoreKeyframe (int idx) |
| const CalCoreKeyframe * | getCoreKeyframe (int idx) const |
| bool | addCoreKeyframe (CalCoreKeyframe *pCoreKeyframe) |
| Adds a core keyframe. | |
| void | removeCoreKeyFrame (int _i) |
| bool | getTranslationRequired () |
| void | setTranslationRequired (bool p) |
| bool | getTranslationIsDynamic () |
| void | setTranslationIsDynamic (bool p) |
| bool | getHighRangeRequired () |
| void | setHighRangeRequired (bool p) |
| void | fillInvalidTranslations (CalVector const &trans) |
| void | scale (float factor) |
| Scale the core track. | |
| void | compress (double translationTolerance, double rotationToleranceDegrees, CalCoreSkeleton *skelOrNull) |
| bool | roundTranslation (CalCoreKeyframe const *prev, CalCoreKeyframe *p, double translationTolerance) |
| void | translationCompressibility (bool *transRequiredResult, bool *transDynamicResult, bool *highRangeRequiredResult, float threshold, float highRangeThreshold, CalCoreSkeleton *skel) |
| void | collapseSequences (double translationTolerance, double rotationToleranceDegrees) |
Static Public Member Functions | |
| static int | translationRequiredCount () |
| static int | translationNotRequiredCount () |
| CalCoreTrack::CalCoreTrack | ( | ) |
Constructs the core track instance.
This function is the default constructor of the core track instance.
| CalCoreTrack::~CalCoreTrack | ( | ) |
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. |
| void 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.
|
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 ) const |
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. |