Drag[en]gine Game Engine  1.0
deModelBone Class Reference

Model Bone. More...

#include <deModelBone.h>

Public Member Functions

Constructors and Destructors
 deModelBone (const char *name)
 
 ~deModelBone ()
 
Management
const decStringGetName () const
 
int GetParent () const
 
void SetParent (int bone)
 
decVector GetPosition () const
 
void SetPosition (const decVector &position)
 
decQuaternion GetOrientation () const
 
void SetOrientation (const decQuaternion &orientation)
 
decVector GetMinimumExtend () const
 
decVector GetMaximumExtend () const
 
void SetMinimumExtend (const decVector &extend)
 
void SetMaximumExtend (const decVector &extend)
 
void EnclosePoint (const decVector &point)
 
decMatrix GetMatrix () const
 
decMatrix GetInverseMatrix () const
 
void SetMatrix (const decMatrix &matrix)
 

Detailed Description

Model Bone.

Author
Pl├╝ss Roland
Version
1.0
Date
2012

Constructor & Destructor Documentation

◆ deModelBone()

deModelBone::deModelBone ( const char *  name)

Creates a new model bone with the given name.

◆ ~deModelBone()

deModelBone::~deModelBone ( )

Cleans up the model bone.

Member Function Documentation

◆ EnclosePoint()

void deModelBone::EnclosePoint ( const decVector point)

Enlarges the extends to include the given point.

Referenced by GetMaximumExtend().

◆ GetInverseMatrix()

decMatrix deModelBone::GetInverseMatrix ( ) const
inline

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

References SetMatrix().

◆ GetMatrix()

decMatrix deModelBone::GetMatrix ( ) const
inline

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

◆ GetMaximumExtend()

decVector deModelBone::GetMaximumExtend ( ) const
inline

Retrieves the maximum extend.

References EnclosePoint(), SetMaximumExtend(), and SetMinimumExtend().

◆ GetMinimumExtend()

decVector deModelBone::GetMinimumExtend ( ) const
inline

Retrieves the minimum extend.

◆ GetName()

const decString& deModelBone::GetName ( ) const
inline

Retrieves the name.

◆ GetOrientation()

decQuaternion deModelBone::GetOrientation ( ) const
inline

Retrieves the orientation relative to the parent or the model if there is no parent.

References SetOrientation().

◆ GetParent()

int deModelBone::GetParent ( ) const
inline

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

References SetParent().

◆ GetPosition()

decVector deModelBone::GetPosition ( ) const
inline

Retrieves the position relative to the parent or the model if there is no parent.

References SetPosition().

◆ SetMatrix()

void deModelBone::SetMatrix ( const decMatrix matrix)

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

Referenced by GetInverseMatrix().

◆ SetMaximumExtend()

void deModelBone::SetMaximumExtend ( const decVector extend)

Sets the maximum extend.

Referenced by GetMaximumExtend().

◆ SetMinimumExtend()

void deModelBone::SetMinimumExtend ( const decVector extend)

Sets the minimum extend.

Referenced by GetMaximumExtend().

◆ SetOrientation()

void deModelBone::SetOrientation ( const decQuaternion orientation)

Sets the orientation relative to the parent or the model if there is no parent.

Referenced by GetOrientation().

◆ SetParent()

void deModelBone::SetParent ( int  bone)

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

Referenced by GetParent().

◆ SetPosition()

void deModelBone::SetPosition ( const decVector position)

Sets the position relative to the parent or the model if there is no parent.

Referenced by GetPosition().


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