|
| QgsAnnotation (QObject *parent=nullptr) |
| Constructor for QgsAnnotation. More...
|
|
| ~QgsAnnotation () override |
|
virtual bool | accept (QgsStyleEntityVisitorInterface *visitor) const |
| Accepts the specified style entity visitor, causing it to visit all style entities associated within the annotation. More...
|
|
QgsFeature | associatedFeature () const |
| Returns the feature associated with the annotation, or an invalid feature if none has been set. More...
|
|
virtual QgsAnnotation * | clone () const =0 |
| Clones the annotation, returning a new copy of the annotation reflecting the annotation's current state. More...
|
|
QgsMargins | contentsMargin () const |
| Returns the margins (in millimeters) between the outside of the frame and the annotation content. More...
|
|
QgsFillSymbol * | fillSymbol () const |
| Returns the symbol that is used for rendering the annotation frame. More...
|
|
Q_DECL_DEPRECATED QPointF | frameOffsetFromReferencePoint () const |
| Returns the annotation's frame's offset (in pixels) from the mapPosition() reference point. More...
|
|
QPointF | frameOffsetFromReferencePointMm () const |
| Returns the annotation's frame's offset (in millimeters) from the mapPosition() reference point. More...
|
|
Q_DECL_DEPRECATED QSizeF | frameSize () const |
| Returns the size (in pixels) of the annotation's frame (the main area in which the annotation's content is drawn). More...
|
|
QSizeF | frameSizeMm () const |
| Returns the size (in millimeters) of the annotation's frame (the main area in which the annotation's content is drawn). More...
|
|
bool | hasFixedMapPosition () const |
| Returns true if the annotation is attached to a fixed map position, or false if the annotation uses a position relative to the current map extent. More...
|
|
bool | isVisible () const |
| Returns true if the annotation is visible and should be rendered. More...
|
|
QgsMapLayer * | mapLayer () const |
| Returns the map layer associated with the annotation. More...
|
|
QgsPointXY | mapPosition () const |
| Returns the map position of the annotation, if it is attached to a fixed map position. More...
|
|
QgsCoordinateReferenceSystem | mapPositionCrs () const |
| Returns the CRS of the map position, or an invalid CRS if the annotation does not have a fixed map position. More...
|
|
QgsMarkerSymbol * | markerSymbol () const |
| Returns the symbol that is drawn at the annotation's map position. More...
|
|
virtual void | readXml (const QDomElement &itemElem, const QgsReadWriteContext &context)=0 |
| Restores the annotation's state from a DOM element. More...
|
|
QPointF | relativePosition () const |
| Returns the relative position of the annotation, if it is not attached to a fixed map position. More...
|
|
void | render (QgsRenderContext &context) const |
| Renders the annotation to a target render context. More...
|
|
virtual void | setAssociatedFeature (const QgsFeature &feature) |
| Sets the feature associated with the annotation. More...
|
|
void | setContentsMargin (const QgsMargins &margins) |
| Sets the margins (in millimeters) between the outside of the frame and the annotation content. More...
|
|
void | setFillSymbol (QgsFillSymbol *symbol) |
| Sets the fill symbol used for rendering the annotation frame. More...
|
|
Q_DECL_DEPRECATED void | setFrameOffsetFromReferencePoint (QPointF offset) |
| Sets the annotation's frame's offset (in pixels) from the mapPosition() reference point. More...
|
|
void | setFrameOffsetFromReferencePointMm (QPointF offset) |
| Sets the annotation's frame's offset (in millimeters) from the mapPosition() reference point. More...
|
|
Q_DECL_DEPRECATED void | setFrameSize (QSizeF size) |
| Sets the size (in pixels) of the annotation's frame (the main area in which the annotation's content is drawn). More...
|
|
void | setFrameSizeMm (QSizeF size) |
| Sets the size (in millimeters) of the annotation's frame (the main area in which the annotation's content is drawn). More...
|
|
void | setHasFixedMapPosition (bool fixed) |
| Sets whether the annotation is attached to a fixed map position, or uses a position relative to the current map extent. More...
|
|
void | setMapLayer (QgsMapLayer *layer) |
| Sets the map layer associated with the annotation. More...
|
|
void | setMapPosition (const QgsPointXY &position) |
| Sets the map position of the annotation, if it is attached to a fixed map position. More...
|
|
void | setMapPositionCrs (const QgsCoordinateReferenceSystem &crs) |
| Sets the CRS of the map position. More...
|
|
void | setMarkerSymbol (QgsMarkerSymbol *symbol) |
| Sets the symbol that is drawn at the annotation's map position. More...
|
|
void | setRelativePosition (QPointF position) |
| Sets the relative position of the annotation, if it is not attached to a fixed map position. More...
|
|
void | setVisible (bool visible) |
| Sets whether the annotation is visible and should be rendered. More...
|
|
virtual void | writeXml (QDomElement &elem, QDomDocument &doc, const QgsReadWriteContext &context) const =0 |
| Writes the annotation state to a DOM element. More...
|
|