25 return mCurrentItemBounds;
30 mCurrentItemBounds = bounds;
35 return mRenderContext;
40 mRenderContext = context;
60 double translatePixelsX,
double translatePixelsY )
65 , mTranslatePixelsX( translatePixelsX )
66 , mTranslatePixelsY( translatePixelsY )
100 , mTranslateX( translateX )
101 , mTranslateY( translateY )
102 , mTranslatePixelsX( translatePixelsX )
103 , mTranslatePixelsY( translatePixelsY )
Abstract base class for annotation item edit operations.
@ DeleteNode
Delete a node.
@ TranslateItem
Translate (move) an item.
QgsAbstractAnnotationItemEditOperation(const QString &itemId)
Constructor for QgsAbstractAnnotationItemEditOperation, for the specified item id.
virtual ~QgsAbstractAnnotationItemEditOperation()
void setCurrentItemBounds(const QgsRectangle &bounds)
Sets the current rendered bounds of the item, in the annotation layer's CRS.
QgsRectangle currentItemBounds() const
Returns the current rendered bounds of the item, in the annotation layer's CRS.
QgsRenderContext renderContext() const
Returns the render context associated with the edit operation.
void setRenderContext(const QgsRenderContext &context)
Sets the render context associated with the edit operation.
QgsAnnotationItemEditOperationAddNode(const QString &itemId, const QgsPoint &point)
Constructor for QgsAnnotationItemEditOperationAddNode at the specified point.
Type type() const override
Returns the operation type.
QgsAnnotationItemEditOperationDeleteNode(const QString &itemId, QgsVertexId nodeId, const QgsPoint &before)
Constructor for QgsAnnotationItemEditOperationDeleteNode, where the node with the specified id and pr...
Type type() const override
Returns the operation type.
Type type() const override
Returns the operation type.
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 fr...
Type type() const override
Returns the operation type.
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...
Point geometry type, with support for z-dimension and m-values.
A rectangle specified with double values.
Contains information about the context of a rendering operation.
Utility class for identifying a unique vertex within a geometry.