ImFusion SDK 4.3
FanAnnotationManipulator Class Reference

#include <ImFusion/US/FanAnnotationManipulator.h>

Manipulator for fan geometries. More...

+ Inheritance diagram for FanAnnotationManipulator:

Detailed Description

Manipulator for fan geometries.

Allows users to interact with a fan by dragging vertices and edges to modify the internal instance of GlFanGeometry. The following example creates a manipulator for a given GlFanGoemetry and sets it to no interaction. The user can then interact with the geometry.

auto us = UltrasoundSweep();
auto glFanGeom = std::make_unique<GlFanGeometry>(us);
auto manipulator = std::make_unique<FanAnnotationManipulator>(*glFanGeom);
manipulator->setInteractionMode(FanAnnotationManipulator::InteractionMode::None, false);
@ None
Not interacting with anything.
Definition FanAnnotationManipulator.h:40
Set of 2D ultrasound images constituting a 3D (freehand) ultrasound sweep, so a clip of 2D ultrasound...
Definition UltrasoundSweep.h:31
T make_unique(T... args)

Public Types

enum class  InteractionMode { None = 0 , MoveEdge = 2 , MovePoint = 4 }
 < Interaction mode for the manipulator More...
 

Public Member Functions

 FanAnnotationManipulator (GlFanGeometry &annotation)
 
bool sceneEvent (QEvent *event, const GlView &view) override
 Handles mouse events in the given view.
 
void setInteractionMode (InteractionMode mode, bool=true)
 Sets the interaction mode for this manipulator.
 
InteractionMode interactionMode () const
 Returns the current interaction mode for this manipulator.
 
bool requiresFocus () override
 Returns whether this manipulator requires priority scene to work. This is true when left-clicking on the manipulator.
 
bool enabled () const
 Returns whether this manipulator is enabled.
 
void setEnabled (bool newValue)
 Enables/disables this manipulator.
 
- Public Member Functions inherited from Manipulator
void addListener (ManipulatorListener *listener)
 
void removeListener (const ManipulatorListener *listener)
 
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.
 

Additional Inherited Members

- Protected Member Functions inherited from Manipulator
void notifyListeners (void *eventData)
 

Member Enumeration Documentation

◆ InteractionMode

enum class InteractionMode
strong

< Interaction mode for the manipulator

Enumerator
None 

Not interacting with anything.

MoveEdge 

Interacting with an edge of the fan.

MovePoint 

Interacting with a control point of the fan.

Member Function Documentation

◆ sceneEvent()

bool sceneEvent ( QEvent * event,
const GlView & view )
overridevirtual

Handles mouse events in the given view.

Implements Manipulator.

◆ requiresFocus()

bool requiresFocus ( )
inlineoverridevirtual

Returns whether this manipulator requires priority scene to work. This is true when left-clicking on the manipulator.

Reimplemented from Manipulator.


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