QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
Public Member Functions | List of all members
QgsAnnotationItemEditOperationMoveNode Class Reference

Annotation item edit operation consisting of moving a node. More...

#include <qgsannotationitemeditoperation.h>

Inheritance diagram for QgsAnnotationItemEditOperationMoveNode:
Inheritance graph
[legend]

Public Member Functions

 QgsAnnotationItemEditOperationMoveNode (const QString &itemId, QgsVertexId nodeId, const QgsPoint &before, const QgsPoint &after)
 Constructor for QgsAnnotationItemEditOperationMoveNode, where the node with the specified id moves from before to after (in layer coordinates). More...
 
QgsPoint after () const
 Returns the node position after the move occurred (in layer coordinates). More...
 
QgsPoint before () const
 Returns the node position before the move occurred (in layer coordinates). More...
 
QgsVertexId nodeId () const
 Returns the associated node ID. More...
 
Type type () const override
 Returns the operation type. More...
 
- Public Member Functions inherited from QgsAbstractAnnotationItemEditOperation
 QgsAbstractAnnotationItemEditOperation (const QString &itemId)
 Constructor for QgsAbstractAnnotationItemEditOperation, for the specified item id. More...
 
virtual ~QgsAbstractAnnotationItemEditOperation ()
 
QString itemId () const
 Returns the associated item ID. More...
 

Additional Inherited Members

- Public Types inherited from QgsAbstractAnnotationItemEditOperation
enum  Type : int { Type::MoveNode, Type::DeleteNode, Type::AddNode, Type::TranslateItem }
 Operation type. More...
 
- Protected Attributes inherited from QgsAbstractAnnotationItemEditOperation
QString mItemId
 

Detailed Description

Annotation item edit operation consisting of moving a node.

Since
QGIS 3.22

Definition at line 75 of file qgsannotationitemeditoperation.h.

Constructor & Destructor Documentation

◆ QgsAnnotationItemEditOperationMoveNode()

QgsAnnotationItemEditOperationMoveNode::QgsAnnotationItemEditOperationMoveNode ( const QString &  itemId,
QgsVertexId  nodeId,
const QgsPoint before,
const QgsPoint after 
)

Constructor for QgsAnnotationItemEditOperationMoveNode, where the node with the specified id moves from before to after (in layer coordinates).

Definition at line 34 of file qgsannotationitemeditoperation.cpp.

Member Function Documentation

◆ after()

QgsPoint QgsAnnotationItemEditOperationMoveNode::after ( ) const
inline

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

See also
before()

Definition at line 104 of file qgsannotationitemeditoperation.h.

◆ before()

QgsPoint QgsAnnotationItemEditOperationMoveNode::before ( ) const
inline

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

See also
after()

Definition at line 97 of file qgsannotationitemeditoperation.h.

◆ nodeId()

QgsVertexId QgsAnnotationItemEditOperationMoveNode::nodeId ( ) const
inline

Returns the associated node ID.

Definition at line 90 of file qgsannotationitemeditoperation.h.

◆ type()

QgsAbstractAnnotationItemEditOperation::Type QgsAnnotationItemEditOperationMoveNode::type ( ) const
overridevirtual

Returns the operation type.

Implements QgsAbstractAnnotationItemEditOperation.

Definition at line 43 of file qgsannotationitemeditoperation.cpp.


The documentation for this class was generated from the following files: