ImFusion SDK 4.3
Manipulator Class Referenceabstract

#include <ImFusion/GUI/Manipulator.h>

Abstract base class for manipulator objects. More...

+ Inheritance diagram for 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 sceneEvent ( QEvent * event,
const GlView & view )
pure virtual

◆ requiresFocus()

virtual bool 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 BoxAnnotationManipulator, PointBasedAnnotationManipulator, and FanAnnotationManipulator.

◆ handleInputEvent()

GUI::EventResult 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 ViewObject::EventHandler.


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