ot::QtMouseWheelSink Class Reference
[OTQt Classes]
Destination sink of the MWD.
More...
#include <QtMouseWheelSink.h>
Inheritance diagram for ot::QtMouseWheelSink:


Public Member Functions | |
| QtMouseWheelSink (StringTable &xml_attrib_table) | |
| ~QtMouseWheelSink () | |
| virtual void | onEventGenerated (Event &event, Node &generator) |
| bool | wheelForwardMove () const |
| bool | wheelBackwardMove () const |
Detailed Description
Destination sink of the MWD.Provides wheel state values either enabled or disabled for wheel forward and backward rotation.
The MWS uses he button member of the OpenTracker State event class and maps slots to wheel events as follows. A wheel move is indicated by a binary slot value of 1 (true/enabled).
Slot Wheel Event 0 Wheel Forward Move 1 Wheel Backward Move 2-7 not used
Provides methods indicating wheel forward (see wheelForwardMove()) and wheel backward (see wheelBackwardMove()) moves.
Definition at line 102 of file QtMouseWheelSink.h.
Constructor & Destructor Documentation
| ot::QtMouseWheelSink::QtMouseWheelSink | ( | StringTable & | xml_attrib_table | ) | [inline] |
Calls base class constructor.
- See also:
- QtMouseEventSinkBase(StringTable&)
Definition at line 108 of file QtMouseWheelSink.h.
| ot::QtMouseWheelSink::~QtMouseWheelSink | ( | ) | [inline] |
Definition at line 110 of file QtMouseWheelSink.h.
Member Function Documentation
OpenTracker tracking event push pattern callback method.
Basically stores a copy of the incoming event as new current event in the internal event queue and forwards the original event to parent nodes.
Applies a series of elimination checks on the incoming event. Ignores the event if any of these checks fail. Otherwise acquires the event, thus the incoming event becomes the new current event and the old current event becomes the new previous event. Enables the EVENT_PENDING_SIGNAL flag to indicate an acquisition.
Applied checks in detail: Ignores the incoming tracking event if ..
- the
EVENT_LOCKflag is enabled (currently only implemented in MBS!).
- it equals the current event (only modified events pass). Different relevant tracking data portions (position, orientation, button state) are compared, depending on the actual sink.
- position threshold check fails (optional, depending on actual sink,
POS_THRESH_FILTERflag enabled).
- orientation threshold check fails (optional, depending on actual sink,
ORIENT_THRESH_FILTERflag enabled).
- either
CONSUME_EVENTSorEVENT_CONSUME_SIGNALare disabled. If both are true the event is said to be locally consumed and thus NOT forwarded.
- Parameters:
-
event tracking event generator event generating child node
Implements ot::QtMouseEventSinkBase.
Definition at line 54 of file QtMouseWheelSink.cxx.
References ot::QtMouseEventSinkBase::acquireEvent(), ot::QtMouseEventSinkBase::curr_event_, ot::QtMouseEventSinkBase::forwardEvent(), ot::Event::getButton(), and OTQT_DEBUG().
| bool ot::QtMouseWheelSink::wheelBackwardMove | ( | ) | const |
Returns true if a backward move state bit transition disabled -> enabled is discovered investigating the current and previous wheel events.
- Returns:
- true if wheel recently moved backward
Definition at line 76 of file QtMouseWheelSink.cxx.
References ot::QtMouseEventSinkBase::curr_event_, ot::Event::getButton(), and ot::QtMouseEventSinkBase::prev_event_.
Referenced by ot::QtMouseEventModule::pullEvent().
| bool ot::QtMouseWheelSink::wheelForwardMove | ( | ) | const |
Returns true if a forward move state bit transition disabled -> enabled is discovered investigating the current and previous wheel events.
- Returns:
- true if wheel recently moved forward
Definition at line 68 of file QtMouseWheelSink.cxx.
References ot::QtMouseEventSinkBase::curr_event_, ot::Event::getButton(), and ot::QtMouseEventSinkBase::prev_event_.
Referenced by ot::QtMouseEventModule::pullEvent().
The documentation for this class was generated from the following files: