18 #ifndef QGSMAPCANVASANNOTATIONITEM_H 19 #define QGSMAPCANVASANNOTATIONITEM_H 45 if ( dynamic_cast<QgsMapCanvasAnnotationItem *>( sipCpp ) )
46 sipType = sipType_QgsMapCanvasAnnotationItem;
90 void paint( QPainter *painter )
override;
100 Qt::CursorShape cursorShapeForAction(
MouseMoveAction moveAction )
const;
104 void updateBoundingRect();
106 void onCanvasLayersChanged();
109 void setFeatureForMapPosition();
114 void drawSelectionBoxes( QPainter *p )
const;
117 double scaledSymbolSize()
const;
122 QRectF mBoundingRect;
126 #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.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
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.