QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
23 return Qgis::AnnotationItemFlags();
50 element.setAttribute( QStringLiteral(
"zIndex" ),
zIndex() );
51 element.setAttribute( QStringLiteral(
"useReferenceScale" ),
useSymbologyReferenceScale() ? QStringLiteral(
"1" ) : QStringLiteral(
"0" ) );
58 setZIndex( element.attribute( QStringLiteral(
"zIndex" ) ).toInt() );
virtual QList< QgsAnnotationItemNode > nodes() const
Returns the nodes for the item, used for editing the item.
bool useSymbologyReferenceScale() const
Returns true if the annotation item uses a symbology reference scale.
The class is used as a container of context for various read/write operations on other objects.
QString qgsDoubleToString(double a, int precision=17)
Returns a string representation of a double.
AnnotationItemEditOperationResult
Results from an edit operation on an annotation item.
bool writeCommonProperties(QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const
Writes common properties from the base class into an XML element.
bool readCommonProperties(const QDomElement &element, const QgsReadWriteContext &context)
Reads common properties from the base class from the given DOM element.
Abstract base class for annotation item edit operations.
int zIndex() const
Returns the item's z index, which controls the order in which annotation items are rendered in the la...
virtual Qgis::AnnotationItemEditOperationResult applyEdit(QgsAbstractAnnotationItemEditOperation *operation)
Applies an edit operation to the item.
virtual Qgis::AnnotationItemFlags flags() const
Returns item flags.
virtual QgsAnnotationItemEditOperationTransientResults * transientEditResults(QgsAbstractAnnotationItemEditOperation *operation)
Retrieves the results of a transient (in progress) edit operation on the item.
void copyCommonProperties(const QgsAnnotationItem *other)
Copies common properties from the base class from an other item.
void setSymbologyReferenceScale(double scale)
Sets the annotation's symbology reference scale.
double symbologyReferenceScale() const
Returns the annotation's symbology reference scale.
void setZIndex(int index)
Sets the item's z index, which controls the order in which annotation items are rendered in the layer...
Abstract base class for annotation items which are drawn with QgsAnnotationLayers.
Encapsulates the transient results of an in-progress annotation edit operation.
void setUseSymbologyReferenceScale(bool enabled)
Sets whether the annotation item uses a symbology reference scale.
@ Invalid
Operation has invalid parameters for the item, no change occurred.