ot::FilterNode Class Reference
#include <FilterNode.h>
Inheritance diagram for ot::FilterNode:


Public Member Functions | |
| virtual int | isEventGenerator () |
| virtual void | onEventGenerated (Event &event, Node &generator) |
Protected Types | |
| ALL = 0 | |
| POSITION | |
| ORIENTATION | |
| enum | Type { ALL = 0, POSITION, ORIENTATION } |
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 |
Friends | |
| class | CommonNodeFactory |
Detailed Description
Definition at line 95 of file FilterNode.h.
Member Enumeration Documentation
enum ot::FilterNode::Type [protected] |
Constructor & Destructor Documentation
| ot::FilterNode::FilterNode | ( | const std::vector< float > & | weights_, | |
| const Type & | type_ | |||
| ) | [protected] |
Member Function Documentation
| int ot::FilterNode::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 61 of file FilterNode.cxx.
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
Event ot::FilterNode::localEvent [protected] |
enum ot::FilterNode::Type ot::FilterNode::type [protected] |
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] |
The documentation for this class was generated from the following files: