- Cal3D 0.11 API Reference - |
Public Member Functions | |
CalCoreMesh () | |
Constructs the core mesh instance. | |
int | addCoreSubmesh (CalCoreSubmesh *pCoreSubmesh) |
Adds a core submesh. | |
CalCoreSubmesh * | getCoreSubmesh (int id) |
Provides access to a core submesh. | |
int | getCoreSubmeshCount () |
Returns the number of core submeshes. | |
std::vector< CalCoreSubmesh * > & | getVectorCoreSubmesh () |
Returns the core submesh vector. | |
int | addAsMorphTarget (CalCoreMesh *pCoreMesh) |
Adds a core submesh. | |
void | scale (float factor) |
Scale the Mesh. | |
void | setFilename (const std::string &filename) |
Set the name of the file in which the core mesh is stored, if any. | |
const std::string & | getFilename (void) |
Get the name of the file in which the core mesh is stored, if any. | |
void | setName (const std::string &name) |
Set the symbolic name of the core mesh. | |
const std::string & | getName (void) |
Get the symbolic name the core mesh. | |
Protected Member Functions | |
~CalCoreMesh () | |
Destructs the core mesh instance. |
CalCoreMesh::~CalCoreMesh | ( | ) | [protected] |
Destructs the core mesh instance.
This function is the destructor of the core mesh instance.
Constructs the core mesh instance.
This function is the default constructor of the core mesh instance.
int CalCoreMesh::addAsMorphTarget | ( | CalCoreMesh * | pCoreMesh | ) |
Adds a core submesh.
This function adds a core mesh as a blend target. It adds appropriate CalCoreSubMorphTargets to each of the core sub meshes.
pCoreMesh | A pointer to the core mesh that shoulb become a blend target. |
int CalCoreMesh::addCoreSubmesh | ( | CalCoreSubmesh * | pCoreSubmesh | ) |
Adds a core submesh.
This function adds a core submesh to the core mesh instance.
pCoreSubmesh | A pointer to the core submesh that should be added. |
CalCoreSubmesh * CalCoreMesh::getCoreSubmesh | ( | int | id | ) |
Provides access to a core submesh.
This function returns the core submesh with the given ID.
id | The ID of the core submesh that should be returned. |
int CalCoreMesh::getCoreSubmeshCount | ( | ) |
Returns the number of core submeshes.
This function returns the number of core submeshes in the core mesh instance.
const std::string & CalCoreMesh::getFilename | ( | void | ) |
Get the name of the file in which the core mesh is stored, if any.
const std::string & CalCoreMesh::getName | ( | void | ) |
Get the symbolic name the core mesh.
std::vector< CalCoreSubmesh * > & CalCoreMesh::getVectorCoreSubmesh | ( | ) |
Returns the core submesh vector.
This function returns the vector that contains all core submeshes of the core mesh instance.
void CalCoreMesh::scale | ( | float | factor | ) |
Scale the Mesh.
This function rescale all the data that are in the core mesh instance.
factor | A float with the scale factor |
void CalCoreMesh::setFilename | ( | const std::string & | filename | ) |
Set the name of the file in which the core mesh is stored, if any.
filename | The path of the file. |
void CalCoreMesh::setName | ( | const std::string & | name | ) |
Set the symbolic name of the core mesh.
name | A symbolic name. |