![]() |
OpenWalnut
1.5.0dev
|
Handles the GUIEvents in context of the WOnscreenSelection. More...
#include <WOnscreenSelectionHandler.h>
Inheritance diagram for WOnscreenSelectionHandler:
Collaboration diagram for WOnscreenSelectionHandler:Public Member Functions | |
| WOnscreenSelectionHandler (WOnscreenSelection *manager) | |
| Construct a new WDrawHandler object. More... | |
| bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa) |
| Handles the incoming events. More... | |
Private Attributes | |
| WOnscreenSelection * | m_manager |
| The WOnscreenSelection this belongs to. More... | |
| bool | m_mousePressed |
| Whether the mouse is pressed or not. More... | |
| bool | m_shiftPressed |
| Whether shift is pressed or not. More... | |
Handles the GUIEvents in context of the WOnscreenSelection.
Definition at line 42 of file WOnscreenSelectionHandler.h.
|
explicit |
Construct a new WDrawHandler object.
| manager | The WOnscreenSelection this belongs to. |
Definition at line 30 of file WOnscreenSelectionHandler.cpp.
| bool WOnscreenSelectionHandler::handle | ( | const osgGA::GUIEventAdapter & | ea, |
| osgGA::GUIActionAdapter & | aa | ||
| ) |
Handles the incoming events.
| ea | The EventAdapter of the event. |
| aa | The ActionAdapter of the event. |
Definition at line 37 of file WOnscreenSelectionHandler.cpp.
References WOnscreenSelection::clear(), WOnscreenSelection::end(), m_manager, m_mousePressed, m_shiftPressed, WOnscreenSelection::move(), WOnscreenSelection::setClickType(), and WOnscreenSelection::start().
Here is the call graph for this function:
|
private |
The WOnscreenSelection this belongs to.
Definition at line 63 of file WOnscreenSelectionHandler.h.
Referenced by handle().
|
private |
Whether the mouse is pressed or not.
Definition at line 65 of file WOnscreenSelectionHandler.h.
Referenced by handle().
|
private |
Whether shift is pressed or not.
Definition at line 66 of file WOnscreenSelectionHandler.h.
Referenced by handle().