QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
Annotation item edit operation consisting of moving a node. More...
#include <qgsannotationitemeditoperation.h>
Public Member Functions | |
QgsAnnotationItemEditOperationMoveNode (const QString &itemId, QgsVertexId nodeId, const QgsPoint &before, const QgsPoint &after, double translatePixelsX=0, double translatePixelsY=0) | |
Constructor for QgsAnnotationItemEditOperationMoveNode, where the node with the specified id moves from before to after (in layer coordinates). | |
QgsPoint | after () const |
Returns the node position after the move occurred (in layer coordinates). | |
QgsPoint | before () const |
Returns the node position before the move occurred (in layer coordinates). | |
QgsVertexId | nodeId () const |
Returns the associated node ID. | |
double | translationXPixels () const |
Returns the x-axis translation, in pixels. | |
double | translationYPixels () const |
Returns the y-axis translation, in pixels. | |
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 moving a node.
Definition at line 122 of file qgsannotationitemeditoperation.h.
QgsAnnotationItemEditOperationMoveNode::QgsAnnotationItemEditOperationMoveNode | ( | const QString & | itemId, |
QgsVertexId | nodeId, | ||
const QgsPoint & | before, | ||
const QgsPoint & | after, | ||
double | translatePixelsX = 0 , |
||
double | translatePixelsY = 0 |
||
) |
Constructor for QgsAnnotationItemEditOperationMoveNode, where the node with the specified id moves from before to after (in layer coordinates).
Since QGIS 3.40 the translatePixelsX and translatePixelsY arguments specify the translation in pixels.
Definition at line 59 of file qgsannotationitemeditoperation.cpp.
|
inline |
Returns the node position after the move occurred (in layer coordinates).
Definition at line 154 of file qgsannotationitemeditoperation.h.
|
inline |
Returns the node position before the move occurred (in layer coordinates).
Definition at line 147 of file qgsannotationitemeditoperation.h.
|
inline |
Returns the associated node ID.
Definition at line 140 of file qgsannotationitemeditoperation.h.
|
inline |
Returns the x-axis translation, in pixels.
Definition at line 162 of file qgsannotationitemeditoperation.h.
|
inline |
Returns the y-axis translation, in pixels.
Definition at line 170 of file qgsannotationitemeditoperation.h.
|
overridevirtual |
Returns the operation type.
Implements QgsAbstractAnnotationItemEditOperation.
Definition at line 71 of file qgsannotationitemeditoperation.cpp.