A skeleton.
More...
#include <common/common.hh>
|
| void | BuildNodeMap () |
| | Initializes the hande numbers for each node in the map using breadth first traversal. More...
|
| |
Add an animation.
The skeleton does not take ownership of the animation
- Parameters
-
| [in] | _anim | the animation to add |
| void AddVertNodeWeight |
( |
unsigned int |
_vertex, |
|
|
std::string |
_node, |
|
|
double |
_weight |
|
) |
| |
Add a new weight to a node (bone)
- Parameters
-
| [in] | _vertex | index of the vertex |
| [in] | _node | name of the bone |
| [in] | _weight | the new weight (range 0 to 1) |
| ignition::math::Matrix4d BindShapeTransform |
( |
| ) |
|
Return bind pose skeletal transform.
- Returns
- a matrix
Initializes the hande numbers for each node in the map using breadth first traversal.
Find animation.
- Parameters
-
| [in] | _i | the animation index |
- Returns
- the animation, or nullptr if _i is out of bounds
Find or create node with handle.
- Parameters
-
- Returns
- the node. A new node is created if it didn't exist
Find node by index.
- Parameters
-
- Returns
- the node, or nullptr if not found
Find a node.
- Parameters
-
| [in] | _name | the name of the node to look for |
- Returns
- the node, or nullptr if not found
Get a copy or the node dictionary.
| unsigned int GetNumAnimations |
( |
| ) |
|
Returns the number of animations.
- Returns
- the count
| unsigned int GetNumJoints |
( |
| ) |
|
Returns the number of joints.
- Returns
- the count
| unsigned int GetNumNodes |
( |
| ) |
|
Returns the node count.
- Returns
- the count
| unsigned int GetNumVertNodeWeights |
( |
unsigned int |
_vertex | ) |
|
Returns the number of bone weights for a vertex.
- Parameters
-
| [in] | _vertex | the index of the vertex |
- Returns
- the count
Return the root.
- Returns
- the root
| std::pair<std::string, double> GetVertNodeWeight |
( |
unsigned int |
_v, |
|
|
unsigned int |
_i |
|
) |
| |
Weight of a bone for a vertex.
- Parameters
-
| [in] | _v | the index of the vertex |
| [in] | _i | the index of the weight for that vertex |
- Returns
- a pair containing the name of the node and the weight
Outputs the transforms to std::err stream.
| void Scale |
( |
double |
_scale | ) |
|
Scale all nodes, transforms and animation data.
- Parameters
-
| void SetBindShapeTransform |
( |
const ignition::math::Matrix4d & |
_trans | ) |
|
Set the bind pose skeletal transform.
- Parameters
-
| void SetNumVertAttached |
( |
unsigned int |
_vertices | ) |
|
Resizes the raw node weight array.
- Parameters
-
| [in] | _vertices | the new size |
Change the root node.
- Parameters
-
| ignition::math::Matrix4d bindShapeTransform |
|
protected |
the bind pose skeletal transform
The dictionary of nodes, indexed by name.
The documentation for this class was generated from the following file: