17#ifndef QGSMAPTOOLMODIFYANNOTATION_H
18#define QGSMAPTOOLMODIFYANNOTATION_H
32class QgsAnnotationItemNodesSpatialIndex;
73 void onCanvasRefreshed();
83 void clearHoveredItem();
84 void clearSelectedItem();
85 void createHoverBand();
86 void createHoveredNodeBand();
87 void createSelectedItemBand();
89 void setHoveredItemFromPoint(
const QgsPointXY &mapPoint );
98 Action mCurrentAction = Action::NoAction;
100 std::unique_ptr<QgsSnapIndicator> mSnapIndicator;
103 std::vector<QObjectUniquePtr<QgsRubberBand>> mHoveredItemNodeRubberBands;
106 QList<QgsAnnotationItemNode> mHoveredItemNodes;
113 QPoint mLastHoverPoint;
114 QString mHoveredItemId;
115 QString mHoveredItemLayerId;
118 QString mSelectedItemId;
119 QString mSelectedItemLayerId;
122 std::unique_ptr<QgsAnnotationItemNodesSpatialIndex> mHoveredItemNodesSpatialIndex;
128 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 mouse event which is the result of a user interaction with a QgsMapCanvas.
A rectangle specified with double values.
Contains information about a rendered annotation item.
Responsible for drawing transient features (e.g.
Shows a snapping marker on map canvas for the current snapping match.