OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::ConfidenceFilterNode Class Reference

#include <ConfidenceFilterNode.h>

Inheritance diagram for ot::ConfidenceFilterNode:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Protected Types

 HIGH = 0
 LOW
enum  types { HIGH = 0, LOW }

Protected Member Functions

 ConfidenceFilterNode (float treshhold_=0.5, types type_=HIGH)

Protected Attributes

float treshhold
enum ot::ConfidenceFilterNode::types type

Friends

class CommonNodeFactory

Detailed Description

Definition at line 82 of file ConfidenceFilterNode.h.


Member Enumeration Documentation

the type of filter

Enumerator:
HIGH 
LOW 

Definition at line 89 of file ConfidenceFilterNode.h.


Constructor & Destructor Documentation

ot::ConfidenceFilterNode::ConfidenceFilterNode ( float  treshhold_ = 0.5,
types  type_ = HIGH 
) [protected]

constructor method.

It sets initial values for the treshhold and type

Definition at line 56 of file ConfidenceFilterNode.cxx.

References treshhold.


Member Function Documentation

virtual int ot::ConfidenceFilterNode::isEventGenerator (  )  [inline, virtual]

tests for EventGenerator interface being present and returns 1, if present.

Returns:
always 1

Reimplemented from ot::Node.

Definition at line 98 of file ConfidenceFilterNode.h.

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

This method is called by any child node.

Parameters:
event the event value passed
generator the node generating the event

Reimplemented from ot::Node.

Definition at line 67 of file ConfidenceFilterNode.cxx.

References ot::Event::getConfidence(), HIGH, LOW, treshhold, type, and ot::Node::updateObservers().


Friends And Related Function Documentation

friend class CommonNodeFactory [friend]

Definition at line 110 of file ConfidenceFilterNode.h.


Member Data Documentation

treshhold value, in [0,1]

Definition at line 87 of file ConfidenceFilterNode.h.

Referenced by ConfidenceFilterNode(), and onEventGenerated().

the type of filter

Reimplemented from ot::Node.

Referenced by onEventGenerated().


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

copyright (c) 2006 Graz University of Technology