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 writeStyle( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &context, StyleCategories categories ) const override;
172 bool readStyle( const QDomNode &node, QString &errorMessage,
QgsReadWriteContext &context, StyleCategories categories ) override;
173 bool isEditable() const override;
174 bool supportsEditing() const override;
177 QString htmlMetadata() const override;
199 bool writeItems( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &context, StyleCategories categories = AllStyleCategories ) const;
200 bool readItems( const QDomNode &node, QString &errorMessage,
QgsReadWriteContext &context, StyleCategories categories = AllStyleCategories );
205 std::unique_ptr< QgsAnnotationLayerSpatialIndex > mSpatialIndex;
206 QSet< QString > mNonIndexedItems;
The class is used as a container of context for various read/write operations on other objects.
Contains information about the context of a rendering operation.