OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

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

Detailed Description

Definition at line 62 of file Transformation.h.


Constructor & Destructor Documentation

ot::Transformation::Transformation (  )  [protected]

constructor method

Definition at line 53 of file Transformation.cxx.


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.

Definition at line 61 of file Transformation.cxx.

References ot::Node::getChild(), ot::Node::getEvent(), ot::Node::isEventQueue(), ot::Event::null, and transformEvent().

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.

Definition at line 106 of file Transformation.cxx.

References ot::Node::getChild(), ot::Node::getEventAtTime(), ot::Node::isTimeDependend(), ot::Event::null, and transformEvent().

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.

Definition at line 76 of file Transformation.cxx.

References ot::Node::getChild(), ot::Node::getEventNearTime(), ot::Node::isEventQueue(), ot::Event::null, and transformEvent().

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.

Definition at line 91 of file Transformation.cxx.

References ot::Node::getChild(), ot::Node::getSize(), and ot::Node::isEventQueue().

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.

Definition at line 121 of file Transformation.cxx.

References ot::Node::getChild(), and ot::Node::isEventGenerator().

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.

Definition at line 133 of file Transformation.cxx.

References ot::Node::getChild(), and ot::Node::isEventQueue().

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.

Definition at line 145 of file Transformation.cxx.

References ot::Node::getChild(), and ot::Node::isTimeDependend().

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.

Definition at line 157 of file Transformation.cxx.

References transformEvent(), and ot::Node::updateObservers().

Referenced by ot::DynamicTransformation::onEventGenerated().

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, and ot::VirtualTransformation.

Referenced by getEvent(), getEventAtTime(), getEventNearTime(), and onEventGenerated().


Member Data Documentation


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

copyright (c) 2006 Graz University of Technology