- Cal3D 0.11 API Reference -

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

Public Member Functions

 CalCoreSubMorphTargetDiffMap (const CalCoreSubMorphTargetDiffMap &inOther)
 
virtual bool reserve (int blendVertexCount)
 Reserves memory for the blend vertices. More...
 
virtual void setCoreSubmesh (CalCoreSubmesh *inCoreSubmesh)
 Record the core submesh that this morph applies to. More...
 
bool appendBlendVertex (int vertexId, const CalCoreSubMorphTarget::BlendVertex &vertex)
 Record one blend vertex. More...
 
- Public Member Functions inherited from CalCoreSubMorphTarget
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...
 
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
 

Additional Inherited Members

- Public Types inherited from CalCoreSubMorphTarget
typedef std::vector< BlendVertex * > VectorBlendVertex
 

Member Function Documentation

◆ appendBlendVertex()

bool CalCoreSubMorphTargetDiffMap::appendBlendVertex ( int  vertexId,
const CalCoreSubMorphTarget::BlendVertex vertex 
)

Record one blend vertex.

This function adds a blend vertex to the difference map. Vertices must be added in increasing order of ID.

Parameters
vertexIdThe ID of the vertex.
vertexA blend vertex.
Returns
One of the following values:
  • true if successful
  • false if an error happened

◆ reserve()

bool CalCoreSubMorphTargetDiffMap::reserve ( int  blendVertexCount)
virtual

Reserves memory for the blend vertices.

This function reserves memory for the blend vertices of the difference map.

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

Reimplemented from CalCoreSubMorphTarget.

◆ setCoreSubmesh()

void CalCoreSubMorphTargetDiffMap::setCoreSubmesh ( CalCoreSubmesh inCoreSubmesh)
virtual

Record the core submesh that this morph applies to.

This function associates the sub morph target with a core submesh and caches blend vertices using the difference map.

Parameters
Thecore submesh.

Reimplemented from CalCoreSubMorphTarget.


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

Generated by The Cal3D Team with Doxygen 1.8.14