![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/HistogramInteraction.h>
Implements mouse interaction logic for the InteractiveHistogramOverlay. More...
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. | |
![]() | |
OverlayInteraction (InteractiveOverlay &overlay) | |
![]() | |
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 | |
![]() | |
virtual void | createActions () |
Create actions shown in context menu. | |
![]() | |
InteractiveOverlay & | m_overlay |
![]() | |
QMap< QString, QAction * > | m_actions |
Actions used in the context menu. | |
bool | m_useContextMenu = false |
Default value is false. | |
|
overridevirtual |
Handles the event and returns true if the event was handles and should not passed to other interactions.
Implements Interaction.
|
overridevirtual |
Create context menu entries.
Reimplemented from Interaction.
|
overridevirtual |
Evaluate action chosen in context menu or by shortcut.
Reimplemented from Interaction.