Class: QgsAnnotationItemNode

class qgis.core.QgsAnnotationItemNode

Bases: sip.wrapper

Contains information about a node used for editing an annotation item.

New in version 3.22.

QgsAnnotationItemNode() Default constructor

QgsAnnotationItemNode(id: QgsVertexId, point: QgsPointXY, type: Qgis.AnnotationItemNodeType) Constructor for QgsAnnotationItemNode, with the specified id, point and type.

QgsAnnotationItemNode(QgsAnnotationItemNode)

Methods

id

Returns the ID number of the node, used for uniquely identifying the node in the item.

point

Returns the node's position, in geographic coordinates.

setPoint

Sets the node's position, in geographic coordinates.

setType

Sets the node type.

type

Returns the node type.

id(self) QgsVertexId

Returns the ID number of the node, used for uniquely identifying the node in the item.

Return type

QgsVertexId

point(self) QgsPointXY

Returns the node’s position, in geographic coordinates.

The coordinates will match the annotation item’s CRS.

See also

setPoint()

Return type

QgsPointXY

setPoint(self, point: QgsPointXY)

Sets the node’s position, in geographic coordinates.

The coordinates will match the annotation item’s CRS.

See also

point()

Parameters

point (QgsPointXY) –

setType(self, type: Qgis.AnnotationItemNodeType)

Sets the node type.

See also

type()

Parameters

type (Qgis.AnnotationItemNodeType) –

type(self) Qgis.AnnotationItemNodeType

Returns the node type.

See also

setType()

Return type

Qgis.AnnotationItemNodeType