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

#include <BoneNode.hpp>

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

Public Member Functions

C3D_API BoneNode (castor::String name, Skeleton &skeleton, castor::Matrix4x4f inverseTransform, uint32_t id)
 Constructor.
 
C3D_API castor::BoundingBox computeBoundingBox (Mesh const &mesh, uint32_t boneIndex) const
 Computes the bounding box and sphere for the bone, for given mesh.
 
uint32_t getId () const noexcept
 
castor::Matrix4x4f const & getInverseTransform () const noexcept
 
void setInverseTransform (castor::Matrix4x4f value) noexcept
 
- Public Member Functions inherited from castor3d::SkeletonNode
C3D_API SkeletonNode (castor::String name, Skeleton &skeleton)
 Constructor.
 
virtual C3D_API ~SkeletonNode () noexcept=default
 Destructor.
 
const SkeletongetSkeleton () const noexcept
 
SkeletonNodegetParent () const noexcept
 
SkeletonNodeType getType () const noexcept
 
NodeTransform const & getTransform () const noexcept
 
void setTransform (NodeTransform tranform) noexcept
 
- Public Member Functions inherited from castor::NamedBaseT< T >
 NamedBaseT (T name) noexcept
 Constructor.
 
T const & getName () const noexcept
 Retrieves the name.
 
void rename (T name) noexcept
 

Friends

class Skeleton
 
class BinaryWriter< BoneNode >
 
class BinaryParser< BoneNode >
 
class BinaryParser< Skeleton >
 

Additional Inherited Members

- Protected Member Functions inherited from castor3d::SkeletonNode
C3D_API SkeletonNode (SkeletonNodeType type, castor::String name, Skeleton &skeleton)
 Constructor.
 
- Protected Attributes inherited from castor::NamedBaseT< T >
m_name
 

Constructor & Destructor Documentation

◆ BoneNode()

C3D_API castor3d::BoneNode::BoneNode ( castor::String name,
Skeleton & skeleton,
castor::Matrix4x4f inverseTransform,
uint32_t id )

Constructor.

Parameters
[in]nameThe bone name.
[in]skeletonThe parent skeleton.
[in]inverseTransformThe transformation matrix from mesh space to bone space.
[in]idThe bone ID.

Member Function Documentation

◆ computeBoundingBox()

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

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

◆ getId()

uint32_t castor3d::BoneNode::getId ( ) const
inlinenoexcept

◆ getInverseTransform()

castor::Matrix4x4f const & castor3d::BoneNode::getInverseTransform ( ) const
inlinenoexcept

◆ setInverseTransform()

void castor3d::BoneNode::setInverseTransform ( castor::Matrix4x4f value)
inlinenoexcept

Friends And Related Symbol Documentation

◆ BinaryParser< BoneNode >

friend class BinaryParser< BoneNode >
friend

◆ BinaryParser< Skeleton >

friend class BinaryParser< Skeleton >
friend

◆ BinaryWriter< BoneNode >

friend class BinaryWriter< BoneNode >
friend

◆ Skeleton

friend class Skeleton
friend

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