![]() |
ImFusion SDK 4.3
|
#include <ImFusion/US/FanAnnotationManipulator.h>
Manipulator for fan geometries. More...
Inheritance diagram for FanAnnotationManipulator: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.
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) |
|
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. |
|
overridevirtual |
Handles mouse events in the given view.
Implements Manipulator.
|
inlineoverridevirtual |
Returns whether this manipulator requires priority scene to work. This is true when left-clicking on the manipulator.
Reimplemented from Manipulator.