TDME2  1.9.200
Joint.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 #include <tdme/tdme.h>
7 #include <tdme/math/fwd-tdme.h>
8 #include <tdme/math/Matrix4x4.h>
9 
11 
12 using std::string;
13 
14 /**
15  * Joint / Bone
16  * @author andreas.drewke
17  */
19 {
20 private:
21  string nodeId;
23 
24 public:
25  /**
26  * Public constructor
27  */
28  Joint();
29 
30  /**
31  * Public constructor
32  * @param nodeId node id
33  */
34  Joint(const string& nodeId);
35 
36  /**
37  * Associated node or bone id
38  * @return node id
39  */
40  inline const string& getNodeId() const {
41  return nodeId;
42  }
43 
44  /**
45  * Bind matrix
46  * @return matrix
47  */
48  inline const Matrix4x4& getBindMatrix() const {
49  return bindMatrix;
50  }
51 
52  /**
53  * Bind matrix
54  * @return matrix
55  */
56  inline void setBindMatrix(const Matrix4x4& bindMatrix) {
57  this->bindMatrix = bindMatrix;
58  }
59 
60 };
Joint / Bone.
Definition: Joint.h:19
void setBindMatrix(const Matrix4x4 &bindMatrix)
Bind matrix.
Definition: Joint.h:56
Matrix4x4 bindMatrix
Definition: Joint.h:22
const Matrix4x4 & getBindMatrix() const
Bind matrix.
Definition: Joint.h:48
const string & getNodeId() const
Associated node or bone id.
Definition: Joint.h:40
Joint()
Public constructor.
Definition: Joint.cpp:9
Matrix4x4 class representing matrix4x4 mathematical structure and operations for 3d space.
Definition: Matrix4x4.h:23