ot::StaticTransformation Class Reference
#include <StaticTransformation.h>
Inheritance diagram for ot::StaticTransformation:


Public Member Functions | |
| StaticTransformation (float translation_[3], float scale_[3], float rotation_[4], bool usePos_, bool useOrient_) | |
| float * | getRotation () |
| float * | getScale () |
| float * | getTranslation () |
| void | setRotation (float *data) |
| void | setScale (float *data) |
| void | setTranslation (float *data) |
Protected Member Functions | |
| virtual Event * | transformEvent (Event *event) |
| StaticTransformation () | |
Protected Attributes | |
| float | translation [3] |
| float | scale [3] |
| float | rotation [4] |
| float | confidence |
| bool | usePos |
| bool | useOrient |
Friends | |
| class | CommonNodeFactory |
Detailed Description
Definition at line 91 of file StaticTransformation.h.
Constructor & Destructor Documentation
| ot::StaticTransformation::StaticTransformation | ( | ) | [protected] |
default constructor method sets values to implement identity transformation
Definition at line 53 of file StaticTransformation.cxx.
References confidence, rotation, scale, translation, useOrient, and usePos.
| ot::StaticTransformation::StaticTransformation | ( | float | translation_[3], | |
| float | scale_[3], | |||
| float | rotation_[4], | |||
| bool | usePos_, | |||
| bool | useOrient_ | |||
| ) |
constructor method
- Parameters:
-
translation_ sets translation scale_ sets scale rotation_ sets rotation
Definition at line 72 of file StaticTransformation.cxx.
References confidence, and rotation.
Member Function Documentation
| float* ot::StaticTransformation::getRotation | ( | ) | [inline] |
returns the rotational part of the Transformation as a Quaternion.
- Returns:
- float pointer to 4 floats containing quaternion
Definition at line 130 of file StaticTransformation.h.
| float* ot::StaticTransformation::getScale | ( | ) | [inline] |
returns the scaling part of the Transformation
- Returns:
- float pointer to 3 floats
Definition at line 138 of file StaticTransformation.h.
| float* ot::StaticTransformation::getTranslation | ( | ) | [inline] |
returns the translational part of this Transformation
- Returns:
- float pointer to 3 float
Definition at line 146 of file StaticTransformation.h.
| void ot::StaticTransformation::setRotation | ( | float * | data | ) | [inline] |
sets the rotation of the transformation.
It copies the passed float array into an internal structure.
- Parameters:
-
data a 4 float array containing the rotation in quaternion format.
Definition at line 156 of file StaticTransformation.h.
| void ot::StaticTransformation::setScale | ( | float * | data | ) | [inline] |
sets the scale of the transformation.
It is only executed, if the transformation is of type to change the position of any events. It copies the passed float array into an internal structure.
- Parameters:
-
data a 3 float array containing the scale
Definition at line 169 of file StaticTransformation.h.
| void ot::StaticTransformation::setTranslation | ( | float * | data | ) | [inline] |
sets the translation of the transformation.
It is only executed, if the transformation is of type to change the position of any events. It copies the passed float array into an internal structure.
- Parameters:
-
data a 3 float array containing the translation
Definition at line 184 of file StaticTransformation.h.
transforms a event.
Overrides the Transformation implementation to implement a different one.
Implements ot::Transformation.
Reimplemented in ot::VirtualTransformation.
Definition at line 89 of file StaticTransformation.cxx.
References confidence, ot::copyA2V(), ot::Event::copyAllButStdAttr(), ot::Event::getButton(), ot::Event::getConfidence(), ot::Event::getOrientation(), ot::Event::getPosition(), ot::Transformation::localEvent, ot::MathUtils::multiplyQuaternion(), ot::MathUtils::rotateVector(), rotation, scale, ot::Event::timeStamp(), translation, useOrient, and usePos.
Friends And Related Function Documentation
friend class CommonNodeFactory [friend] |
Reimplemented in ot::DynamicTransformation, and ot::VirtualTransformation.
Definition at line 192 of file StaticTransformation.h.
Member Data Documentation
float ot::StaticTransformation::confidence [protected] |
stores additional confidence value that is multiplied (used for DynamicTransforms)
Definition at line 102 of file StaticTransformation.h.
Referenced by ot::DynamicTransformation::onEventGenerated(), StaticTransformation(), and transformEvent().
float ot::StaticTransformation::rotation[4] [protected] |
stores rotational part of the transformation
Definition at line 100 of file StaticTransformation.h.
Referenced by ot::DynamicTransformation::onEventGenerated(), StaticTransformation(), ot::VirtualTransformation::transformEvent(), and transformEvent().
float ot::StaticTransformation::scale[3] [protected] |
stores scale part of the transformation
Definition at line 98 of file StaticTransformation.h.
Referenced by StaticTransformation(), and transformEvent().
float ot::StaticTransformation::translation[3] [protected] |
stores the translation of the transformation
Definition at line 96 of file StaticTransformation.h.
Referenced by ot::DynamicTransformation::onEventGenerated(), StaticTransformation(), ot::VirtualTransformation::transformEvent(), and transformEvent().
bool ot::StaticTransformation::useOrient [protected] |
flag whether to compute orientation updates
Definition at line 106 of file StaticTransformation.h.
Referenced by ot::DynamicTransformation::DynamicTransformation(), StaticTransformation(), ot::VirtualTransformation::transformEvent(), and transformEvent().
bool ot::StaticTransformation::usePos [protected] |
flag whether to compute position updates
Definition at line 104 of file StaticTransformation.h.
Referenced by ot::DynamicTransformation::DynamicTransformation(), StaticTransformation(), ot::VirtualTransformation::transformEvent(), and transformEvent().
The documentation for this class was generated from the following files: