ImFusion SDK 4.3
OverlayInteraction Class Reference

#include <ImFusion/GUI/OverlayInteraction.h>

Base class for all overlay interactions. More...

+ Inheritance diagram for OverlayInteraction:

Detailed Description

Base class for all overlay interactions.

The sceneEvent method receives all events, regardless if they are inside the area of the overlay or not. However, the interaction receives Enter and Leave events when the overlay area is entered or left.

Note
After instantiation of the OverlayInteraction you must explicitly assign it to an overlay via InteractiveOverlay::setInteraction().

Public Member Functions

 OverlayInteraction (InteractiveOverlay &overlay)
 
- Public Member Functions inherited from Interaction
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 Attributes

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.
 

Additional Inherited Members

- Protected Slots inherited from Interaction
virtual void contextMenuEvaluate (QAction *)
 Evaluate action chosen in context menu or by shortcut.
 
- Protected Member Functions inherited from Interaction
virtual void createActions ()
 Create actions shown in context menu.
 

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