OpendTect-6_4
6.4
|
Handles gesture event and triggers notifier with GestureEventInfo. More...
Public Member Functions | |
GestureEventHandler () | |
~GestureEventHandler () | |
void | triggerPinchEvent (const GestureEvent &pinchevnt) |
Only available during events. More... | |
const GestureEvent * | getPinchEventInfo () const |
bool | isHandled () const |
void | setHandled (bool yn) |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false) |
bool | attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) |
void | detachCB (NotifierAccess &, const CallBack &) |
void | detachCB (NotifierAccess *notif, const CallBack &cb) |
bool | isNotifierAttached (NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
Public Attributes | |
Notifier< GestureEventHandler > | pinchnotifier |
Private Attributes | |
const GestureEvent * | currentevent_ |
bool | ishandled_ |
Additional Inherited Members | |
Protected Member Functions inherited from CallBacker | |
void | detachAllNotifiers () |
Call from the destructor of your inherited object. More... | |
Handles gesture event and triggers notifier with GestureEventInfo.
The callback function should look like this. It also has isHandled() and setHandled() functions similar to the mouse events, to explicitly handle the callback which prevents other objects in the chain to use it.
GestureEventHandler::GestureEventHandler | ( | ) |
GestureEventHandler::~GestureEventHandler | ( | ) |
const GestureEvent* GestureEventHandler::getPinchEventInfo | ( | ) | const |
|
inline |
|
inline |
void GestureEventHandler::triggerPinchEvent | ( | const GestureEvent & | pinchevnt | ) |
Only available during events.
|
private |
|
private |
Notifier<GestureEventHandler> GestureEventHandler::pinchnotifier |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019