QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
Annotation item edit operation consisting of translating (moving) an item. More...
#include <qgsannotationitemeditoperation.h>
Public Member Functions | |
QgsAnnotationItemEditOperationTranslateItem (const QString &itemId, double translateX, double translateY) | |
Constructor for QgsAnnotationItemEditOperationTranslateItem, where the node with the specified id and translation (in map units) | |
QgsVertexId | nodeId () const |
Returns the deleted node ID. | |
double | translationX () const |
Returns the x-axis translation, in layer units. | |
double | translationY () const |
Returns the y-axis translation, in layer units. | |
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 translating (moving) an item.
Definition at line 182 of file qgsannotationitemeditoperation.h.
QgsAnnotationItemEditOperationTranslateItem::QgsAnnotationItemEditOperationTranslateItem | ( | const QString & | itemId, |
double | translateX, | ||
double | translateY | ||
) |
Constructor for QgsAnnotationItemEditOperationTranslateItem, where the node with the specified id and translation (in map units)
Definition at line 70 of file qgsannotationitemeditoperation.cpp.
|
inline |
Returns the deleted node ID.
Definition at line 197 of file qgsannotationitemeditoperation.h.
|
inline |
Returns the x-axis translation, in layer units.
Definition at line 204 of file qgsannotationitemeditoperation.h.
|
inline |
Returns the y-axis translation, in layer units.
Definition at line 211 of file qgsannotationitemeditoperation.h.
|
overridevirtual |
Returns the operation type.
Implements QgsAbstractAnnotationItemEditOperation.
Definition at line 78 of file qgsannotationitemeditoperation.cpp.