ImFusion C++ SDK 4.5.0
ImFusion::GUI::ViewObject::EventHandler Class Referenceabstract

#include <ImFusion/GUI/ViewObject.h>

Interface to be used as base class for event handlers of ViewObjects. More...

Inheritance diagram for ImFusion::GUI::ViewObject::EventHandler:

Detailed Description

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.

See also
TypedViewObject

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.

Member Function Documentation

◆ handleInputEvent()

virtual EventResult ImFusion::GUI::ViewObject::EventHandler::handleInputEvent ( const InputEvent & event,
const View & view )
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.


The documentation for this class was generated from the following file:
  • ImFusion/GUI/ViewObject.h
Search Tab / S to search, Esc to close