A skeleton.
More...
#include <common/common.hh>
|
void | BuildNodeMap () |
| Initializes the hande numbers for each node in the map using breadth first traversal.
|
|
◆ Skeleton() [1/2]
◆ Skeleton() [2/2]
◆ ~Skeleton()
◆ AddAnimation()
Add an animation.
The skeleton does not take ownership of the animation
- Parameters
-
[in] | _anim | the animation to add |
◆ AddVertNodeWeight()
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) |
◆ BindShapeTransform()
ignition::math::Matrix4d BindShapeTransform |
( |
| ) |
|
Return bind pose skeletal transform.
- Returns
- a matrix
◆ BuildNodeMap()
Initializes the hande numbers for each node in the map using breadth first traversal.
◆ GetAnimation()
Find animation.
- Parameters
-
[in] | _i | the animation index |
- Returns
- the animation, or nullptr if _i is out of bounds
◆ GetNodeByHandle()
Find or create node with handle.
- Parameters
-
- Returns
- the node. A new node is created if it didn't exist
◆ GetNodeById()
Find node by index.
- Parameters
-
- Returns
- the node, or nullptr if not found
◆ GetNodeByName()
Find a node.
- Parameters
-
[in] | _name | the name of the node to look for |
- Returns
- the node, or nullptr if not found
◆ GetNodes()
Get a copy or the node dictionary.
◆ GetNumAnimations()
unsigned int GetNumAnimations |
( |
| ) |
|
Returns the number of animations.
- Returns
- the count
◆ GetNumJoints()
unsigned int GetNumJoints |
( |
| ) |
|
Returns the number of joints.
- Returns
- the count
◆ GetNumNodes()
unsigned int GetNumNodes |
( |
| ) |
|
Returns the node count.
- Returns
- the count
◆ GetNumVertNodeWeights()
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
◆ GetRootNode() [1/2]
Return the root.
- Returns
- the root
◆ GetRootNode() [2/2]
Return the root.
- Returns
- the root
◆ GetVertNodeWeight()
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
◆ PrintTransforms()
Outputs the transforms to std::err stream.
◆ Scale()
void Scale |
( |
double | _scale | ) |
|
Scale all nodes, transforms and animation data.
- Parameters
-
◆ SetBindShapeTransform()
void SetBindShapeTransform |
( |
const ignition::math::Matrix4d & | _trans | ) |
|
Set the bind pose skeletal transform.
- Parameters
-
◆ SetNumVertAttached()
void SetNumVertAttached |
( |
unsigned int | _vertices | ) |
|
Resizes the raw node weight array, this also clears all the node weights assigned.
- Parameters
-
[in] | _vertices | the new size |
◆ SetRootNode()
Change the root node.
- Parameters
-
◆ anims
◆ bindShapeTransform
ignition::math::Matrix4d bindShapeTransform |
|
protected |
Initial value:=
ignition::math::Matrix4d::Identity
the bind pose skeletal transform
◆ nodes
The dictionary of nodes, indexed by name.
◆ rawNW
◆ root
The documentation for this class was generated from the following file: