ImFusion C++ SDK 4.4.0
ImFusion::Manipulator Class Referenceabstract

#include <ImFusion/GUI/Manipulator.h>

Abstract base class for manipulator objects. More...

Inheritance diagram for ImFusion::Manipulator:

Detailed Description

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)

Member Function Documentation

◆ sceneEvent()

virtual bool ImFusion::Manipulator::sceneEvent ( QEvent * event,
const GlView & view )
pure virtual

◆ requiresFocus()

virtual bool ImFusion::Manipulator::requiresFocus ( )
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 ImFusion::BoxAnnotationManipulator, ImFusion::PointBasedAnnotationManipulator, and ImFusion::US::FanAnnotationManipulator.

◆ handleInputEvent()

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


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