31 #ifndef INCLUDE_ARTICULATION_BONE_H_ 32 #define INCLUDE_ARTICULATION_BONE_H_ 34 #include <assimp/scene.h> 35 #include <glm/detail/type_mat4x4.hpp> 55 Bone(
const aiBone *
const bone,
const size_t meshId,
const size_t id);
66 void toDot(FILE *dot);
72 inline const size_t&
getId()
const {
91 inline const std::string&
getName()
const {
const size_t id
Unique ID of the bone, see getId().
Definition: Bone.h:125
const glm::mat4 offsetMatrix
Offset matrix, see getOffsetMatrix().
Definition: Bone.h:128
Node * node
Scene graph node assigned to this bone, see getNode() and setNode().
Definition: Bone.h:129
Bone(const aiBone *const bone, const size_t meshId, const size_t id)
Constructor.
Scene graph node, corresponding to Assimp's aiNode.
Definition: Node.h:52
virtual ~Bone()
Destructor.
const size_t & getId() const
Definition: Bone.h:72
const size_t & getMeshId() const
Definition: Bone.h:80
const std::string & getName() const
Definition: Bone.h:91
const size_t meshId
ID of the mesh that this bone is attached to, see getMeshId().
Definition: Bone.h:126
Definition: AbstractCamera.h:41
void toDot(FILE *dot)
Write Graphviz Dot node representing this bone to file for debugging.
void setNode(Node *node)
Definition: Bone.h:110
Node * getNode() const
Definition: Bone.h:120
Represents a bone of an animation skeleton.
Definition: Bone.h:47
const glm::mat4 & getOffsetMatrix()
Definition: Bone.h:102
const std::string name
Name of the bone for logging, see getName().
Definition: Bone.h:127