NodeTransform Skeleton.hh common/common.hh More...
#include <Skeleton.hh>
| Public Types | |
| enum | TransformType { TRANSLATE, ROTATE, SCALE, MATRIX } | 
| Enumeration of the transform types.  More... | |
| Public Member Functions | |
| NodeTransform (TransformType _type=MATRIX) | |
| Constructor.  More... | |
| NodeTransform (const ignition::math::Matrix4d &_mat, const std::string &_sid="_default_", TransformType _type=MATRIX) | |
| Constructor.  More... | |
| ~NodeTransform () | |
| Destructor. It does nothing.  More... | |
| std::string | GetSID () | 
| Returns thr SID.  More... | |
| ignition::math::Matrix4d | GetTransform () const | 
| Returns the transformation matrix.  More... | |
| TransformType | GetType () | 
| Returns the transformation type.  More... | |
| ignition::math::Matrix4d | operator() () | 
| Matrix cast operator.  More... | |
| ignition::math::Matrix4d | operator* (NodeTransform _t) | 
| Node transform multiplication operator.  More... | |
| ignition::math::Matrix4d | operator* (const ignition::math::Matrix4d &_m) | 
| Matrix multiplication operator.  More... | |
| void | PrintSource () | 
| Prints the transform matrix to std::err stream.  More... | |
| void | RecalculateMatrix () | 
| Sets the transform matrix from the source according to the type.  More... | |
| void | Set (const ignition::math::Matrix4d &_mat) | 
| Assign a transformation.  More... | |
| void | SetComponent (unsigned int _idx, double _value) | 
| Set a transformation matrix component value.  More... | |
| void | SetSID (std::string _sid) | 
| Set the SID.  More... | |
| void | SetSourceValues (const ignition::math::Matrix4d &_mat) | 
| Set source data values param[in] _mat the values.  More... | |
| void | SetSourceValues (const ignition::math::Vector3d &_vec) | 
| Set source data values.  More... | |
| void | SetSourceValues (const ignition::math::Vector3d &_axis, const double _angle) | 
| Sets source matrix values from roation.  More... | |
| void | SetType (TransformType _type) | 
| Set transform type.  More... | |
| Protected Attributes | |
| std::string | sid | 
| the sid  More... | |
| std::vector< double > | source | 
| source data values (can be a matrix, a position or rotation)  More... | |
| ignition::math::Matrix4d | transform | 
| transform  More... | |
| TransformType | type | 
| transform type  More... | |
NodeTransform Skeleton.hh common/common.hh
A transformation node
| enum TransformType | 
| NodeTransform | ( | TransformType | _type = MATRIX | ) | 
Constructor.
| [in] | _type | the type of transform | 
| NodeTransform | ( | const ignition::math::Matrix4d & | _mat, | 
| const std::string & | _sid = "_default_", | ||
| TransformType | _type = MATRIX | ||
| ) | 
Constructor.
| [in] | _mat | the matrix | 
| [in] | _sid | identifier | 
| [in] | _type | the type of transform | 
| ~NodeTransform | ( | ) | 
Destructor. It does nothing.
| std::string GetSID | ( | ) | 
Returns thr SID.
| ignition::math::Matrix4d GetTransform | ( | ) | const | 
Returns the transformation matrix.
| TransformType GetType | ( | ) | 
Returns the transformation type.
| ignition::math::Matrix4d operator() | ( | ) | 
Matrix cast operator.
| ignition::math::Matrix4d operator* | ( | NodeTransform | _t | ) | 
Node transform multiplication operator.
| [in] | _t | a transform | 
| ignition::math::Matrix4d operator* | ( | const ignition::math::Matrix4d & | _m | ) | 
Matrix multiplication operator.
| [in] | _m | a matrix | 
| void PrintSource | ( | ) | 
Prints the transform matrix to std::err stream.
| void RecalculateMatrix | ( | ) | 
Sets the transform matrix from the source according to the type.
| void Set | ( | const ignition::math::Matrix4d & | _mat | ) | 
Assign a transformation.
| [in] | _mat | the transform | 
| void SetComponent | ( | unsigned int | _idx, | 
| double | _value | ||
| ) | 
Set a transformation matrix component value.
| [in] | _idx | the component index | 
| [in] | _value | the value | 
| void SetSID | ( | std::string | _sid | ) | 
Set the SID.
| [in] | _sid | the sid | 
| void SetSourceValues | ( | const ignition::math::Matrix4d & | _mat | ) | 
Set source data values param[in] _mat the values.
| void SetSourceValues | ( | const ignition::math::Vector3d & | _vec | ) | 
Set source data values.
| [in] | _vec | Vector to set source data values from. | 
| void SetSourceValues | ( | const ignition::math::Vector3d & | _axis, | 
| const double | _angle | ||
| ) | 
Sets source matrix values from roation.
| [in] | _axis | of rotation | 
| [in] | _angle | of rotation | 
| void SetType | ( | TransformType | _type | ) | 
Set transform type.
| [in] | _type | the type | 
| 
 | protected | 
the sid
| 
 | protected | 
source data values (can be a matrix, a position or rotation)
| 
 | protected | 
transform
| 
 | protected | 
transform type