![]() |
OpenWalnut
1.5.0dev
|
Small event handler class to catch left mouse buttons clicks in the main view. More...
Inheritance diagram for WMHierchClustDisplay::MainViewEventHandler:
Collaboration diagram for WMHierchClustDisplay::MainViewEventHandler:Public Types | |
| typedef boost::signals2::signal< bool(WVector2f) > | mouseClickSignalType |
| signal from a mouse button being clicked More... | |
Public Member Functions | |
| bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &) |
| The OSG calls this function whenever a new event has occured. More... | |
| void | subscribeLeftButtonPush (mouseClickSignalType::slot_type slot) |
| Registers a function slot to LEFT BUTTON PUSH events. More... | |
| void | subscribeRightButtonPush (mouseClickSignalType::slot_type slot) |
| Registers a function slot to RIGHT BUTTON PUSH events. More... | |
Private Attributes | |
| mouseClickSignalType | m_signalLeftButtonPush |
| Signal used for notification of the LEFT BUTTON PUSH event. More... | |
| mouseClickSignalType | m_signalRightButtonPush |
| Signal used for notification of the RIGHT BUTTON PUSH event. More... | |
Small event handler class to catch left mouse buttons clicks in the main view.
Definition at line 132 of file WMHierchClustDisplay.h.
| typedef boost::signals2::signal< bool ( WVector2f ) > WMHierchClustDisplay::MainViewEventHandler::mouseClickSignalType |
signal from a mouse button being clicked
Definition at line 136 of file WMHierchClustDisplay.h.
| bool WMHierchClustDisplay::MainViewEventHandler::handle | ( | const osgGA::GUIEventAdapter & | ea, |
| osgGA::GUIActionAdapter & | |||
| ) |
The OSG calls this function whenever a new event has occured.
| ea | Event class for storing GUI events such as mouse or keyboard interation etc. |
Definition at line 81 of file WMHierchClustDisplay.cpp.
References m_signalLeftButtonPush, and m_signalRightButtonPush.
| void WMHierchClustDisplay::MainViewEventHandler::subscribeLeftButtonPush | ( | mouseClickSignalType::slot_type | slot | ) |
Registers a function slot to LEFT BUTTON PUSH events.
Whenever the event occurs, the slot is called with current parameters.
| slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 95 of file WMHierchClustDisplay.cpp.
| void WMHierchClustDisplay::MainViewEventHandler::subscribeRightButtonPush | ( | mouseClickSignalType::slot_type | slot | ) |
Registers a function slot to RIGHT BUTTON PUSH events.
Whenever the event occurs, the slot is called with current parameters.
| slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 100 of file WMHierchClustDisplay.cpp.
|
private |
Signal used for notification of the LEFT BUTTON PUSH event.
Definition at line 165 of file WMHierchClustDisplay.h.
Referenced by handle().
|
private |
Signal used for notification of the RIGHT BUTTON PUSH event.
Definition at line 169 of file WMHierchClustDisplay.h.
Referenced by handle().