17#ifndef QGSMAPTOOLMODIFYANNOTATION_H
18#define QGSMAPTOOLMODIFYANNOTATION_H
31class QgsAnnotationItemNodesSpatialIndex;
74 void onCanvasRefreshed();
84 void clearHoveredItem();
85 void clearSelectedItem();
86 void createHoverBand();
87 void createHoveredNodeBand();
88 void createSelectedItemBand();
91 QgsAnnotationItem *annotationItemFromId(
const QString &layerId,
const QString &itemId );
101 Action mCurrentAction = Action::NoAction;
103 std::unique_ptr<QgsSnapIndicator> mSnapIndicator;
106 std::vector< QObjectUniquePtr<QgsRubberBand> > mHoveredItemNodeRubberBands;
109 QList< QgsAnnotationItemNode > mHoveredItemNodes;
116 QString mHoveredItemId;
117 QString mHoveredItemLayerId;
119 QString mSelectedItemId;
120 QString mSelectedItemLayerId;
122 std::unique_ptr< QgsAnnotationItemNodesSpatialIndex > mHoveredItemNodesSpatialIndex;
127 bool mRefreshSelectedItemAfterRedraw =
false;
Keeps a pointer to a QObject and deletes it whenever this object is deleted.
Contains information about a node used for editing an annotation item.
Abstract base class for annotation items which are drawn with QgsAnnotationLayers.
Represents a map layer containing a set of georeferenced annotations, e.g.
Map canvas is a class for displaying all GIS data types on a canvas.
A QgsMapMouseEvent is the result of a user interaction with the mouse on a QgsMapCanvas.
A class to represent a 2D point.
A rectangle specified with double values.
Contains information about a rendered annotation item.
A class for drawing transient features (e.g.
Class that shows snapping marker on map canvas for the current snapping match.