OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

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]
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.

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


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

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().


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

copyright (c) 2006 Graz University of Technology