Class: QgsAnnotationItemNode¶
Contains information about a node used for editing an annotation item.
Added in version 3.22.
List of all members, including inherited members
Constructor
Methods
Returns the mouse cursor shape to use when hovering the node. |
|
Returns the ID number of the node, used for uniquely identifying the node in the item. |
|
Returns the node's position, in geographic coordinates. |
|
Sets the mouse cursor shape to use when hovering the node. |
|
Sets the node's position, in geographic coordinates. |
|
Sets the node type. |
|
Returns the node type. |
- class qgis.core.QgsAnnotationItemNode[source]¶
Bases:
object- __init__()¶
- __init__(id: QgsVertexId, point: QgsPointXY, type: Qgis.AnnotationItemNodeType, cursor: Qt.CursorShape = Qt.CursorShape.ArrowCursor)
Constructor for QgsAnnotationItemNode, with the specified
id,pointandtype.- Parameters:
id (QgsVertexId)
point (QgsPointXY)
type (Qgis.AnnotationItemNodeType)
cursor (Qt.CursorShape = Qt.CursorShape.ArrowCursor)
- __init__(a0: QgsAnnotationItemNode)
- Parameters:
- cursor(self) Qt.CursorShape[source]¶
Returns the mouse cursor shape to use when hovering the node.
See also
Added in version 3.34.
- Return type:
Qt.CursorShape
- id(self) QgsVertexId[source]¶
Returns the ID number of the node, used for uniquely identifying the node in the item.
- Return type:
- point(self) QgsPointXY[source]¶
Returns the node’s position, in geographic coordinates.
The coordinates will match the annotation item’s CRS.
See also
- Return type:
- setCursor(self, shape: Qt.CursorShape)[source]¶
Sets the mouse cursor
shapeto use when hovering the node.See also
Added in version 3.34.
- Parameters:
shape (Qt.CursorShape)
- setPoint(self, point: QgsPointXY)[source]¶
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)[source]¶
Sets the node type.
See also
- Parameters:
type (Qgis.AnnotationItemNodeType)
- type(self) Qgis.AnnotationItemNodeType[source]¶
Returns the node type.
See also
- Return type: