ImFusion SDK 4.3
HistogramInteraction Class Reference

#include <ImFusion/GUI/HistogramInteraction.h>

Implements mouse interaction logic for the InteractiveHistogramOverlay. More...

+ Inheritance diagram for HistogramInteraction:

Detailed Description

Implements mouse interaction logic for the InteractiveHistogramOverlay.

Public Member Functions

 HistogramInteraction (InteractiveHistogramOverlay &interactiveOverlay)
 
void setImage (const SharedImageSet *sis, int index)
 
bool sceneEvent (QEvent *event) override
 Handles the event and returns true if the event was handles and should not passed to other interactions.
 
void contextMenuCreate (QMenu &m) override
 Create context menu entries.
 
void contextMenuEvaluate (QAction *action) override
 Evaluate action chosen in context menu or by shortcut.
 
- Public Member Functions inherited from OverlayInteraction
 OverlayInteraction (InteractiveOverlay &overlay)
 
- Public Member Functions inherited from Interaction
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.
 

Additional Inherited Members

- Protected Member Functions inherited from Interaction
virtual void createActions ()
 Create actions shown in context menu.
 
- Protected Attributes inherited from OverlayInteraction
InteractiveOverlaym_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.
 

Member Function Documentation

◆ sceneEvent()

bool sceneEvent ( QEvent * event)
overridevirtual

Handles the event and returns true if the event was handles and should not passed to other interactions.

Implements Interaction.

◆ contextMenuCreate()

void contextMenuCreate ( QMenu & )
overridevirtual

Create context menu entries.

Reimplemented from Interaction.

◆ contextMenuEvaluate()

void contextMenuEvaluate ( QAction * )
overridevirtual

Evaluate action chosen in context menu or by shortcut.

Reimplemented from Interaction.


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