QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
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, double translatePixelsX=0, double translatePixelsY=0)
 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 translationXPixels () const
 Returns the x-axis translation, in pixels.
 
double translationY () const
 Returns the y-axis translation, in layer units.
 
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
 

Detailed Description

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

Since
QGIS 3.22

Definition at line 250 of file qgsannotationitemeditoperation.h.

Constructor & Destructor Documentation

◆ QgsAnnotationItemEditOperationTranslateItem()

QgsAnnotationItemEditOperationTranslateItem::QgsAnnotationItemEditOperationTranslateItem ( const QString &  itemId,
double  translateX,
double  translateY,
double  translatePixelsX = 0,
double  translatePixelsY = 0 
)

Constructor for QgsAnnotationItemEditOperationTranslateItem, where the node with the specified id and translation (in map units)

Since QGIS 3.40 the translatePixelsX and translatePixelsY arguments specify the translation in pixels.

Definition at line 98 of file qgsannotationitemeditoperation.cpp.

Member Function Documentation

◆ nodeId()

QgsVertexId QgsAnnotationItemEditOperationTranslateItem::nodeId ( ) const
inline

Returns the deleted node ID.

Definition at line 268 of file qgsannotationitemeditoperation.h.

◆ translationX()

double QgsAnnotationItemEditOperationTranslateItem::translationX ( ) const
inline

Returns the x-axis translation, in layer units.

Since
translationY()

Definition at line 275 of file qgsannotationitemeditoperation.h.

◆ translationXPixels()

double QgsAnnotationItemEditOperationTranslateItem::translationXPixels ( ) const
inline

Returns the x-axis translation, in pixels.

Since
translationYPixels()
QGIS 3.40

Definition at line 290 of file qgsannotationitemeditoperation.h.

◆ translationY()

double QgsAnnotationItemEditOperationTranslateItem::translationY ( ) const
inline

Returns the y-axis translation, in layer units.

Since
translationX()

Definition at line 282 of file qgsannotationitemeditoperation.h.

◆ translationYPixels()

double QgsAnnotationItemEditOperationTranslateItem::translationYPixels ( ) const
inline

Returns the y-axis translation, in pixels.

Since
translationXPixels()
QGIS 3.40

Definition at line 298 of file qgsannotationitemeditoperation.h.

◆ type()

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

Returns the operation type.

Implements QgsAbstractAnnotationItemEditOperation.

Definition at line 108 of file qgsannotationitemeditoperation.cpp.


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