QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
Public Member Functions | List of all members
QgsAnnotationItemEditOperationDeleteNode Class Reference

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

#include <qgsannotationitemeditoperation.h>

Inheritance diagram for QgsAnnotationItemEditOperationDeleteNode:
Inheritance graph
[legend]

Public Member Functions

 QgsAnnotationItemEditOperationDeleteNode (const QString &itemId, QgsVertexId nodeId, const QgsPoint &before)
 Constructor for QgsAnnotationItemEditOperationDeleteNode, where the node with the specified id and previous position before is deleted. More...
 
QgsPoint before () const
 Returns the node position before the delete occurred (in layer coordinates). More...
 
QgsVertexId nodeId () const
 Returns the deleted 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...
 
virtual Type type () const =0
 Returns the operation type. More...
 

Additional Inherited Members

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

Detailed Description

Annotation item edit operation consisting of deleting a node.

Since
QGIS 3.22

Definition at line 120 of file qgsannotationitemeditoperation.h.

Constructor & Destructor Documentation

◆ QgsAnnotationItemEditOperationDeleteNode()

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

Constructor for QgsAnnotationItemEditOperationDeleteNode, where the node with the specified id and previous position before is deleted.

Definition at line 53 of file qgsannotationitemeditoperation.cpp.

Member Function Documentation

◆ before()

QgsPoint QgsAnnotationItemEditOperationDeleteNode::before ( ) const
inline

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

Definition at line 140 of file qgsannotationitemeditoperation.h.

◆ nodeId()

QgsVertexId QgsAnnotationItemEditOperationDeleteNode::nodeId ( ) const
inline

Returns the deleted node ID.

Definition at line 135 of file qgsannotationitemeditoperation.h.

◆ type()

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

Returns the operation type.

Implements QgsAbstractAnnotationItemEditOperation.

Definition at line 61 of file qgsannotationitemeditoperation.cpp.


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