17#ifndef QGSANNOTATIONLAYER_H
18#define QGSANNOTATIONLAYER_H
32class QgsAnnotationLayerSpatialIndex;
63 : transformContext( transformContext )
83 SIP_PYOBJECT __repr__();
85 QString
str = QStringLiteral(
"<QgsAnnotationLayer: '%1'>" ).arg( sipCpp->name() );
86 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
116 bool removeItem(
const QString &
id );
126 bool isEmpty()
const;
134 QMap<QString, QgsAnnotationItem *>
items()
const {
return mItems; }
162 Qgis::MapLayerProperties
properties()
const override;
168 bool writeXml( QDomNode &layer_node, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
169 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &, StyleCategories categories = AllStyleCategories ) const override;
170 bool readSymbology( const QDomNode &node, QString &errorMessage,
QgsReadWriteContext &context, StyleCategories categories = AllStyleCategories ) override;
171 bool isEditable() const override;
172 bool supportsEditing() const override;
175 QString htmlMetadata() const override;
201 std::
unique_ptr< QgsAnnotationLayerSpatialIndex > mSpatialIndex;
202 QSet< QString > mNonIndexedItems;
226 QgsDataProvider::ReadFlags flags );
228 QString name()
const override;
229 QString description()
const override;
231 bool isValid()
const override;
AnnotationItemEditOperationResult
Results from an edit operation on an annotation item.
Abstract base class for annotation item edit operations.
Abstract base class for annotation items which are drawn with QgsAnnotationLayers.
Implementation of threaded rendering for annotation layers.
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.
This class represents a coordinate reference system (CRS).
Contains information about the context in which a coordinate transform is executed.
Abstract base class for spatial data provider implementations.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Base class for utility classes that encapsulate information necessary for rendering of map layers.
Base class for all map layer types.
virtual Qgis::MapLayerProperties properties() const
Returns the map layer properties of this layer.
virtual QgsMapLayer * clone() const =0
Returns a new instance equivalent to this one except for the id which is still unique.
Base class for visual effects which can be applied to QPicture drawings.
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.
std::unique_ptr< GEOSGeometry, GeosDeleter > unique_ptr
Scoped GEOS pointer.
const QgsCoordinateReferenceSystem & crs
Setting options for loading annotation layers.
LayerOptions(const QgsCoordinateTransformContext &transformContext)
Constructor for LayerOptions.
QgsCoordinateTransformContext transformContext
Coordinate transform context.
Setting options for creating vector data providers.