ot::Transformation Class Reference

#include <Transformation.h>

Inheritance diagram for ot::Transformation:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual EventgetEvent (unsigned int number=0)
virtual EventgetEventNearTime (double time)
virtual unsigned int getSize ()
virtual EventgetEventAtTime (double time)
virtual int isEventGenerator ()
virtual int isEventQueue ()
virtual int isTimeDependend ()
virtual void onEventGenerated (Event &event, Node &generator)

Protected Member Functions

virtual EventtransformEvent (Event *event)=0
 Transformation ()

Protected Attributes

Event localEvent
 local event variable

Constructor & Destructor Documentation

ot::Transformation::Transformation  )  [protected]
 

constructor method


Member Function Documentation

Event & ot::Transformation::getEvent unsigned int  number = 0  )  [virtual]
 

returns the event number n back in time starting with the newest for n = 0

Reimplemented from ot::Node.

Event & ot::Transformation::getEventAtTime double  time  )  [virtual]
 

the function evaluation method.

Parameters:
time the point in time at which function is evaluated
Returns:
reference to event value

Reimplemented from ot::Node.

Event & ot::Transformation::getEventNearTime double  time  )  [virtual]
 

returns the event closest to a given point in time.

Parameters:
time the point in time in milliseconds since 1.1.1970
Returns:
reference to the value of the event.

Reimplemented from ot::Node.

unsigned int ot::Transformation::getSize  )  [virtual]
 

returns the size of the queue. Uses the childs implementation, if possible.

Returns:
size of queue

Reimplemented from ot::Node.

int ot::Transformation::isEventGenerator  )  [virtual]
 

tests for EventGenerator interface being present. Returns the result of the childs implementation of this method.

Returns:
1 if child implements EventGenerator, 0 otherwise

Reimplemented from ot::Node.

int ot::Transformation::isEventQueue  )  [virtual]
 

tests for EventQueue interface being present. Returns the result of the childs implementation of this method.

Returns:
1 if child implements EventQueue, 0 otherwise

Reimplemented from ot::Node.

int ot::Transformation::isTimeDependend  )  [virtual]
 

tests for TimeDependend interface being present. Returns the result of the childs implementation of this method.

Returns:
1 if child implements TimeDependend, 0 otherwise

Reimplemented from ot::Node.

void ot::Transformation::onEventGenerated Event event,
Node generator
[virtual]
 

this method is called by the EventGenerator to update it's observers. This class computes a transformed event, stores it in its local variable and notifies its observers in turn, propagating the change.

Reimplemented from ot::Node.

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

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

transforms a event. Simplifies implementing other Transformations as it is only needed to override this method. It stores the transformed event in the localEvent member variable and returns a pointer to it.

Parameters:
event pointer to original event
Returns:
pointer to localEvent member

Implemented in ot::EllipsoidTransformNode, ot::GKTransformNode, ot::InvertTransformation, ot::MatrixTransformation, ot::StaticTransformation, ot::VirtualTransformation, and ot::SpeechTransformation.


Member Data Documentation

Event ot::Transformation::localEvent [protected]
 

local event variable


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