| - Cal3D 0.11 API Reference - |
Public Types | |
| typedef std::vector< CalCoreSubmesh * > | CalCoreSubmeshVector |
Public Member Functions | |
| CalCoreMesh () | |
| Constructs the core mesh instance. | |
| unsigned int | size () |
| int | addCoreSubmesh (CalCoreSubmesh *pCoreSubmesh) |
| Adds a core submesh. | |
| CalCoreSubmesh * | getCoreSubmesh (int id) |
| Provides access to a core submesh. | |
| const CalCoreSubmesh * | getCoreSubmesh (int id) const |
| Provides access to a core submesh. | |
| void | removeCoreSubmesh (int submeshID) |
| Removes a core submesh. | |
| int | getCoreSubmeshCount () const |
| Returns the number of core submeshes. | |
| void | reserve (int submeshes) |
| std::vector< CalCoreSubmesh * > & | getVectorCoreSubmesh () |
| Returns the core submesh vector. | |
| const std::vector< CalCoreSubmesh * > & | getVectorCoreSubmesh () const |
| Returns the core submesh vector. | |
| int | addAsMorphTarget (CalCoreMesh *pCoreMesh) |
| add a CalCoreMesh as MorphId | |
| int | getMorphTargetId (std::string const &morphTargetName) |
| retrieve MorphId from MorphTargetName | |
| bool | hasMorphTargets () |
| return true if submeshes have morphTargets | |
| 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) const |
| 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) const |
| Get the symbolic name the core mesh. | |
| Public Member Functions inherited from cal3d::RefCounted | |
| int | getRefCount () const |
Protected Member Functions | |
| ~CalCoreMesh () | |
| Destructs the core mesh instance. | |
| Protected Member Functions inherited from cal3d::RefCounted | |
| virtual | ~RefCounted () |
| Protected so users of refcounted classes don't use std::auto_ptr or the delete operator. | |
|
protected |
Destructs the core mesh instance.
This function is the destructor of the core mesh instance.
| CalCoreMesh::CalCoreMesh | ( | ) |
Constructs the core mesh instance.
This function is the default constructor of the core mesh instance.
| int CalCoreMesh::addAsMorphTarget | ( | CalCoreMesh * | pCoreMesh | ) |
add a CalCoreMesh as MorphId
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. |
| morphTarget | A string to be assigned as the morph target's name |
different than IMVU: blendvertex store only deltas
store morphid as a mesh attribute
| 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. |
| const CalCoreSubmesh * CalCoreMesh::getCoreSubmesh | ( | int | id | ) | const |
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 | ( | ) | const |
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 | ) | const |
Get the name of the file in which the core mesh is stored, if any.
| int CalCoreMesh::getMorphTargetId | ( | std::string const & | morphTargetName | ) |
retrieve MorphId from MorphTargetName
Set the name of the file in which the core mesh is stored, if any.
| filename | The path of the file. |
| const std::string & CalCoreMesh::getName | ( | void | ) | const |
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.
| const std::vector< CalCoreSubmesh * > & CalCoreMesh::getVectorCoreSubmesh | ( | ) | const |
Returns the core submesh vector.
This function returns the vector that contains all core submeshes of the core mesh instance.
| void CalCoreMesh::removeCoreSubmesh | ( | int | submeshID | ) |
Removes a core submesh.
This function removes a core submesh from the core mesh instance.
| submesh | ID of the core submesh that should be removed. |
| 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. |