18 #ifndef QGSMAPCANVASANNOTATIONITEM_H 19 #define QGSMAPCANVASANNOTATIONITEM_H 74 void paint( QPainter *painter )
override;
84 Qt::CursorShape cursorShapeForAction(
MouseMoveAction moveAction )
const;
88 void updateBoundingRect();
90 void onCanvasLayersChanged();
93 void setFeatureForMapPosition();
98 void drawSelectionBoxes( QPainter *p )
const;
101 double scaledSymbolSize()
const;
106 QRectF mBoundingRect;
110 #endif // QGSMAPCANVASANNOTATIONITEM_H const QgsAnnotation * annotation() const
Returns the item's annotation.
Moving annotation map position.
An abstract class for items that can be placed on the map canvas.
Moving position of frame relative to annotation.
Map canvas is a class for displaying all GIS data types on a canvas.
Abstract base class for annotation items which are drawn over a map.
QRectF boundingRect() const override
virtual void paint(QPainter *painter)=0
function to be implemented by derived classes
MouseMoveAction
Mouse actions for interacting with item.
QgsAnnotation * annotation()
Returns the item's annotation.
virtual void updatePosition()
called on changed extent or resize event to update position of the item
An interactive map canvas item which displays a QgsAnnotation.