17 #ifndef QGSANNOTATIONLAYER_H
18 #define QGSANNOTATIONLAYER_H
20 #include "qgis_core.h"
56 : transformContext( transformContext )
76 SIP_PYOBJECT __repr__();
78 QString
str = QStringLiteral(
"<QgsAnnotationLayer: '%1'>" ).arg( sipCpp->name() );
79 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
100 bool removeItem(
const QString &
id );
110 bool isEmpty()
const;
118 QMap<QString, QgsAnnotationItem *>
items()
const {
return mItems; }
125 bool writeXml( QDomNode &layer_node, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
126 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &, StyleCategories categories = AllStyleCategories ) const override;
127 bool readSymbology( const QDomNode &node, QString &errorMessage,
QgsReadWriteContext &context, StyleCategories categories = AllStyleCategories ) override;
Abstract base class for annotation items which are drawn with QgsAnnotationLayers.
Represents a map layer containing a set of georeferenced annotations, e.g.
QMap< QString, QgsAnnotationItem * > items() const
Returns a map of items contained in the layer, by unique item ID.
Contains information about the context in which a coordinate transform is executed.
Base class for utility classes that encapsulate information necessary for rendering of map layers.
Base class for all map layer types.
virtual QgsMapLayer * clone() const =0
Returns a new instance equivalent to this one except for the id which is still unique.
The class is used as a container of context for various read/write operations on other objects.
A rectangle specified with double values.
Contains information about the context of a rendering operation.
Setting options for loading annotation layers.
LayerOptions(const QgsCoordinateTransformContext &transformContext)
Constructor for LayerOptions.
QgsCoordinateTransformContext transformContext
Coordinate transform context.