#include <skeleton_skeleton.h>
List of all members.
Detailed Description
template<typename types>
class OpenTissue::skeleton::Skeleton< types >
A Skeleton Class. A skeleton is a collection of bones. One bone is designated as the root bone, all other bones are connected such that they form a recursive tree structure with the root bone as the root.
This class provides an interface for building up the skeleton in a consistent manner. While during so bones are assigned unique numbers identifying their placement in the hierarchical tree structure. It is ensured that parents always have a bone number less than their children or any descendents.
The class also provides internal book-keeping which provides the means for accessing bones either by their names or by their bone number.
Member Typedef Documentation
template<typename types >
template<typename types >
template<typename types >
template<typename types >
template<typename types >
template<typename types >
template<typename types >
template<typename types >
template<typename types >
template<typename types >
template<typename types >
template<typename types >
template<typename types >
template<typename types >
Constructor & Destructor Documentation
template<typename types >
Member Function Documentation
template<typename types >
- Returns:
- An iterator to the position of the first bone in skeleton (this is actually always the root).
template<typename types >
template<typename types >
Clear all content in skeleton.
template<typename types >
Clear all relative transforms to the identity transformation and sets the bone weights to zero. This method is usefull to invoke prior to doing animation blending.
template<typename types >
This method sets all bone weights to zero.
template<typename types >
Compute Pose of Skeleton. This method computes the absolute bone transformation of each bone and updates the bone space transformation of each bone.
template<typename types >
Create new bone. This method should only be used when inserting the first bone into the skeleton. This bone will automatically become the root bone.
- Returns:
- A pointer to the newly added bone.
template<typename types >
Add new bone. This method should be used to add bones as children of already added bones in the skeleton.
- Parameters:
-
| parent | A pointer to the parent bone. Must already have been added to the skeleton. |
- Returns:
- A pointer to the newly added bone.
template<typename types >
template<typename types >
- Returns:
- An iterator to a position one past the last bone in the skeleton (this is one of perhaps several end-effctors).
template<typename types >
Find Bone.
- Parameters:
-
| number | The bone number of the sought bone. |
- Returns:
- A pointer to the bone with the specified number or null if it does not exist.
template<typename types >
Get Bone.
- Parameters:
-
| number | The bone number of the sought bone. |
- Returns:
- A reference to the bone with the specified number.
template<typename types >
Get Bone.
- Parameters:
-
| number | The bone number of the sought bone. |
- Returns:
- A reference to the bone with the specified number.
template<typename types >
Get Bone.
- Parameters:
-
| name | The name of the sought bone. |
- Returns:
- A reference to the bone with the specified name.
template<typename types >
Get Bone.
- Parameters:
-
| number | The bone number of the sought bone. |
- Returns:
- An iterator to the bone with the specified number.
template<typename types >
Register new Bone in Skeleton.
- Returns:
- A pointer to the newly inserted bone.
template<typename types >
Bone Renaming Method.
- Parameters:
-
| bone | a pointer to the bone that should be renamed. |
| name | The new name of the bone. |
- Returns:
- If the rename is succesfull then the return value is true otherwise it is false.
template<typename types >
Get Root Bone.
- Returns:
- A pointer to the root bone of the skeleton or null if none exist
template<typename types >
Get Root Bone.
- Returns:
- A pointer to the root bone of the skeleton or null if none exist
template<typename types >
Thie method sets the relative bone transforms to the bind pose and compute the absolute bone transformation of each bone. Also all bone weights are set to zero.
template<typename types >
Skeleton Size.
- Returns:
- The number of bones in the skeleton.
Member Data Documentation
template<typename types >
Lookup table to get bone number from bone name.
template<typename types >
Lookup table to get bone pointer from bone number.
template<typename types >
template<typename types >
The documentation for this class was generated from the following file:
- /home/hauberg/Dokumenter/Capture/humim-tracker-0.1/src/OpenTissue/OpenTissue/kinematics/skeleton/skeleton_skeleton.h