![]() |
OpenWalnut
1.5.0dev
|
Small event handler class to catch left mouse buttons clicks in the main view. More...
Inheritance diagram for WMClusterDisplay::MainViewEventHandler:
Collaboration diagram for WMClusterDisplay::MainViewEventHandler:Public Types | |
| typedef boost::signals2::signal< bool(WVector2f) > | LeftButtonPushSignalType |
| Signal for handling left button signals. 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 (LeftButtonPushSignalType::slot_type slot) |
| Registers a function slot to LEFT BUTTON PUSH events. More... | |
Private Attributes | |
| LeftButtonPushSignalType | m_signalLeftButtonPush |
| Signal used for notification of the LEFT BUTTON PUSH event. More... | |
Small event handler class to catch left mouse buttons clicks in the main view.
Definition at line 115 of file WMClusterDisplay.h.
| typedef boost::signals2::signal< bool ( WVector2f ) > WMClusterDisplay::MainViewEventHandler::LeftButtonPushSignalType |
Signal for handling left button signals.
Definition at line 121 of file WMClusterDisplay.h.
| bool WMClusterDisplay::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 54 of file WMClusterDisplay.cpp.
| void WMClusterDisplay::MainViewEventHandler::subscribeLeftButtonPush | ( | LeftButtonPushSignalType::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 64 of file WMClusterDisplay.cpp.
References m_signalLeftButtonPush.
|
private |
Signal used for notification of the LEFT BUTTON PUSH event.
Definition at line 143 of file WMClusterDisplay.h.
Referenced by subscribeLeftButtonPush().