![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/OverlayInteraction.h>
Base class for all overlay interactions. More...
Base class for all overlay interactions.
The sceneEvent method receives all events, regardless if they are inside the area of the overlay or not. However, the interaction receives Enter and Leave events when the overlay area is entered or left.
Public Member Functions | |
OverlayInteraction (InteractiveOverlay &overlay) | |
![]() | |
virtual bool | sceneEvent (QEvent *event)=0 |
Handles the event and returns true if the event was handles and should not passed to other interactions. | |
virtual void | contextMenuCreate (QMenu &) |
Create context menu entries. | |
virtual void | openContextMenu (QPoint pos, QPoint globalPos, Qt::KeyboardModifiers modifiers) |
virtual void | reset () |
void | setUseContextMenu (bool use) |
Set if the context menu must be created or not. | |
bool | useContextMenu () const |
Specifies if the view creates context menu entries or not. Default value is false. | |
Protected Attributes | |
InteractiveOverlay & | m_overlay |
![]() | |
QMap< QString, QAction * > | m_actions |
Actions used in the context menu. | |
bool | m_useContextMenu = false |
Default value is false. | |
Additional Inherited Members | |
![]() | |
virtual void | contextMenuEvaluate (QAction *) |
Evaluate action chosen in context menu or by shortcut. | |
![]() | |
virtual void | createActions () |
Create actions shown in context menu. | |