- Cal3D 0.11 API Reference - |
The core animatedMorph class. More...
#include <coreanimatedmorph.h>
Public Member Functions | |
virtual | ~CalCoreAnimatedMorph () |
Destructs the core animatedMorph instance. | |
const std::string & | getName () const |
void | setName (const std::string &name) |
bool | addCoreTrack (CalCoreMorphTrack *pCoreTrack) |
Adds a core track. | |
bool | create () |
Creates the core animatedMorph instance. | |
void | destroy () |
Destroys the core animatedMorph instance. | |
CalCoreMorphTrack * | getCoreTrack (const unsigned int &trackId) |
Provides access to a core track. | |
float | getDuration () const |
Returns the duration. | |
std::list< CalCoreMorphTrack > & | getListCoreTrack () |
Returns the core track list. | |
const std::list< CalCoreMorphTrack > & | getListCoreTrack () const |
Returns the core track list. | |
void | setDuration (float duration) |
Sets the duration. | |
void | scale (float factor) |
Scale the core animatedMorph. | |
void | removeZeroScaleTracks () |
Static Public Member Functions | |
static int | getNumCoreAnimatedMorphs () |
Protected Attributes | |
std::string | m_name |
float | m_duration |
std::list< CalCoreMorphTrack > | m_listCoreTrack |
std::list< CalCoreMorphTrack * > | m_tracksToDelete |
The core animatedMorph class.
|
virtual |
Destructs the core animatedMorph instance.
This function is the destructor of the core animatedMorph instance.
bool CalCoreAnimatedMorph::addCoreTrack | ( | CalCoreMorphTrack * | pCoreTrack | ) |
Adds a core track.
This function adds a core track to the core animatedMorph instance.
pCoreTrack | A pointer to the core track that should be added. |
bool CalCoreAnimatedMorph::create | ( | ) |
Creates the core animatedMorph instance.
This function creates the core animatedMorph instance.
void CalCoreAnimatedMorph::destroy | ( | ) |
Destroys the core animatedMorph instance.
This function destroys all data stored in the core animatedMorph instance and frees all allocated memory.
CalCoreMorphTrack * CalCoreAnimatedMorph::getCoreTrack | ( | const unsigned int & | name | ) |
Provides access to a core track.
This function returns the core track for a given bone ID.
coreBoneId | The core bone ID of the core track that should be returned. |
float CalCoreAnimatedMorph::getDuration | ( | ) | const |
Returns the duration.
This function returns the duration of the core animatedMorph instance.
std::list< CalCoreMorphTrack > & CalCoreAnimatedMorph::getListCoreTrack | ( | ) |
Returns the core track list.
This function returns the list that contains all core tracks of the core animatedMorph instance.
const std::list< CalCoreMorphTrack > & CalCoreAnimatedMorph::getListCoreTrack | ( | ) | const |
Returns the core track list.
This function returns the list that contains all core tracks of the core animatedMorph instance.
void CalCoreAnimatedMorph::scale | ( | float | factor | ) |
Scale the core animatedMorph.
This function rescale all the skeleton data that are in the core animatedMorph instance
factor | A float with the scale factor |
void CalCoreAnimatedMorph::setDuration | ( | float | duration | ) |
Sets the duration.
This function sets the duration of the core animatedMorph instance.
duration | The duration in seconds that should be set. |