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


Public Member Functions | |
| float ** | getMatrix () |
| void | setMatrix (float *data[4]) |
Protected Member Functions | |
| virtual Event * | transformEvent (Event *event) |
| MatrixTransformation () | |
| MatrixTransformation (float *matrix_[4]) | |
| MatrixTransformation (float *matrix_) | |
Protected Attributes | |
| float | matrix [3][4] |
Friends | |
| class | CommonNodeFactory |
Detailed Description
Definition at line 80 of file MatrixTransformation.h.
Constructor & Destructor Documentation
| ot::MatrixTransformation::MatrixTransformation | ( | ) | [protected] |
default constructor method sets values to implement identity transformation
Definition at line 53 of file MatrixTransformation.cxx.
References matrix.
| ot::MatrixTransformation::MatrixTransformation | ( | float * | matrix_[4] | ) | [protected] |
constructor method
- Parameters:
-
matrix_ contains 3x4 matrix for affine transformation
Definition at line 65 of file MatrixTransformation.cxx.
References matrix.
| ot::MatrixTransformation::MatrixTransformation | ( | float * | matrix_ | ) | [protected] |
constructor method
- Parameters:
-
matrix_ contains 3x4 matrix for affine transformation
Definition at line 75 of file MatrixTransformation.cxx.
References matrix.
Member Function Documentation
| float** ot::MatrixTransformation::getMatrix | ( | ) | [inline] |
returns the affine part of the Transformation
- Returns:
- float pointer to 3x4 floats
Definition at line 113 of file MatrixTransformation.h.
| void ot::MatrixTransformation::setMatrix | ( | float * | data[4] | ) | [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 3x4 float array containing the scale
Definition at line 125 of file MatrixTransformation.h.
transforms a event.
Overrides the Transformation implementation to implement a different one.
Implements ot::Transformation.
Definition at line 86 of file MatrixTransformation.cxx.
References ot::Event::copyAllButStdAttr(), ot::Event::getButton(), ot::Event::getConfidence(), ot::Event::getOrientation(), ot::Event::getPosition(), ot::Transformation::localEvent, matrix, and ot::Event::time.
Friends And Related Function Documentation
friend class CommonNodeFactory [friend] |
Definition at line 130 of file MatrixTransformation.h.
Member Data Documentation
float ot::MatrixTransformation::matrix[3][4] [protected] |
stores the affine part of the transformation
Definition at line 85 of file MatrixTransformation.h.
Referenced by MatrixTransformation(), and transformEvent().
The documentation for this class was generated from the following files: