NodeTransform Skeleton.hh common/common.hh
More...
#include <Skeleton.hh>
NodeTransform Skeleton.hh common/common.hh
A transformation node
§ TransformType
Enumeration of the transform types.
Enumerator |
---|
TRANSLATE | |
ROTATE | |
SCALE | |
MATRIX | |
§ NodeTransform() [1/2]
Constructor.
- Parameters
-
[in] | _type | the type of transform |
§ NodeTransform() [2/2]
Constructor.
- Parameters
-
[in] | _mat | the matrix |
[in] | _sid | identifier |
[in] | _type | the type of transform |
§ ~NodeTransform()
Destructor. It does nothing.
§ GetSID()
Returns thr SID.
- Returns
- the SID
§ GetTransform()
ignition::math::Matrix4d GetTransform |
( |
| ) |
const |
Returns the transformation matrix.
- Returns
- The transform matrix
§ GetType()
Returns the transformation type.
- Returns
- the type
§ operator()()
ignition::math::Matrix4d operator() |
( |
| ) |
|
Matrix cast operator.
- Returns
- the transform
§ operator*() [1/2]
Node transform multiplication operator.
- Parameters
-
- Returns
- transform matrix multiplied by _t's transform
§ operator*() [2/2]
ignition::math::Matrix4d operator* |
( |
const ignition::math::Matrix4d & |
_m | ) |
|
Matrix multiplication operator.
- Parameters
-
- Returns
- transform matrix multiplied by _m
§ PrintSource()
Prints the transform matrix to std::err stream.
§ RecalculateMatrix()
void RecalculateMatrix |
( |
| ) |
|
Sets the transform matrix from the source according to the type.
§ Set()
void Set |
( |
const ignition::math::Matrix4d & |
_mat | ) |
|
Assign a transformation.
- Parameters
-
§ SetComponent()
void SetComponent |
( |
unsigned int |
_idx, |
|
|
double |
_value |
|
) |
| |
Set a transformation matrix component value.
- Parameters
-
[in] | _idx | the component index |
[in] | _value | the value |
§ SetSID()
void SetSID |
( |
std::string |
_sid | ) |
|
§ SetSourceValues() [1/3]
void SetSourceValues |
( |
const ignition::math::Matrix4d & |
_mat | ) |
|
Set source data values param[in] _mat the values.
§ SetSourceValues() [2/3]
void SetSourceValues |
( |
const ignition::math::Vector3d & |
_vec | ) |
|
Set source data values.
- Parameters
-
[in] | _vec | Vector to set source data values from. |
§ SetSourceValues() [3/3]
void SetSourceValues |
( |
const ignition::math::Vector3d & |
_axis, |
|
|
const double |
_angle |
|
) |
| |
Sets source matrix values from roation.
- Parameters
-
[in] | _axis | of rotation |
[in] | _angle | of rotation |
§ SetType()
Set transform type.
- Parameters
-
§ sid
§ source
std::vector<double> source |
|
protected |
source data values (can be a matrix, a position or rotation)
§ transform
ignition::math::Matrix4d transform |
|
protected |
§ type
The documentation for this class was generated from the following file: