CSEngine
Loading...
Searching...
No Matches
CSE::Joint Class Reference

Public Member Functions

 Joint (int m_index, std::string m_nameID, mat4 m_bindLocalTransform)
 
void addChild (Joint *child)
 
const std::string & GetName () const
 
int GetIndex () const
 
const mat4 GetBindLocalTransform () const
 
const std::vector< Joint * > & GetChildren () const
 

Detailed Description

Definition at line 15 of file Joint.h.

Constructor & Destructor Documentation

◆ Joint()

CSE::Joint::Joint ( int  m_index,
std::string  m_nameID,
mat4  m_bindLocalTransform 
)
inline

Definition at line 17 of file Joint.h.

18 : m_index(m_index), m_nameID(m_nameID), m_bindLocalTransform(m_bindLocalTransform) {
19
20 }

◆ ~Joint()

CSE::Joint::~Joint ( )
inline

Definition at line 22 of file Joint.h.

22 {
23 for (auto child : m_children) {
24 SAFE_DELETE(child);
25 }
26
27 m_children.clear();
28 }

Member Function Documentation

◆ addChild()

void CSE::Joint::addChild ( Joint child)
inline

Definition at line 30 of file Joint.h.

30 {
31 if (child == nullptr) return;
32 m_children.push_back(child);
33 }

◆ GetBindLocalTransform()

const mat4 CSE::Joint::GetBindLocalTransform ( ) const
inline

Definition at line 43 of file Joint.h.

43 {
44 return m_bindLocalTransform;
45 }

◆ GetChildren()

const std::vector< Joint * > & CSE::Joint::GetChildren ( ) const
inline

Definition at line 47 of file Joint.h.

47 {
48 return m_children;
49 }

◆ GetIndex()

int CSE::Joint::GetIndex ( ) const
inline

Definition at line 39 of file Joint.h.

39 {
40 return m_index;
41 }

◆ GetName()

const std::string & CSE::Joint::GetName ( ) const
inline

Definition at line 35 of file Joint.h.

35 {
36 return m_nameID;
37 }

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