![]() |
ImFusion C++ SDK 4.4.0
|
#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 ImFusion::HistogramInteraction, ImFusion::Interaction3D, ImFusion::InteractionOrthoView2D, ImFusion::InteractionPlotView, ImFusion::InteractionView2D, and ImFusion::InteractionView3D.
|
inlinevirtual |
Create context menu entries.
Reimplemented in ImFusion::HistogramInteraction, ImFusion::InteractionPlotView, ImFusion::InteractionView2D, ImFusion::InteractionView3D, and ImFusion::ViewInteraction.
|
inlinevirtual |
Reimplemented in ImFusion::Interaction3D.
|
inlineprotectedvirtual |
Create actions shown in context menu.
Reimplemented in ImFusion::InteractionPlotView, ImFusion::InteractionView2D, ImFusion::InteractionView3D, and ImFusion::ViewInteraction.
|
inlineprotectedvirtualslot |
Evaluate action chosen in context menu or by shortcut.
Reimplemented in ImFusion::HistogramInteraction, ImFusion::InteractionPlotView, ImFusion::InteractionView2D, and ImFusion::InteractionView3D.