64 : transformContext( transformContext )
84 SIP_PYOBJECT __repr__();
86 QString
str = QStringLiteral(
"<QgsAnnotationLayer: '%1'>" ).arg( sipCpp->name() );
87 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
117 bool removeItem(
const QString &
id );
127 bool isEmpty()
const;
135 QMap<QString, QgsAnnotationItem *>
items()
const {
return mItems; }
178 bool writeXml( QDomNode &layer_node, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
179 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &, StyleCategories categories = AllStyleCategories ) const override;
180 bool readSymbology( const QDomNode &node, QString &errorMessage,
QgsReadWriteContext &context, StyleCategories categories = AllStyleCategories ) override;
181 bool writeStyle( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &context, StyleCategories categories ) const override;
182 bool readStyle( const QDomNode &node, QString &errorMessage,
QgsReadWriteContext &context, StyleCategories categories ) override;
183 bool isEditable() const override;
184 bool supportsEditing() const override;
187 QString htmlMetadata() const override;
188 void resolveReferences(
QgsProject *project ) override;
223 void setLinkedVisibilityLayer(
QgsMapLayer *layer );
228 bool writeItems( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &context, StyleCategories categories = AllStyleCategories ) const;
229 bool readItems( const QDomNode &node, QString &errorMessage,
QgsReadWriteContext &context, StyleCategories categories = AllStyleCategories );
234 std::unique_ptr< QgsAnnotationLayerSpatialIndex > mSpatialIndex;
235 QSet< QString > mNonIndexedItems;
Encapsulates the context for an annotation item edit operation.
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.