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


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] |
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.
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
Event ot::ThresholdFilterNode::lastEvent [protected] |
last saved event variable
Definition at line 94 of file ThresholdFilterNode.h.
Referenced by onEventGenerated().
float ot::ThresholdFilterNode::positionMax [protected] |
float ot::ThresholdFilterNode::positionMin [protected] |
min and max position values, must be in [0,inf)
Definition at line 96 of file ThresholdFilterNode.h.
Referenced by onEventGenerated().
float ot::ThresholdFilterNode::rotationMax [protected] |
float ot::ThresholdFilterNode::rotationMin [protected] |
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: