deRigBone Class Reference

Body Rig Bone. More...

#include <deRigBone.h>

List of all members.

Public Member Functions

Constructors and Destructors
 deRigBone (const char *name)
 Creates a new rig bone with the given name.
 ~deRigBone ()
 Cleans up the rig bone.
Management
const char * GetName () const
int GetParent () const
 Retrieves index of the parent rig bone or -1 if a top level bone.
void SetParent (int boneIndex)
 Sets the index of the parent bone or -1 if a top level bone.
decVector GetPosition () const
 Retrieves the position.
void SetPosition (const decVector &position)
 Sets the position.
decVector GetRotation () const
 Retrieves the rotation.
void SetRotation (const decVector &rotation)
 Sets the rotation.
const decVectorGetCentralMassPoint () const
 Retrieves the position of the central mass point.
void SetCentralMassPoint (const decVector &cmp)
 Sets the position of the central mass point.
decMatrix GetMatrix () const
 Retrieves the matrix transforming from local bone space to model space in reference pose.
decMatrix GetInverseMatrix () const
 Retrieves the matrix transforming from model space to local bone space in reference pose.
void SetMatrices (const decMatrix &matrix)
 Sets the matrix transforming from local bone space to model space in reference pose.
bool GetDynamic () const
 Determines if the bone is dynamic or not.
void SetDynamic (bool dynamic)
 Sets of the bone is dynamic.
float GetMass () const
 Retrieves the mass.
void SetMass (float mass)
 Sets the mass factor.
Shapes
int GetShapeCount () const
 Retrieves the number of shapes.
decShapeGetShapeAt (int index) const
 Retrieves the shape at the given index.
int IndexOfShape (decShape *shape) const
 Retrieves the index of the given shape or -1 if not found.
bool HasShape (decShape *shape) const
 Determines if the shape exists.
void AddShape (decShape *shape)
 Adds a shape.
void RemoveShape (decShape *shape)
 Removes a shape.
void RemoveAllShapes ()
 Removes all shapes.
Constraints
int GetConstraintCount () const
 Retrieves the count of constraints.
deRigConstraintGetConstraintAt (int index) const
 Retrieves the indexed constraint.
void AddConstraint (deRigConstraint *constraint)
 Adds a new constraint.

Detailed Description

Body Rig Bone.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

deRigBone::deRigBone ( const char *  name )

Creates a new rig bone with the given name.

deRigBone::~deRigBone (  )

Cleans up the rig bone.


Member Function Documentation

void deRigBone::AddConstraint ( deRigConstraint constraint )

Adds a new constraint.

void deRigBone::AddShape ( decShape shape )

Adds a shape.

const decVector& deRigBone::GetCentralMassPoint (  ) const [inline]

Retrieves the position of the central mass point.

deRigConstraint* deRigBone::GetConstraintAt ( int  index ) const

Retrieves the indexed constraint.

int deRigBone::GetConstraintCount (  ) const [inline]

Retrieves the count of constraints.

bool deRigBone::GetDynamic (  ) const [inline]

Determines if the bone is dynamic or not.

decMatrix deRigBone::GetInverseMatrix (  ) const [inline]

Retrieves the matrix transforming from model space to local bone space in reference pose.

float deRigBone::GetMass (  ) const [inline]

Retrieves the mass.

decMatrix deRigBone::GetMatrix (  ) const [inline]

Retrieves the matrix transforming from local bone space to model space in reference pose.

const char* deRigBone::GetName (  ) const [inline]
int deRigBone::GetParent (  ) const [inline]

Retrieves index of the parent rig bone or -1 if a top level bone.

decVector deRigBone::GetPosition (  ) const [inline]

Retrieves the position.

decVector deRigBone::GetRotation (  ) const [inline]

Retrieves the rotation.

decShape* deRigBone::GetShapeAt ( int  index ) const

Retrieves the shape at the given index.

int deRigBone::GetShapeCount (  ) const

Retrieves the number of shapes.

bool deRigBone::HasShape ( decShape shape ) const

Determines if the shape exists.

int deRigBone::IndexOfShape ( decShape shape ) const

Retrieves the index of the given shape or -1 if not found.

void deRigBone::RemoveAllShapes (  )

Removes all shapes.

void deRigBone::RemoveShape ( decShape shape )

Removes a shape.

void deRigBone::SetCentralMassPoint ( const decVector cmp )

Sets the position of the central mass point.

void deRigBone::SetDynamic ( bool  dynamic )

Sets of the bone is dynamic.

void deRigBone::SetMass ( float  mass )

Sets the mass factor.

void deRigBone::SetMatrices ( const decMatrix matrix )

Sets the matrix transforming from local bone space to model space in reference pose.

void deRigBone::SetParent ( int  boneIndex )

Sets the index of the parent bone or -1 if a top level bone.

void deRigBone::SetPosition ( const decVector position )

Sets the position.

void deRigBone::SetRotation ( const decVector rotation )

Sets the rotation.


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