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 forQgsAnnotationItemNode
, with the specifiedid
,point
andtype
.QgsAnnotationItemNode(
QgsAnnotationItemNode
)- id(self) QgsVertexId ¶
Returns the ID number of the node, used for uniquely identifying the node in the item.
- Return type
- point(self) QgsPointXY ¶
Returns the node’s position, in geographic coordinates.
The coordinates will match the annotation item’s CRS.
See also
- Return type
- setPoint(self, point: QgsPointXY)¶
Sets the node’s position, in geographic coordinates.
The coordinates will match the annotation item’s CRS.
See also
- Parameters
point (QgsPointXY) –
- setType(self, type: Qgis.AnnotationItemNodeType)¶
Sets the node type.
See also
- Parameters
type (Qgis.AnnotationItemNodeType) –
- type(self) Qgis.AnnotationItemNodeType ¶
Returns the node type.
See also
- Return type