Castor3D 0.12.0
Multiplatform 3D engine
Public Member Functions | Friends | List of all members
castor3d::Bone Class Reference

#include <Bone.hpp>

Inheritance diagram for castor3d::Bone:
Inheritance graph
[legend]
Collaboration diagram for castor3d::Bone:
Collaboration graph
[legend]

Public Member Functions

C3D_API Bone (Skeleton &skeleton, castor::Matrix4x4f const &offset)
 Constructor. More...
 
C3D_API ~Bone ()
 Destructor. More...
 
C3D_API castor::BoundingBox computeBoundingBox (Mesh const &mesh, uint32_t boneIndex) const
 Computes the bounding box and sphere for each bone, for given mesh. More...
 
const castor::Matrix4x4f & getOffsetMatrix () const
 
const castor::Matrix4x4f & getAbsoluteOffsetMatrix () const
 
const SkeletongetSkeleton () const
 
BoneSPtr getParent () const
 

Friends

class Skeleton
 
class BinaryWriter< Bone >
 
class BinaryParser< Bone >
 

Constructor & Destructor Documentation

◆ Bone()

C3D_API castor3d::Bone::Bone ( Skeleton skeleton,
castor::Matrix4x4f const &  offset 
)
explicit

Constructor.

Parameters
[in]skeletonThe parent skeleton.
[in]offsetThe transfromation matrix from mesh space to bone space.

◆ ~Bone()

C3D_API castor3d::Bone::~Bone ( )

Destructor.

Member Function Documentation

◆ computeBoundingBox()

C3D_API castor::BoundingBox castor3d::Bone::computeBoundingBox ( Mesh const &  mesh,
uint32_t  boneIndex 
) const

Computes the bounding box and sphere for each bone, for given mesh.

◆ getAbsoluteOffsetMatrix()

const castor::Matrix4x4f & castor3d::Bone::getAbsoluteOffsetMatrix ( ) const
inline
Returns
The absolute transfromation matrix from mesh space to bone space.

◆ getOffsetMatrix()

const castor::Matrix4x4f & castor3d::Bone::getOffsetMatrix ( ) const
inline
Returns
The transfromation matrix from mesh space to bone space.

◆ getParent()

BoneSPtr castor3d::Bone::getParent ( ) const
inline
Returns
The parent bone.

◆ getSkeleton()

const Skeleton & castor3d::Bone::getSkeleton ( ) const
inline
Returns
The parent skeleton.

Friends And Related Function Documentation

◆ BinaryParser< Bone >

friend class BinaryParser< Bone >
friend

◆ BinaryWriter< Bone >

friend class BinaryWriter< Bone >
friend

◆ Skeleton

friend class Skeleton
friend

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