QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsAnnotationItemEditOperationAddNode Class Reference

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

#include <qgsannotationitemeditoperation.h>

Inheritance diagram for QgsAnnotationItemEditOperationAddNode:
Inheritance graph
[legend]

Public Member Functions

 QgsAnnotationItemEditOperationAddNode (const QString &itemId, const QgsPoint &point)
 Constructor for QgsAnnotationItemEditOperationAddNode at the specified point.
 
QgsPoint point () const
 Returns the node position (in layer coordinates).
 
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
 

Detailed Description

Annotation item edit operation consisting of adding a node.

Since
QGIS 3.22

Definition at line 222 of file qgsannotationitemeditoperation.h.

Constructor & Destructor Documentation

◆ QgsAnnotationItemEditOperationAddNode()

QgsAnnotationItemEditOperationAddNode::QgsAnnotationItemEditOperationAddNode ( const QString &  itemId,
const QgsPoint point 
)

Constructor for QgsAnnotationItemEditOperationAddNode at the specified point.

Definition at line 118 of file qgsannotationitemeditoperation.cpp.

Member Function Documentation

◆ point()

QgsPoint QgsAnnotationItemEditOperationAddNode::point ( ) const
inline

Returns the node position (in layer coordinates).

Definition at line 236 of file qgsannotationitemeditoperation.h.

◆ type()

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

Returns the operation type.

Implements QgsAbstractAnnotationItemEditOperation.

Definition at line 125 of file qgsannotationitemeditoperation.cpp.


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