- Cal3D 0.11 API Reference - |
Public Member Functions | |
CalSkeleton (CalCoreSkeleton *pCoreSkeleton) | |
Constructs the skeleton instance. More... | |
~CalSkeleton () | |
Destructs the skeleton instance. More... | |
void | calculateState () |
Calculates the state of the skeleton instance. More... | |
void | clearState () |
Clears the state of the skeleton instance. More... | |
bool | create (CalCoreSkeleton *pCoreSkeleton) |
CalBone * | getBone (int boneId) const |
Provides access to a bone. More... | |
CalCoreSkeleton * | getCoreSkeleton () const |
Provides access to the core skeleton. More... | |
std::vector< CalBone * > & | getVectorBone () |
Returns the bone vector. More... | |
void | lockState () |
Locks the state of the skeleton instance. More... | |
void | getBoneBoundingBox (float *min, float *max) |
Calculates axis aligned bounding box of skeleton bones. More... | |
void | calculateBoundingBoxes () |
Calculates bounding boxes. More... | |
int | getBonePoints (float *pPoints) |
int | getBonePointsStatic (float *pPoints) |
int | getBoneLines (float *pLines) |
int | getBoneLinesStatic (float *pLines) |
CalSkeleton::CalSkeleton | ( | CalCoreSkeleton * | pCoreSkeleton | ) |
Constructs the skeleton instance.
This function is the default constructor of the skeleton instance.
CalSkeleton::~CalSkeleton | ( | ) |
Destructs the skeleton instance.
This function is the destructor of the skeleton instance.
void CalSkeleton::calculateBoundingBoxes | ( | ) |
Calculates bounding boxes.
This function Calculates the bounding box of every bone in the Skeleton.
void CalSkeleton::calculateState | ( | ) |
Calculates the state of the skeleton instance.
This function calculates the state of the skeleton instance by recursively calculating the states of its bones.
void CalSkeleton::clearState | ( | ) |
Clears the state of the skeleton instance.
This function clears the state of the skeleton instance by recursively clearing the states of its bones.
CalBone * CalSkeleton::getBone | ( | int | boneId | ) | const |
Provides access to a bone.
This function returns the bone with the given ID.
boneId | The ID of the bone that should be returned. |
void CalSkeleton::getBoneBoundingBox | ( | float * | min, |
float * | max | ||
) |
Calculates axis aligned bounding box of skeleton bones.
min | The vector where the min values of bb are stored. |
man | The vector where the max values of bb are stored. |
CalCoreSkeleton * CalSkeleton::getCoreSkeleton | ( | ) | const |
Provides access to the core skeleton.
This function returns the core skeleton on which this skeleton instance is based on.
std::vector< CalBone * > & CalSkeleton::getVectorBone | ( | ) |
Returns the bone vector.
This function returns the vector that contains all bones of the skeleton instance.
void CalSkeleton::lockState | ( | ) |
Locks the state of the skeleton instance.
This function locks the state of the skeleton instance by recursively locking the states of its bones.