QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
18 #ifndef QGSMAPCANVASANNOTATIONITEM_H
19 #define QGSMAPCANVASANNOTATIONITEM_H
46 sipType = sipType_QgsMapCanvasAnnotationItem;
90 void paint( QPainter *painter )
override;
95 MouseMoveAction moveActionForPosition( QPointF pos )
const;
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
@ MoveMapPosition
Moving annotation map position.
@ ResizeFrameLeft
Resize frame left.
@ ResizeFrameLeftUp
Resize frame left up.
const QgsAnnotation * annotation() const
Returns the item's annotation.
@ ResizeFrameUp
Resize frame up.
@ MoveFramePosition
Moving position of frame relative to annotation.
QgsAnnotation * annotation()
Returns the item's annotation.
virtual void updatePosition()
called on changed extent or resize event to update position of the item
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
virtual void paint(QPainter *painter)=0
function to be implemented by derived classes
Abstract base class for annotation items which are drawn over a map.
MouseMoveAction
Mouse actions for interacting with item.
@ ResizeFrameLeftDown
Resize frame left down.
@ ResizeFrameDown
Resize frame down.
@ ResizeFrameRight
Resize frame right.
QRectF boundingRect() const override
@ ResizeFrameRightUp
Resize frame right up.