OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::ThresholdFilterNode Class Reference

#include <ThresholdFilterNode.h>

Inheritance diagram for ot::ThresholdFilterNode:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual int isEventGenerator ()
virtual void onEventGenerated (Event &event, Node &generator)

Protected Member Functions

 ThresholdFilterNode (float posmin, float posmax, float rotmin, float rotmax)

Protected Attributes

Event lastEvent
float positionMin
float positionMax
float rotationMin
float rotationMax

Friends

class CommonNodeFactory

Detailed Description

Definition at line 89 of file ThresholdFilterNode.h.


Constructor & Destructor Documentation

ot::ThresholdFilterNode::ThresholdFilterNode ( float  posmin,
float  posmax,
float  rotmin,
float  rotmax 
) [protected]

constructor method

Definition at line 58 of file ThresholdFilterNode.cxx.


Member Function Documentation

int ot::ThresholdFilterNode::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 65 of file ThresholdFilterNode.cxx.

void ot::ThresholdFilterNode::onEventGenerated ( Event event,
Node generator 
) [virtual]

this method is called by the EventGenerator to update it's observers.

Reimplemented from ot::Node.

Definition at line 72 of file ThresholdFilterNode.cxx.

References ot::MathUtils::angle(), ot::Event::getOrientation(), ot::Event::getPosition(), lastEvent, positionMax, positionMin, rotationMax, rotationMin, and ot::Node::updateObservers().


Friends And Related Function Documentation

friend class CommonNodeFactory [friend]

Definition at line 119 of file ThresholdFilterNode.h.


Member Data Documentation

last saved event variable

Definition at line 94 of file ThresholdFilterNode.h.

Referenced by onEventGenerated().

Definition at line 96 of file ThresholdFilterNode.h.

Referenced by onEventGenerated().

min and max position values, must be in [0,inf)

Definition at line 96 of file ThresholdFilterNode.h.

Referenced by onEventGenerated().

Definition at line 98 of file ThresholdFilterNode.h.

Referenced by onEventGenerated().

min and max rotation values, must be in [0,pi]

Definition at line 98 of file ThresholdFilterNode.h.

Referenced by onEventGenerated().


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

copyright (c) 2006 Graz University of Technology