|
GPU-Accelerated Coverage
0.1.0
Compute coverage tours for known environment with articulated objects on GPU
|
Represents a bone of an animation skeleton. More...
#include <Bone.h>
Public Member Functions | |
| Bone (const aiBone *const bone, const size_t meshId, const size_t id) | |
| Constructor. More... | |
| virtual | ~Bone () |
| Destructor. | |
| void | toDot (FILE *dot) |
| Write Graphviz Dot node representing this bone to file for debugging. More... | |
| const size_t & | getId () const |
| const size_t & | getMeshId () const |
| const std::string & | getName () const |
| const glm::mat4 & | getOffsetMatrix () |
| void | setNode (Node *node) |
| Node * | getNode () const |
Protected Attributes | |
| const size_t | id |
| Unique ID of the bone, see getId(). | |
| const size_t | meshId |
| ID of the mesh that this bone is attached to, see getMeshId(). | |
| const std::string | name |
| Name of the bone for logging, see getName(). | |
| const glm::mat4 | offsetMatrix |
| Offset matrix, see getOffsetMatrix(). | |
| Node * | node |
| Scene graph node assigned to this bone, see getNode() and setNode(). | |
Represents a bone of an animation skeleton.
This class is our equivalent of Assimp's aiBone class.
| gpu_coverage::Bone::Bone | ( | const aiBone *const | bone, |
| const size_t | meshId, | ||
| const size_t | id | ||
| ) |
Constructor.
| [in] | bone | The Assimp aiBone for creating this bone. |
| [in] | meshId | The ID of the mesh that this bone is attached to. |
| [in] | id | The unique ID of this bone. |
|
inline |
Returns the unique ID of this bone.
|
inline |
Returns the ID of the mesh that this bone is attached to.
|
inline |
Returns the name of this bone for logging.
If available, the name included in the input file read by Assimp is used, otherwise a generic string is constructed.
|
inline |
Returns the scene graph node that this bone is attached to.
Initially the node is set to NULL, can be set with setNode(Node *node).
|
inline |
Returns the offset matrix.
The offset matrix transforms from mesh space to bone space in bind pose (see Assimp aiBone documentation).
|
inline |
Assigns this bone to a scene graph node.
| [in] | node | Scene graph node. |
| void gpu_coverage::Bone::toDot | ( | FILE * | dot | ) |
Write Graphviz Dot node representing this bone to file for debugging.
| [in] | dot | Output Dot file. |
1.8.11