OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::PositionFilterNode Class Reference
[Common Classes]

The PositionFilterNode implements a filter that allows only events the position value of which is within a given range. More...

#include <PositionFilterNode.h>

Inheritance diagram for ot::PositionFilterNode:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Protected Member Functions

 PositionFilterNode (const float min[3], const float max[3])

Protected Attributes

float min [3]
float max [3]

Friends

class CommonNodeFactory

Detailed Description

The PositionFilterNode implements a filter that allows only events the position value of which is within a given range.

It is a simple EventGenerator node.

Author:
Thomas Psik

Definition at line 80 of file PositionFilterNode.h.


Constructor & Destructor Documentation

ot::PositionFilterNode::PositionFilterNode ( const float  min[3],
const float  max[3] 
) [protected]

constructor method

Definition at line 56 of file PositionFilterNode.cxx.

References max, and min.


Member Function Documentation

int ot::PositionFilterNode::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 70 of file PositionFilterNode.cxx.

void ot::PositionFilterNode::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 77 of file PositionFilterNode.cxx.

References ot::Event::getPosition(), max, min, and ot::Node::updateObservers().


Friends And Related Function Documentation

friend class CommonNodeFactory [friend]

Definition at line 110 of file PositionFilterNode.h.


Member Data Documentation

float ot::PositionFilterNode::max[3] [protected]

maximum position x,y,z

Definition at line 89 of file PositionFilterNode.h.

Referenced by onEventGenerated(), and PositionFilterNode().

float ot::PositionFilterNode::min[3] [protected]

minimum position x,y,z

Definition at line 87 of file PositionFilterNode.h.

Referenced by onEventGenerated(), and PositionFilterNode().


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

copyright (c) 2006 Graz University of Technology