PoseKeyFrame Class Reference

A keyframe for a PoseAnimation. More...

#include <KeyFrame.hh>

Inherits KeyFrame.

Public Member Functions

 PoseKeyFrame (double _time)
 Constructor. More...
 
virtual ~PoseKeyFrame ()
 Destructor. More...
 
double GetTime () const
 Get the time of the keyframe. More...
 
void Rotation (const ignition::math::Quaterniond &_rot)
 Set the rotation for the keyframe. More...
 
ignition::math::Quaterniond Rotation () const
 Get the rotation of the keyframe. More...
 
void Translation (const ignition::math::Vector3d &_trans)
 Set the translation for the keyframe. More...
 
ignition::math::Vector3d Translation () const
 Get the translation of the keyframe. More...
 

Protected Attributes

ignition::math::Quaterniond rotate
 the rotation quaternion More...
 
double time
 time of key frame More...
 
ignition::math::Vector3d translate
 the translation vector More...
 

Detailed Description

A keyframe for a PoseAnimation.

Constructor & Destructor Documentation

§ PoseKeyFrame()

PoseKeyFrame ( double  _time)

Constructor.

Parameters
[in]_timeof the keyframe

§ ~PoseKeyFrame()

virtual ~PoseKeyFrame ( )
virtual

Destructor.

Member Function Documentation

§ GetTime()

double GetTime ( ) const
inherited

Get the time of the keyframe.

Returns
the time

§ Rotation() [1/2]

void Rotation ( const ignition::math::Quaterniond &  _rot)

Set the rotation for the keyframe.

Parameters
[in]_rotRotation amount

§ Rotation() [2/2]

ignition::math::Quaterniond Rotation ( ) const

Get the rotation of the keyframe.

Returns
The rotation amount

§ Translation() [1/2]

void Translation ( const ignition::math::Vector3d &  _trans)

Set the translation for the keyframe.

Parameters
[in]_transTranslation amount

§ Translation() [2/2]

ignition::math::Vector3d Translation ( ) const

Get the translation of the keyframe.

Returns
The translation amount

Member Data Documentation

§ rotate

ignition::math::Quaterniond rotate
protected

the rotation quaternion

§ time

double time
protectedinherited

time of key frame

§ translate

ignition::math::Vector3d translate
protected

the translation vector


The documentation for this class was generated from the following file: