| QGIS API Documentation
    3.20.0-Odense (decaadbb31)
    | 
Abstract base class for annotation items which are drawn with QgsAnnotationLayers. More...
#include <qgsannotationitem.h>

| Public Member Functions | |
| QgsAnnotationItem ()=default | |
| Constructor for an annotation item.  More... | |
| QgsAnnotationItem (const QgsAnnotationItem &other)=delete | |
| QgsAnnotationItem cannot be copied.  More... | |
| virtual | ~QgsAnnotationItem ()=default | 
| virtual QgsRectangle | boundingBox () const =0 | 
| Returns the bounding box of the item's geographic location, in the parent layer's coordinate reference system.  More... | |
| virtual QgsAnnotationItem * | clone ()=0 | 
| Returns a clone of the item.  More... | |
| QgsAnnotationItem & | operator= (const QgsAnnotationItem &other)=delete | 
| QgsAnnotationItem cannot be copied.  More... | |
| virtual bool | readXml (const QDomElement &element, const QgsReadWriteContext &context)=0 | 
| Reads the item's state from the given DOM element.  More... | |
| virtual void | render (QgsRenderContext &context, QgsFeedback *feedback)=0 | 
| Renders the item to the specified render context.  More... | |
| void | setZIndex (int index) | 
| Sets the item's z index, which controls the order in which annotation items are rendered in the layer.  More... | |
| virtual QString | type () const =0 | 
| Returns a unique (untranslated) string identifying the type of item.  More... | |
| virtual bool | writeXml (QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const =0 | 
| Writes the item's state into an XML element.  More... | |
| int | zIndex () const | 
| Returns the item's z index, which controls the order in which annotation items are rendered in the layer.  More... | |
Abstract base class for annotation items which are drawn with QgsAnnotationLayers.
Definition at line 38 of file qgsannotationitem.h.
| 
 | default | 
Constructor for an annotation item.
| 
 | delete | 
QgsAnnotationItem cannot be copied.
| 
 | virtualdefault | 
| 
 | pure virtual | 
Returns the bounding box of the item's geographic location, in the parent layer's coordinate reference system.
Implemented in QgsAnnotationPolygonItem, QgsAnnotationPointTextItem, QgsAnnotationMarkerItem, and QgsAnnotationLineItem.
| 
 | pure virtual | 
Returns a clone of the item.
Ownership is transferred to the caller.
Implemented in QgsAnnotationPolygonItem, QgsAnnotationPointTextItem, QgsAnnotationMarkerItem, and QgsAnnotationLineItem.
| 
 | delete | 
QgsAnnotationItem cannot be copied.
| 
 | pure virtual | 
Reads the item's state from the given DOM element.
Implemented in QgsAnnotationPolygonItem, QgsAnnotationPointTextItem, QgsAnnotationMarkerItem, and QgsAnnotationLineItem.
| 
 | pure virtual | 
Renders the item to the specified render context.
The feedback argument can be used to detect render cancellations during expensive render operations.
Implemented in QgsAnnotationPolygonItem, QgsAnnotationPointTextItem, QgsAnnotationMarkerItem, and QgsAnnotationLineItem.
| 
 | inline | 
Sets the item's z index, which controls the order in which annotation items are rendered in the layer.
Definition at line 129 of file qgsannotationitem.h.
| 
 | pure virtual | 
Returns a unique (untranslated) string identifying the type of item.
Implemented in QgsAnnotationPolygonItem, QgsAnnotationPointTextItem, QgsAnnotationMarkerItem, and QgsAnnotationLineItem.
| 
 | pure virtual | 
Writes the item's state into an XML element.
Implemented in QgsAnnotationPolygonItem, QgsAnnotationPointTextItem, QgsAnnotationMarkerItem, and QgsAnnotationLineItem.
| 
 | inline | 
Returns the item's z index, which controls the order in which annotation items are rendered in the layer.
Definition at line 121 of file qgsannotationitem.h.