#include <skeleton_default_bone_traits.h>
List of all members.
Detailed Description
template<typename math_types_>
class OpenTissue::skeleton::DefaultBoneTraits< math_types_ >
Default Bone Traits. A bone transformation can be representated in many different ways. For instance using homegeneous matrices. In our default implementation we have choosen a compound type consisting of a vector and a quaternion. This type is called a coordsys_type.
The bone traits class offers functionality to work with differnet representations of the bone transformations.
Member Typedef Documentation
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
Member Function Documentation
template<typename math_types_>
Compute aboslute pose transformation.
- Parameters:
-
| parent | The absolute transformation of the parent bone. |
| relative | The relative transformation of the bone. |
- Returns:
- The absolute transformation of the bone.
template<typename math_types_>
Compute Bone Space Transformation.
- Parameters:
-
| absolute | The absolute transformation of the bone. |
| bone_space | The bone space location of the bone. |
- Returns:
- The bone space transformation.
template<typename math_types_>
Convert. The convert function should be able to convert back and forth between a transform_type and a coordsys_type. In our case where our transform_type is simply a coordsys_type we can settle with a single and very simple implementation of the ``convert'' method. In a general setting one would probably have to make two overloaded versions of the convert function.
- Parameters:
-
| T | A value represented in the input type. |
- Returns:
- The value in the output type.
template<typename math_types_>
Retrive Identity Transformation.
- Returns:
- Upon return the identity transformation is returned.
template<typename math_types_>
Transform a point by a specified transformation.
- Parameters:
-
| T | The coordinate transformation that should be used. |
| x | The point that should be transformed |
- Returns:
- The transformed point.
template<typename math_types_>
Transform a vector by a specified transformation.
- Parameters:
-
| T | The coordinate transformation that should be used. |
| v | The vector that should be transformed |
- Returns:
- The transformed vector.
The documentation for this class was generated from the following file: