Drag[en]gine Game Engine  1.21
deComponentBone Class Reference

Scene component bone. More...

#include <deComponentBone.h>

Public Member Functions

Constructors and Destructors
 deComponentBone ()
 Create new component bone. More...
 
 ~deComponentBone ()
 Clean up component bone. More...
 
Management
const decVectorGetPosition () const
 Position relative to the rig bone coordinate system. More...
 
void SetPosition (const decVector &position)
 Set position relative to the rig bone coordinate system. More...
 
const decQuaternionGetRotation () const
 Rotation relative to the rig bone coordinate system. More...
 
void SetRotation (const decQuaternion &rotation)
 Set rotation relative to the rig bone coordinate system. More...
 
const decVectorGetScale () const
 Scaling relative to the rig bone coordinate system. More...
 
void SetScale (const decVector &scale)
 Set scaling relative to the rig bone coordinate system. More...
 
const decMatrixGetMatrix () const
 Bone matrix relative to the component coordinate system. More...
 
void SetMatrix (const decMatrix &matrix)
 Bone matrix relative to the component coordinate system. More...
 
const decMatrixGetInverseMatrix ()
 Inverse bone matrix relative to the component coordinate system. More...
 
const decMatrixGetOriginalMatrix () const
 Original matrix relative to the rig bone parent. More...
 
const decMatrixGetInverseOriginalMatrix () const
 Inverse original matrix relative to the rig bone parent. More...
 
void SetOriginalMatrix (const decVector &position, const decVector &rotation)
 Set the original matrix and original inverse matrix. More...
 
int GetParentBone () const
 Parent bone index. More...
 
void SetParentBone (int parentBone)
 Parent bone index. More...
 

Detailed Description

Scene component bone.

Holds the state of a rig or component bone

Todo:
  • Remove weight matrix as the graphic module calculates it itself

Constructor & Destructor Documentation

◆ deComponentBone()

deComponentBone::deComponentBone ( )

Create new component bone.

◆ ~deComponentBone()

deComponentBone::~deComponentBone ( )

Clean up component bone.

Member Function Documentation

◆ GetInverseMatrix()

const decMatrix& deComponentBone::GetInverseMatrix ( )

Inverse bone matrix relative to the component coordinate system.

Calculates the inverse matrix from the matrix if dirty. Valid only after PrepareBones has been called on the parent component.

◆ GetInverseOriginalMatrix()

const decMatrix& deComponentBone::GetInverseOriginalMatrix ( ) const
inline

Inverse original matrix relative to the rig bone parent.

◆ GetMatrix()

const decMatrix& deComponentBone::GetMatrix ( ) const
inline

Bone matrix relative to the component coordinate system.

Valid only after PrepareBones has been called on the parent component.

◆ GetOriginalMatrix()

const decMatrix& deComponentBone::GetOriginalMatrix ( ) const
inline

Original matrix relative to the rig bone parent.

◆ GetParentBone()

int deComponentBone::GetParentBone ( ) const
inline

Parent bone index.

◆ GetPosition()

const decVector& deComponentBone::GetPosition ( ) const
inline

Position relative to the rig bone coordinate system.

◆ GetRotation()

const decQuaternion& deComponentBone::GetRotation ( ) const
inline

Rotation relative to the rig bone coordinate system.

◆ GetScale()

const decVector& deComponentBone::GetScale ( ) const
inline

Scaling relative to the rig bone coordinate system.

◆ SetMatrix()

void deComponentBone::SetMatrix ( const decMatrix matrix)

Bone matrix relative to the component coordinate system.

Marks the inverse matrix dirty causing the inverse matrix to be calculated the next time GetInverseMatrix is called.

◆ SetOriginalMatrix()

void deComponentBone::SetOriginalMatrix ( const decVector position,
const decVector rotation 
)

Set the original matrix and original inverse matrix.

◆ SetParentBone()

void deComponentBone::SetParentBone ( int  parentBone)

Parent bone index.

◆ SetPosition()

void deComponentBone::SetPosition ( const decVector position)

Set position relative to the rig bone coordinate system.

◆ SetRotation()

void deComponentBone::SetRotation ( const decQuaternion rotation)

Set rotation relative to the rig bone coordinate system.

◆ SetScale()

void deComponentBone::SetScale ( const decVector scale)

Set scaling relative to the rig bone coordinate system.


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