ImFusion SDK 4.3
PointBasedAnnotationManipulator2 Class Reference

#include <ImFusion/GUI/PointBasedAnnotationManipulator2.h>

Manipulator for point-based annotations. More...

+ Inheritance diagram for PointBasedAnnotationManipulator2:

Detailed Description

Manipulator for point-based annotations.

Public Member Functions

 PointBasedAnnotationManipulator2 (GlPointBasedAnnotation &annotation)
 
bool sceneEvent (QEvent *event, const GlView &view) override
 
void beginCreation ()
 
bool endCreation ()
 
- Public Member Functions inherited from Manipulator
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 onHandleClicked (int handle, Qt::MouseButton button)
 
void onLineClicked (QMouseEvent *e, const GlView &view)
 
void onMouseButtonRelease ()
 
void setOpenHand ()
 Sets cursor to open hand.
 
void setClosedHand ()
 Sets cursor to closed (grabbing) hand.
 
void resetCursor ()
 Resets cursor to default.
 
void setActive (bool v)
 Sets whether this annotation processes scene events.
 
bool active ()
 
void moveHandle (QMouseEvent *e, const GlView &view)
 Moves a single handle.
 
void moveAllHandles (QMouseEvent *e, const GlView &view)
 Moves the whole annotation.
 
void moveStickyHandle (QMouseEvent *e, const GlView &view)
 Moves the handle sticking to the cursor, used during creation of the annotation.
 
bool placeHandle (QMouseEvent *e, const GlView &view)
 Sets down the handle sticking to the cursor.
 
void updateAnnotation (const GlView &view)
 Sets view of the annotation and calls its updatePoints method, should be used when at least 1 handle has changed.
 
bool checkForParentView (const GlView &view)
 Checks if the given view fits the annotation (ie the points are in the plane spanned by the view).
 
- Protected Member Functions inherited from Manipulator
void notifyListeners (void *eventData)
 

Protected Attributes

GlPointBasedAnnotationm_annotation
 
int m_selectedHandle
 
bool m_moveAll
 
bool m_creating
 
bool m_isActive
 
bool m_cursorChanged
 
std::vector< vec3 > m_pointOffsets
 

Member Function Documentation

◆ sceneEvent()

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

Implements Manipulator.

◆ checkForParentView()

bool checkForParentView ( const GlView & view)
protected

Checks if the given view fits the annotation (ie the points are in the plane spanned by the view).

If so, it sets the annotation's view to this one. Use for annotations loaded from workspaces.


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