OpenWalnut  1.5.0dev
Public Member Functions | Private Attributes | List of all members
WKeyboardHandler Class Reference

The keyboard handler for the keyboard events of WMPointConnector. More...

#include <WKeyboardHandler.h>

+ Inheritance diagram for WKeyboardHandler:
+ Collaboration diagram for WKeyboardHandler:

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

WMPointConnectorm_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...
 

Detailed Description

The keyboard handler for the keyboard events of WMPointConnector.

Definition at line 47 of file WKeyboardHandler.h.

Constructor & Destructor Documentation

◆ WKeyboardHandler()

WKeyboardHandler::WKeyboardHandler ( WMPointConnector connector)
explicit

Constructs one WKeyboardHandler.

Parameters
connectorThe WMPointConnector this handler belongs to.

Definition at line 43 of file WKeyboardHandler.cpp.

Member Function Documentation

◆ handle()

bool WKeyboardHandler::handle ( const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  aa 
)

The callback for the event listener.

Parameters
eaThe Adapter of the event.
aaThe Adapter of the action.
Returns
Whether the event should be passed on.

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().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_connector

WMPointConnector* WKeyboardHandler::m_connector
private

The WMPointConnector this handler belongs to.

Definition at line 68 of file WKeyboardHandler.h.

Referenced by handle().

◆ m_isCtrl

bool WKeyboardHandler::m_isCtrl = false
private

Whether ctrl is pressed or not.

Definition at line 73 of file WKeyboardHandler.h.

Referenced by handle().

◆ m_isShift

bool WKeyboardHandler::m_isShift = false
private

Whether shift is pressed or not.

Definition at line 78 of file WKeyboardHandler.h.

Referenced by handle().


The documentation for this class was generated from the following files: