- Cal3D 0.9 API Reference - |
#include <corebone.h>
Public Methods | |
CalCoreBone () | |
Constructs the core bone instance. More... | |
virtual | ~CalCoreBone () |
Destructs the core bone instance. More... | |
bool | addChildId (int childId) |
Adds a child ID. More... | |
void | calculateState () |
Calculates the current state. More... | |
bool | create (const std::string &strName) |
Creates the core bone instance. More... | |
void | destroy () |
Destroys the core bone instance. More... | |
std::list< int > & | getListChildId () |
Returns the child ID list. More... | |
const std::string & | getName () |
Returns the name. More... | |
int | getParentId () |
Returns the parent ID. More... | |
CalCoreSkeleton * | getCoreSkeleton () |
Provides access to the core skeleton. More... | |
const CalQuaternion & | getRotation () |
Returns the rotation. More... | |
const CalQuaternion & | getRotationAbsolute () |
Returns the absolute rotation. More... | |
const CalQuaternion & | getRotationBoneSpace () |
Returns the bone space rotation. More... | |
const CalVector & | getTranslation () |
Returns the translation. More... | |
const CalVector & | getTranslationAbsolute () |
Returns the absolute translation. More... | |
const CalVector & | getTranslationBoneSpace () |
Returns the bone space translation. More... | |
Cal::UserData | getUserData () |
Provides access to the user data. More... | |
void | setCoreSkeleton (CalCoreSkeleton *pCoreSkeleton) |
Sets the core skeleton. More... | |
void | setParentId (int parentId) |
Sets the parent ID. More... | |
void | setRotation (const CalQuaternion &rotation) |
Sets the rotation. More... | |
void | setRotationBoneSpace (const CalQuaternion &rotation) |
Sets the bone space rotation. More... | |
void | setTranslation (const CalVector &translation) |
Sets the translation. More... | |
void | setTranslationBoneSpace (const CalVector &translation) |
Sets the bone space translation. More... | |
void | setUserData (Cal::UserData userData) |
Stores user data. More... | |
void | calculateBoundingBox (CalCoreModel *pCoreModel) |
Calculates the bounding box. More... | |
CalBoundingBox & | getBoundingBox () |
Returns the current bounding box. More... | |
void | getBoundingData (int planeId, CalVector &position) |
Protected Attributes | |
std::string | m_strName |
CalCoreSkeleton * | m_pCoreSkeleton |
int | m_parentId |
std::list< int > | m_listChildId |
CalVector | m_translation |
CalQuaternion | m_rotation |
CalVector | m_translationAbsolute |
CalQuaternion | m_rotationAbsolute |
CalVector | m_translationBoneSpace |
CalQuaternion | m_rotationBoneSpace |
Cal::UserData | m_userData |
CalBoundingBox | m_boundingBox |
CalVector | m_boundingPosition [6] |
|
Constructs the core bone instance. This function is the default constructor of the core bone instance. |
|
Destructs the core bone instance. This function is the destructor of the core bone instance. |
|
Adds a child ID. This function adds a core bone ID to the child ID list of the core bone instance.
|
|
Calculates the bounding box. This function Calculates the bounding box of the core bone instance.
|
|
Calculates the current state. This function calculates the current state (absolute translation and rotation) of the core bone instance and all its children. |
|
Creates the core bone instance. This function creates the core bone instance.
|
|
Destroys the core bone instance. This function destroys all data stored in the core bone instance and frees all allocated memory. |
|
Returns the current bounding box. This function returns the current bounding box of the core bone instance.
|
|
Provides access to the core skeleton. This function returns the core skeleton.
|
|
Returns the child ID list. This function returns the list that contains all child IDs of the core bone instance.
|
|
Returns the name. This function returns the name of the core bone instance.
|
|
Returns the parent ID. This function returns the parent ID of the core bone instance.
|
|
Returns the rotation. This function returns the relative rotation of the core bone instance.
|
|
Returns the absolute rotation. This function returns the absolute rotation of the core bone instance.
|
|
Returns the bone space rotation. This function returns the rotation to bring a point into the core bone instance space.
|
|
Returns the translation. This function returns the relative translation of the core bone instance.
|
|
Returns the absolute translation. This function returns the absolute translation of the core bone instance.
|
|
Returns the bone space translation. This function returns the translation to bring a point into the core bone instance space.
|
|
Provides access to the user data. This function returns the user data stored in the core bone instance.
|
|
Sets the core skeleton. This function sets the core skeleton to which the core bone instance is attached to.
|
|
Sets the parent ID. This function sets the parent ID of the core bone instance.
|
|
Sets the rotation. This function sets the relative rotation of the core bone instance.
|
|
Sets the bone space rotation. This function sets the rotation that brings a point into the core bone instance space.
|
|
Sets the translation. This function sets the relative translation of the core bone instance.
|
|
Sets the bone space translation. This function sets the translation that brings a point into the core bone instance space.
|
|
Stores user data. This function stores user data in the core bone instance.
|