- Cal3D 0.9 API Reference - |
#include <coremodel.h>
Public Methods | |
CalCoreModel () | |
Constructs the core model instance. More... | |
virtual | ~CalCoreModel () |
Destructs the core model instance. More... | |
int | addCoreAnimation (CalCoreAnimation *pCoreAnimation) |
Adds a core animation. More... | |
int | addCoreMaterial (CalCoreMaterial *pCoreMaterial) |
Adds a core material. More... | |
int | addCoreMesh (CalCoreMesh *pCoreMesh) |
Adds a core mesh. More... | |
bool | create (const std::string &strName) |
Creates the core model instance. More... | |
bool | createCoreMaterialThread (int coreMaterialThreadId) |
Creates a core material thread. More... | |
void | destroy () |
Destroys the core model instance. More... | |
CalCoreAnimation * | getCoreAnimation (int coreAnimationId) |
Provides access to a core animation. More... | |
int | getCoreAnimationCount () |
Returns the number of core animations. More... | |
CalCoreMaterial * | getCoreMaterial (int coreMaterialId) |
Provides access to a core material. More... | |
int | getCoreMaterialCount () |
Returns the number of core materials. More... | |
int | getCoreMaterialId (int coreMaterialThreadId, int coreMaterialSetId) |
Returns a specified core material ID. More... | |
CalCoreMesh * | getCoreMesh (int coreMeshId) |
Provides access to a core mesh. More... | |
int | getCoreMeshCount () |
Returns the number of core meshes. More... | |
CalCoreSkeleton * | getCoreSkeleton () |
Provides access to the core skeleton. More... | |
Cal::UserData | getUserData () |
Provides access to the user data. More... | |
int | loadCoreAnimation (const std::string &strFilename) |
Loads a core animation. More... | |
int | loadCoreMaterial (const std::string &strFilename) |
Loads a core material. More... | |
int | loadCoreMesh (const std::string &strFilename) |
Loads a core mesh. More... | |
bool | loadCoreSkeleton (const std::string &strFilename) |
Loads the core skeleton. More... | |
bool | saveCoreAnimation (const std::string &strFilename, int coreAnimtionId) |
Saves a core animation. More... | |
bool | saveCoreMaterial (const std::string &strFilename, int coreMaterialId) |
Saves a core material. More... | |
bool | saveCoreMesh (const std::string &strFilename, int coreMeshId) |
Saves a core mesh. More... | |
bool | saveCoreSkeleton (const std::string &strFilename) |
Saves the core skeleton. More... | |
bool | setCoreMaterialId (int coreMaterialThreadId, int coreMaterialSetId, int coreMaterialId) |
Sets a core material ID. More... | |
void | setCoreSkeleton (CalCoreSkeleton *pCoreSkeleton) |
Sets the core skeleton. More... | |
void | setUserData (Cal::UserData userData) |
Stores user data. More... | |
void | addBoneHelper (const std::string &strBoneName, int boneId) |
Creates or overwrites a string-to-boneId mapping. More... | |
void | addAnimHelper (const std::string &strAnimName, int animId) |
Creates or overwrites a string-to-animation ID mapping. More... | |
int | getBoneId (const std::string &strBoneName) |
Retrieves the ID of the bone referenced by a string. More... | |
int | getAnimId (const std::string &strAnimName) |
Retrieves the ID of the animation referenced by a string. More... | |
Protected Attributes | |
std::string | m_strName |
CalCoreSkeleton * | m_pCoreSkeleton |
std::vector< CalCoreAnimation * > | m_vectorCoreAnimation |
std::vector< CalCoreMesh * > | m_vectorCoreMesh |
std::vector< CalCoreMaterial * > | m_vectorCoreMaterial |
std::map< int, std::map< int, int > > | m_mapmapCoreMaterialThread |
Cal::UserData | m_userData |
std::map< std::string, int > | m_animationHelper |
|
Constructs the core model instance. This function is the default constructor of the core model instance. |
|
Destructs the core model instance. This function is the destructor of the core model instance. |
|
Creates or overwrites a string-to-animation ID mapping. This function makes an animation ID reference-able by a string name. Note that we don't verify that the ID is valid because the animation may be added later. Also, if there is already a helper with this name, it will be overwritten without warning.
|
|
Creates or overwrites a string-to-boneId mapping. This function makes a bone ID reference-able by a string name.
|
|
Adds a core animation. This function adds a core animation to the core model instance.
|
|
Adds a core material. This function adds a core material to the core model instance.
|
|
Adds a core mesh. This function adds a core mesh to the core model instance.
|
|
Creates the core model instance. This function creates the core model instance.
|
|
Creates a core material thread. This function creates a new core material thread with the given ID.
|
|
Destroys the core model instance. This function destroys all data stored in the core model instance and frees all allocated memory. |
|
Retrieves the ID of the animation referenced by a string. This function returns an animation ID
|
|
Retrieves the ID of the bone referenced by a string. This function returns a bone ID
|
|
Provides access to a core animation. This function returns the core animation with the given ID.
|
|
Returns the number of core animations. This function returns the number of core animations in the core model instance.
|
|
Provides access to a core material. This function returns the core material with the given ID.
|
|
Returns the number of core materials. This function returns the number of core materials in the core model instance.
|
|
Returns a specified core material ID. This function returns the core material ID for a specified core material thread / core material set pair.
|
|
Provides access to a core mesh. This function returns the core mesh with the given ID.
|
|
Returns the number of core meshes. This function returns the number of core meshes in the core model instance.
|
|
Provides access to the core skeleton. This function returns the core skeleton.
|
|
Provides access to the user data. This function returns the user data stored in the core model instance.
|
|
Loads a core animation. This function loads a core animation from a file.
|
|
Loads a core material. This function loads a core material from a file.
|
|
Loads a core mesh. This function loads a core mesh from a file.
|
|
Loads the core skeleton. This function loads the core skeleton from a file.
|
|
Saves a core animation. This function saves a core animation to a file.
|
|
Saves a core material. This function saves a core material to a file.
|
|
Saves a core mesh. This function saves a core mesh to a file.
|
|
Saves the core skeleton. This function saves the core skeleton to a file.
|
|
Sets a core material ID. This function sets a core material ID for a core material thread / core material set pair.
|
|
Sets the core skeleton. This function sets the core skeleton of the core model instance..
|
|
Stores user data. This function stores user data in the core model instance.
|