- Cal3D 0.11 API Reference -

Classes | Public Types | Public Member Functions | List of all members
CalCoreSubMorphTarget Class Reference
Inheritance diagram for CalCoreSubMorphTarget:
CalCoreSubMorphTargetDiffMap

Classes

struct  BlendVertex
 

Public Types

typedef std::vector< BlendVertex * > VectorBlendVertex
 

Public Member Functions

virtual void setCoreSubmesh (CalCoreSubmesh *inCoreSubmesh)
 Record the core submesh that this morph applies to. More...
 
const CalCoreSubmeshgetCoreSubmesh () const
 Returns the core submesh associated with this morph. More...
 
int getBlendVertexCount () const
 Returns the number of blend vertices. More...
 
unsigned int size ()
 
std::vector< BlendVertex * > & getVectorBlendVertex ()
 Returns the blend vertex vector. More...
 
bool hasBlendVertex (int blendVertexId)
 
BlendVertex const * getBlendVertex (int blendVertexId)
 
const BlendVertexgetBlendVertex (int blendVertexId) const
 
const std::vector< BlendVertex * > & getVectorBlendVertex () const
 Returns the blend vertex vector. More...
 
virtual bool reserve (int blendVertexCount)
 Reserves memory for the blend vertices. More...
 
bool setBlendVertex (int vertexId, const BlendVertex &vertex)
 Sets a specified blend vertex. More...
 
void getBlendVertex (int vertexId, BlendVertex &outVertex) const
 Returns one blend vertex. More...
 
CalMorphTargetType morphTargetType () const
 Return type of morph target, which is determined from parsing the name. More...
 
void setName (std::string)
 
std::string name () const
 

Member Function Documentation

void CalCoreSubMorphTarget::getBlendVertex ( int  vertexId,
BlendVertex outVertex 
) const

Returns one blend vertex.

This function returns a blend vertex from this sub morph target.

Parameters
vertexIdThe ID of the vertex.
outVertexReceives the blend vertex.
int CalCoreSubMorphTarget::getBlendVertexCount ( ) const

Returns the number of blend vertices.

This function returns the number of blend vertices in the core sub morph target instance.

Returns
The number of blend vertices.
const CalCoreSubmesh * CalCoreSubMorphTarget::getCoreSubmesh ( ) const

Returns the core submesh associated with this morph.

This function returns a pointer to the core submesh.

Returns
The number of blend vertices.
std::vector< CalCoreSubMorphTarget::BlendVertex * > & CalCoreSubMorphTarget::getVectorBlendVertex ( )

Returns the blend vertex vector.

This function returns the vector that contains all blend vertices of the core sub morph target instance.

Returns
A reference to the blend vertex vector.
const std::vector< CalCoreSubMorphTarget::BlendVertex * > & CalCoreSubMorphTarget::getVectorBlendVertex ( ) const

Returns the blend vertex vector.

This function returns the vector that contains all blend vertices of the core sub morph target instance.

Returns
A reference to the blend vertex vector.
CalMorphTargetType CalCoreSubMorphTarget::morphTargetType ( ) const

Return type of morph target, which is determined from parsing the name.

Returns
One of the enum values.
bool CalCoreSubMorphTarget::reserve ( int  blendVertexCount)
virtual

Reserves memory for the blend vertices.

This function reserves memory for the blend vertices of the core sub morph target instance.

Parameters
blendVertexCountThe number of blend vertices that this core sub morph target instance should be able to hold.
Returns
One of the following values:
  • true if successful
  • false if an error happened

Reimplemented in CalCoreSubMorphTargetDiffMap.

bool CalCoreSubMorphTarget::setBlendVertex ( int  blendVertexId,
const BlendVertex blendVertex 
)

Sets a specified blend vertex.

This function sets a specified blend vertex in the core sub morph target instance.

Parameters
vertexIdThe ID of the vertex.
vertexThe vertex that should be set.
Returns
One of the following values:
  • true if successful
  • false if an error happened
void CalCoreSubMorphTarget::setCoreSubmesh ( CalCoreSubmesh inCoreSubmesh)
virtual

Record the core submesh that this morph applies to.

This function associates the sub morph target with a core submesh.

Parameters
Thecore submesh.

Reimplemented in CalCoreSubMorphTargetDiffMap.


The documentation for this class was generated from the following files:

Generated by The Cal3D Team with Doxygen 1.8.11