![]() |
ImFusion C++ SDK 4.5.0
|
#include <ImFusion/GUI/ViewObject.h>
Interface to be used as base class for event handlers of ViewObjects. More...
Interface to be used as base class for event handlers of ViewObjects.
In addition to the InputEvent it receives the parent View where the event originates from as additional payload. This enables you to add the same ViewObject to multiple views and still implement view-specific handling logic.
Public Member Functions | |
| virtual EventResult | handleInputEvent (const InputEvent &event, const View &view)=0 |
| This function is called by sources of input events in order to dispatch them to the handlers. | |
|
pure virtual |
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.
Implemented in ImFusion::GUI::BoxAnnotationEventHandler, ImFusion::GUI::PointBasedAnnotationEventHandler, ImFusion::LabelingManipulator, ImFusion::Manipulator, and ImFusion::Seg::LambdaEventHandler.