![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/Interaction.h>
Base interface class for view and overlay interactions. More...
Base interface class for view and overlay interactions.
Public Member Functions | |
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 Slots | |
virtual void | contextMenuEvaluate (QAction *) |
Evaluate action chosen in context menu or by shortcut. | |
Protected Member Functions | |
virtual void | createActions () |
Create actions shown in context menu. | |
Protected Attributes | |
QMap< QString, QAction * > | m_actions |
Actions used in the context menu. | |
bool | m_useContextMenu = false |
Default value is false. | |
|
pure virtual |
Handles the event and returns true if the event was handles and should not passed to other interactions.
Implemented in HistogramInteraction, Interaction3D, InteractionOrthoView2D, InteractionPlotView, InteractionView2D, and InteractionView3D.
|
inlinevirtual |
Create context menu entries.
Reimplemented in HistogramInteraction, InteractionPlotView, InteractionView2D, InteractionView3D, and ViewInteraction.
|
inlinevirtual |
Reimplemented in Interaction3D.
|
inlineprotectedvirtual |
Create actions shown in context menu.
Reimplemented in InteractionPlotView, InteractionView2D, InteractionView3D, and ViewInteraction.
|
inlineprotectedvirtualslot |
Evaluate action chosen in context menu or by shortcut.
Reimplemented in HistogramInteraction, InteractionPlotView, InteractionView2D, and InteractionView3D.