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

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

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

Detailed Description

Handles the GUIEvents in context of the WOnscreenSelection.

Definition at line 42 of file WOnscreenSelectionHandler.h.

Constructor & Destructor Documentation

◆ WOnscreenSelectionHandler()

WOnscreenSelectionHandler::WOnscreenSelectionHandler ( WOnscreenSelection manager)
explicit

Construct a new WDrawHandler object.

Parameters
managerThe WOnscreenSelection this belongs to.

Definition at line 30 of file WOnscreenSelectionHandler.cpp.

Member Function Documentation

◆ handle()

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

Handles the incoming events.

Parameters
eaThe EventAdapter of the event.
aaThe ActionAdapter of the event.
Returns
true Don't propagate the event.
false Propagate 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:

Member Data Documentation

◆ m_manager

WOnscreenSelection* WOnscreenSelectionHandler::m_manager
private

The WOnscreenSelection this belongs to.

Definition at line 63 of file WOnscreenSelectionHandler.h.

Referenced by handle().

◆ m_mousePressed

bool WOnscreenSelectionHandler::m_mousePressed
private

Whether the mouse is pressed or not.

Definition at line 65 of file WOnscreenSelectionHandler.h.

Referenced by handle().

◆ m_shiftPressed

bool WOnscreenSelectionHandler::m_shiftPressed
private

Whether shift is pressed or not.

Definition at line 66 of file WOnscreenSelectionHandler.h.

Referenced by handle().


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