![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/Manipulator.h>
Abstract base class for manipulator objects. More...
Inheritance diagram for Manipulator:Abstract base class for manipulator objects.
Public Member Functions | |
| virtual bool | sceneEvent (QEvent *event, const GlView &view)=0 |
| void | addListener (ManipulatorListener *listener) |
| void | removeListener (const ManipulatorListener *listener) |
| virtual bool | requiresFocus () |
| Derived classes that need priority scene events can override this. | |
| virtual void | openContextMenu (QPoint pos, QPoint globalPos, Qt::KeyboardModifiers modifiers) |
| GUI::EventResult | handleInputEvent (const GUI::InputEvent &event, const GUI::View &view) override |
| This function is called by sources of input events in order to dispatch them to the handlers. | |
Protected Member Functions | |
| void | notifyListeners (void *eventData) |
|
pure virtual |
Implemented in SliceManipulator, and FanAnnotationManipulator.
|
inlinevirtual |
Derived classes that need priority scene events can override this.
By definition only one manipulator can get served first, so use with care.
Reimplemented in BoxAnnotationManipulator, PointBasedAnnotationManipulator, and FanAnnotationManipulator.
|
overridevirtual |
This function is called by sources of input events in order to dispatch them to the handlers.
In case there are more than one InputEventHandlers dispatchers are intended call this function consecutively until the first handler indicates to stop by returning a result where EventResult::stopPropagation() is true.
Implements ViewObject::EventHandler.