ImFusion SDK 4.3
Interaction Class Referenceabstract

#include <ImFusion/GUI/Interaction.h>

Base interface class for view and overlay interactions. More...

+ Inheritance diagram for Interaction:

Detailed Description

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.
 

Member Function Documentation

◆ sceneEvent()

virtual bool sceneEvent ( QEvent * event)
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.

◆ contextMenuCreate()

virtual void contextMenuCreate ( QMenu & )
inlinevirtual

Create context menu entries.

Reimplemented in HistogramInteraction, InteractionPlotView, InteractionView2D, InteractionView3D, and ViewInteraction.

◆ reset()

virtual void reset ( )
inlinevirtual

Reimplemented in Interaction3D.

◆ createActions()

virtual void createActions ( )
inlineprotectedvirtual

Create actions shown in context menu.

Reimplemented in InteractionPlotView, InteractionView2D, InteractionView3D, and ViewInteraction.

◆ contextMenuEvaluate

virtual void contextMenuEvaluate ( QAction * )
inlineprotectedvirtualslot

Evaluate action chosen in context menu or by shortcut.

Reimplemented in HistogramInteraction, InteractionPlotView, InteractionView2D, and InteractionView3D.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close