Class: QgsAnnotationItemEditOperationMoveNode

class qgis.core.QgsAnnotationItemEditOperationMoveNode

Bases: QgsAbstractAnnotationItemEditOperation

Annotation item edit operation consisting of moving a node

New in version 3.22.

QgsAnnotationItemEditOperationMoveNode(itemId: str, nodeId: QgsVertexId, before: QgsPoint, after: QgsPoint) Constructor for QgsAnnotationItemEditOperationMoveNode, where the node with the specified id moves from before to after (in layer coordinates).

QgsAnnotationItemEditOperationMoveNode(QgsAnnotationItemEditOperationMoveNode)

Methods

after

Returns the node position after the move occurred (in layer coordinates).

before

Returns the node position before the move occurred (in layer coordinates).

nodeId

Returns the associated node ID.

type

rtype

QgsAbstractAnnotationItemEditOperation.Type

after(self) QgsPoint

Returns the node position after the move occurred (in layer coordinates).

See also

before()

Return type

QgsPoint

before(self) QgsPoint

Returns the node position before the move occurred (in layer coordinates).

See also

after()

Return type

QgsPoint

nodeId(self) QgsVertexId

Returns the associated node ID.

Return type

QgsVertexId

type(self) QgsAbstractAnnotationItemEditOperation.Type
Return type

QgsAbstractAnnotationItemEditOperation.Type