An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::FilterNode Class Reference

#include <FilterNode.h>

Inheritance diagram for ot::FilterNode:

Inheritance graph
Collaboration diagram for ot::FilterNode:

Collaboration graph
List of all members.

Public Member Functions

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

Protected Types

 ALL = 0

Protected Member Functions

 FilterNode (const std::vector< float > &weights_, const Type &type_)

Protected Attributes

Event localEvent
std::vector< float > weights
enum ot::FilterNode::Type type


class CommonNodeFactory

Detailed Description

Definition at line 95 of file FilterNode.h.

Member Enumeration Documentation

enum ot::FilterNode::Type [protected]


Definition at line 105 of file FilterNode.h.

Constructor & Destructor Documentation

ot::FilterNode::FilterNode ( const std::vector< float > &  weights_,
const Type type_ 
) [protected]

constructor method

Definition at line 56 of file FilterNode.cxx.

Member Function Documentation

int ot::FilterNode::isEventGenerator (  )  [virtual]

tests for EventGenerator interface being present.

Returns the result of the childs implementation of this method.

1 if child implements EventGenerator, 0 otherwise

Reimplemented from ot::Node.

Definition at line 61 of file FilterNode.cxx.

void ot::FilterNode::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.

Definition at line 68 of file FilterNode.cxx.

References ot::MathUtils::dot(), ot::Event::getButton(), ot::Node::getChild(), ot::Event::getConfidence(), ot::Node::getEvent(), ot::Event::getOrientation(), ot::Event::getPosition(), ot::Node::getSize(), localEvent, ot::MathUtils::normalizeQuaternion(), ORIENTATION, POSITION, ot::Event::time, type, ot::Node::updateObservers(), and weights.

Friends And Related Function Documentation

friend class CommonNodeFactory [friend]

Definition at line 128 of file FilterNode.h.

Member Data Documentation

local event variable

Definition at line 100 of file FilterNode.h.

Referenced by onEventGenerated().

the type of the node, equals the name of the configuration element

Reimplemented from ot::Node.

Referenced by onEventGenerated().

std::vector<float> ot::FilterNode::weights [protected]

array of weights

Definition at line 103 of file FilterNode.h.

Referenced by onEventGenerated().

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

copyright (c) 2006 Graz University of Technology