PoseKeyFrame Class Reference
A keyframe for a PoseAnimation. More...
#include <KeyFrame.hh>
Public Member Functions | |
PoseKeyFrame (const double _time) | |
Constructor. More... | |
virtual | ~PoseKeyFrame () |
Destructor. More... | |
const math::Quaterniond & | Rotation () const |
Get the rotation of the keyframe. More... | |
void | Rotation (const math::Quaterniond &_rot) |
Set the rotation for the keyframe. More... | |
const math::Vector3d & | Translation () const |
Get the translation of the keyframe. More... | |
void | Translation (const math::Vector3d &_trans) |
Set the translation for the keyframe. More... | |
Public Member Functions inherited from KeyFrame | |
KeyFrame (const double _time) | |
Constructor. More... | |
virtual | ~KeyFrame () |
Destructor. More... | |
double | Time () const |
Get the time of the keyframe. More... | |
Protected Attributes | |
math::Quaterniond | rotate |
the rotation quaternion More... | |
math::Vector3d | translate |
the translation vector More... | |
Protected Attributes inherited from KeyFrame | |
double | time |
time of key frame More... | |
Detailed Description
A keyframe for a PoseAnimation.
Constructor & Destructor Documentation
◆ PoseKeyFrame()
|
explicit |
Constructor.
- Parameters
-
[in] _time of the keyframe
◆ ~PoseKeyFrame()
|
virtual |
Destructor.
Member Function Documentation
◆ Rotation() [1/2]
const math::Quaterniond& Rotation | ( | ) | const |
Get the rotation of the keyframe.
- Returns
- The rotation amount
◆ Rotation() [2/2]
void Rotation | ( | const math::Quaterniond & | _rot | ) |
Set the rotation for the keyframe.
- Parameters
-
[in] _rot Rotation amount
◆ Translation() [1/2]
const math::Vector3d& Translation | ( | ) | const |
Get the translation of the keyframe.
- Returns
- The translation amount
◆ Translation() [2/2]
void Translation | ( | const math::Vector3d & | _trans | ) |
Set the translation for the keyframe.
- Parameters
-
[in] _trans Translation amount
Member Data Documentation
◆ rotate
|
protected |
the rotation quaternion
◆ translate
|
protected |
the translation vector
The documentation for this class was generated from the following file: