QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
Annotation item edit operation consisting of deleting a node. More...
#include <qgsannotationitemeditoperation.h>
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. | |
QgsPoint | before () const |
Returns the node position before the delete occurred (in layer coordinates). | |
QgsVertexId | nodeId () const |
Returns the deleted node ID. | |
Type | type () const override |
Returns the operation type. | |
Public Member Functions inherited from QgsAbstractAnnotationItemEditOperation | |
QgsAbstractAnnotationItemEditOperation (const QString &itemId) | |
Constructor for QgsAbstractAnnotationItemEditOperation, for the specified item id. | |
virtual | ~QgsAbstractAnnotationItemEditOperation () |
QString | itemId () const |
Returns the associated item ID. | |
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 |
Annotation item edit operation consisting of deleting a node.
Definition at line 188 of file qgsannotationitemeditoperation.h.
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 81 of file qgsannotationitemeditoperation.cpp.
|
inline |
Returns the node position before the delete occurred (in layer coordinates).
Definition at line 208 of file qgsannotationitemeditoperation.h.
|
inline |
Returns the deleted node ID.
Definition at line 203 of file qgsannotationitemeditoperation.h.
|
overridevirtual |
Returns the operation type.
Implements QgsAbstractAnnotationItemEditOperation.
Definition at line 89 of file qgsannotationitemeditoperation.cpp.