- Cal3D 0.11 API Reference -

Public Member Functions | Protected Attributes | List of all members
CalCoreMorphTrack Class Reference

Public Member Functions

 CalCoreMorphTrack ()
 Constructs the core track instance. More...
 
virtual ~CalCoreMorphTrack ()
 Destructs the core track instance. More...
 
bool create ()
 Creates the core track instance. More...
 
void destroy ()
 Destroys the core track instance. More...
 
bool getState (float time, float &weightOut)
 Returns a specified state. More...
 
const unsigned int & getMorphID () const
 
void setMorphID (const unsigned int &name)
 
const unsigned int & getTargetMesh () const
 
void setTargetMesh (unsigned int name)
 
const unsigned int getNumTargetSubMeshes () const
 TargetSubMeshes container if empty assume ALL submeshes have morphtarget.
 
void addTargetSubMesh (unsigned int i)
 
void removeTargetSubMesh (unsigned int name)
 
const unsigned int & getTargetSubMesh (const unsigned int &name) const
 
int getCoreMorphKeyframeCount () const
 
void reserve (int)
 
CalCoreMorphKeyframegetCoreMorphKeyframe (int idx)
 
const CalCoreMorphKeyframegetCoreMorphKeyframe (int idx) const
 
bool addCoreMorphKeyframe (CalCoreMorphKeyframe *pCoreKeyframe)
 Adds a core keyframe. More...
 
const std::vector< CalCoreMorphKeyframe > & getVectorCoreMorphKeyframes () const
 
std::vector< CalCoreMorphKeyframe > & getVectorCoreMorphKeyframes ()
 
void scale (float factor)
 Scale the core track. More...
 

Protected Attributes

unsigned int m_morphID
 
unsigned int m_targetMeshID
 
std::vector< unsigned int > m_targetSubMeshIDs
 
std::vector< CalCoreMorphKeyframem_keyframes
 List of keyframes, always sorted by time.
 
std::vector< CalCoreMorphKeyframe * > m_keyframesToDelete
 

Constructor & Destructor Documentation

◆ CalCoreMorphTrack()

CalCoreMorphTrack::CalCoreMorphTrack ( )

Constructs the core track instance.

This function is the default constructor of the core track instance.

◆ ~CalCoreMorphTrack()

CalCoreMorphTrack::~CalCoreMorphTrack ( )
virtual

Destructs the core track instance.

This function is the destructor of the core track instance.

Member Function Documentation

◆ addCoreMorphKeyframe()

bool CalCoreMorphTrack::addCoreMorphKeyframe ( CalCoreMorphKeyframe pCoreMorphKeyframe)

Adds a core keyframe.

This function adds a core keyframe to the core track instance.

Parameters
pCoreKeyframeA pointer to the core keyframe that should be added.
Returns
One of the following values:
  • true if successful
  • false if an error happend

◆ create()

bool CalCoreMorphTrack::create ( )

Creates the core track instance.

This function creates the core track instance.

Returns
One of the following values:
  • true if successful
  • false if an error happend

◆ destroy()

void CalCoreMorphTrack::destroy ( )

Destroys the core track instance.

This function destroys all data stored in the core track instance and frees all allocated memory.

◆ getState()

bool CalCoreMorphTrack::getState ( float  time,
float &  weight 
)

Returns a specified state.

This function returns the state for the specified time and duration.

Parameters
timeThe time in seconds at which the state should be returned.
weightoutparam
Returns
One of the following values:
  • true if successful
  • false if an error happend

◆ scale()

void CalCoreMorphTrack::scale ( float  factor)

Scale the core track.

This function rescale all the data that are in the core track instance.

Parameters
factorA float with the scale factor

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

Generated by The Cal3D Team with Doxygen 1.8.14