ot::StaticTransformation Class Reference

#include <StaticTransformation.h>

Inheritance diagram for ot::StaticTransformation:

Inheritance graph
[legend]
Collaboration diagram for ot::StaticTransformation:

Collaboration graph
[legend]
List of all members.

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 EventtransformEvent (Event *event)
 StaticTransformation ()

Protected Attributes

float translation [3]
 stores the translation of the transformation
float scale [3]
 stores scale part of the transformation
float rotation [4]
 stores rotational part of the transformation
float confidence
 stores additional confidence value that is multiplied (used for DynamicTransforms)
bool usePos
 flag whether to compute position updates
bool useOrient
 flag whether to compute orientation updates

Friends

class CommonNodeFactory

Constructor & Destructor Documentation

ot::StaticTransformation::StaticTransformation  )  [protected]
 

default constructor method sets values to implement identity transformation

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


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

float* ot::StaticTransformation::getScale  )  [inline]
 

returns the scaling part of the Transformation

Returns:
float pointer to 3 floats

float* ot::StaticTransformation::getTranslation  )  [inline]
 

returns the translational part of this Transformation

Returns:
float pointer to 3 float

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.

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

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

Event * ot::StaticTransformation::transformEvent Event event  )  [protected, virtual]
 

transforms a event. Overrides the Transformation implementation to implement a different one.

Implements ot::Transformation.

Reimplemented in ot::VirtualTransformation.


Friends And Related Function Documentation

friend class CommonNodeFactory [friend]
 

Reimplemented in ot::DynamicTransformation, ot::VirtualTransformation, and ot::CustomTransformation.


Member Data Documentation

float ot::StaticTransformation::confidence [protected]
 

stores additional confidence value that is multiplied (used for DynamicTransforms)

float ot::StaticTransformation::rotation[4] [protected]
 

stores rotational part of the transformation

float ot::StaticTransformation::scale[3] [protected]
 

stores scale part of the transformation

float ot::StaticTransformation::translation[3] [protected]
 

stores the translation of the transformation

bool ot::StaticTransformation::useOrient [protected]
 

flag whether to compute orientation updates

bool ot::StaticTransformation::usePos [protected]
 

flag whether to compute position updates


The documentation for this class was generated from the following files:
Generated on Wed Feb 28 15:28:46 2007 for NaviTrack by  doxygen 1.4.6