- Cal3D 0.9 API Reference -

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

CalCoreAnimation Class Reference

The core animation class. More...

#include <coreanimation.h>

List of all members.

Public Methods

 CalCoreAnimation ()
 Constructs the core animation instance. More...

virtual ~CalCoreAnimation ()
 Destructs the core animation instance. More...

bool addCoreTrack (CalCoreTrack *pCoreTrack)
 Adds a core track. More...

bool create ()
 Creates the core animation instance. More...

void destroy ()
 Destroys the core animation instance. More...

CalCoreTrack * getCoreTrack (int coreBoneId)
 Provides access to a core track. More...

float getDuration ()
 Returns the duration. More...

std::list< CalCoreTrack * > & getListCoreTrack ()
 Returns the core track list. More...

void setDuration (float duration)
 Sets the duration. More...


Protected Attributes

float m_duration
std::list< CalCoreTrack * > m_listCoreTrack


Detailed Description

The core animation class.


Constructor & Destructor Documentation

CalCoreAnimation::CalCoreAnimation  
 

Constructs the core animation instance.

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

CalCoreAnimation::~CalCoreAnimation   [virtual]
 

Destructs the core animation instance.

This function is the destructor of the core animation instance.


Member Function Documentation

bool CalCoreAnimation::addCoreTrack CalCoreTrack *    pCoreTrack
 

Adds a core track.

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

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

bool CalCoreAnimation::create  
 

Creates the core animation instance.

This function creates the core animation instance.

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

void CalCoreAnimation::destroy  
 

Destroys the core animation instance.

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

CalCoreTrack * CalCoreAnimation::getCoreTrack int    coreBoneId
 

Provides access to a core track.

This function returns the core track for a given bone ID.

Parameters:
coreBoneId  The core bone ID of the core track that should be returned.
Returns:
One of the following values:
  • a pointer to the core track
  • 0 if an error happend

float CalCoreAnimation::getDuration  
 

Returns the duration.

This function returns the duration of the core animation instance.

Returns:
The duration in seconds.

std::list< CalCoreTrack * > & CalCoreAnimation::getListCoreTrack  
 

Returns the core track list.

This function returns the list that contains all core tracks of the core animation instance.

Returns:
A reference to the core track list.

void CalCoreAnimation::setDuration float    duration
 

Sets the duration.

This function sets the duration of the core animation instance.

Parameters:
duration  The duration in seconds that should be set.


The documentation for this class was generated from the following files:
Generated at Sun Oct 12 18:38:48 2003 by The Cal3D Team with doxygen 1.2.14 © 1997-2001 Dimitri van Heesch