QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
Public Member Functions | List of all members
QgsAnnotationItemEditOperationTranslateItem Class Reference

Annotation item edit operation consisting of translating (moving) an item. More...

#include <qgsannotationitemeditoperation.h>

Inheritance diagram for QgsAnnotationItemEditOperationTranslateItem:
Inheritance graph
[legend]

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) More...
 
QgsVertexId nodeId () const
 Returns the deleted node ID. More...
 
double translationX () const
 Returns the x-axis translation, in layer units. More...
 
double translationY () const
 Returns the y-axis translation, in layer units. 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...
 

Additional Inherited Members

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

Detailed Description

Annotation item edit operation consisting of translating (moving) an item.

Since
QGIS 3.22

Definition at line 182 of file qgsannotationitemeditoperation.h.

Constructor & Destructor Documentation

◆ QgsAnnotationItemEditOperationTranslateItem()

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.

Member Function Documentation

◆ nodeId()

QgsVertexId QgsAnnotationItemEditOperationTranslateItem::nodeId ( ) const
inline

Returns the deleted node ID.

Definition at line 197 of file qgsannotationitemeditoperation.h.

◆ translationX()

double QgsAnnotationItemEditOperationTranslateItem::translationX ( ) const
inline

Returns the x-axis translation, in layer units.

Since
translationY()

Definition at line 204 of file qgsannotationitemeditoperation.h.

◆ translationY()

double QgsAnnotationItemEditOperationTranslateItem::translationY ( ) const
inline

Returns the y-axis translation, in layer units.

Since
translationX()

Definition at line 211 of file qgsannotationitemeditoperation.h.

◆ type()

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

Returns the operation type.

Implements QgsAbstractAnnotationItemEditOperation.

Definition at line 78 of file qgsannotationitemeditoperation.cpp.


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