![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/OverlayInteraction.h>
Base class for all overlay interactions. More...
Inheritance diagram for OverlayInteraction: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) | |
Public Member Functions inherited from Interaction | |
| 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 |
Protected Attributes inherited from Interaction | |
| QMap< QString, QAction * > | m_actions |
| Actions used in the context menu. | |
| bool | m_useContextMenu = false |
| Default value is false. | |
Additional Inherited Members | |
Protected Slots inherited from Interaction | |
| virtual void | contextMenuEvaluate (QAction *) |
| Evaluate action chosen in context menu or by shortcut. | |
Protected Member Functions inherited from Interaction | |
| virtual void | createActions () |
| Create actions shown in context menu. | |