OpenWalnut
1.5.0dev
|
The keyboard handler for the keyboard events of WMPointConnector. More...
#include <WKeyboardHandler.h>
Public Member Functions | |
WKeyboardHandler (WMPointConnector *connector) | |
Constructs one WKeyboardHandler. More... | |
bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa) |
The callback for the event listener. More... | |
Private Attributes | |
WMPointConnector * | m_connector |
The WMPointConnector this handler belongs to. More... | |
bool | m_isCtrl = false |
Whether ctrl is pressed or not. More... | |
bool | m_isShift = false |
Whether shift is pressed or not. More... | |
The keyboard handler for the keyboard events of WMPointConnector.
Definition at line 47 of file WKeyboardHandler.h.
|
explicit |
Constructs one WKeyboardHandler.
connector | The WMPointConnector this handler belongs to. |
Definition at line 43 of file WKeyboardHandler.cpp.
bool WKeyboardHandler::handle | ( | const osgGA::GUIEventAdapter & | ea, |
osgGA::GUIActionAdapter & | aa | ||
) |
The callback for the event listener.
ea | The Adapter of the event. |
aa | The Adapter of the action. |
Definition at line 48 of file WKeyboardHandler.cpp.
References WMPointConnector::acceptPrediction(), WMPointConnector::getFiberHandler(), WMPointConnector::getScaling(), m_connector, m_isCtrl, m_isShift, WMPointConnector::pushEventQueue(), WActionHandler::redo(), and WActionHandler::undo().
|
private |
The WMPointConnector this handler belongs to.
Definition at line 68 of file WKeyboardHandler.h.
Referenced by handle().
|
private |
Whether ctrl is pressed or not.
Definition at line 73 of file WKeyboardHandler.h.
Referenced by handle().
|
private |
Whether shift is pressed or not.
Definition at line 78 of file WKeyboardHandler.h.
Referenced by handle().