mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -04:00
edit operations on annotation layers, with initial implementation as QgsAnnotationItemEditOperationMoveNode This class encapsulates edit operations which apply to annotation layers/items
89 lines
2.5 KiB
Plaintext
89 lines
2.5 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/annotations/qgsannotationitemeditoperation.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
class QgsAbstractAnnotationItemEditOperation
|
|
{
|
|
%Docstring(signature="appended")
|
|
Abstract base class for annotation item edit operations
|
|
|
|
.. versionadded:: 3.22
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsannotationitemeditoperation.h"
|
|
%End
|
|
public:
|
|
|
|
QgsAbstractAnnotationItemEditOperation( const QString &itemId );
|
|
%Docstring
|
|
Constructor for QgsAbstractAnnotationItemEditOperation, for the specified item id.
|
|
%End
|
|
|
|
virtual ~QgsAbstractAnnotationItemEditOperation();
|
|
|
|
QString itemId() const;
|
|
%Docstring
|
|
Returns the associated item ID.
|
|
%End
|
|
|
|
protected:
|
|
|
|
|
|
};
|
|
|
|
class QgsAnnotationItemEditOperationMoveNode : QgsAbstractAnnotationItemEditOperation
|
|
{
|
|
%Docstring(signature="appended")
|
|
Annotation item edit operation consisting of moving a node
|
|
|
|
.. versionadded:: 3.22
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsannotationitemeditoperation.h"
|
|
%End
|
|
public:
|
|
|
|
QgsAnnotationItemEditOperationMoveNode( const QString &itemId, QgsVertexId nodeId, const QgsPointXY &before, const QgsPointXY &after );
|
|
%Docstring
|
|
Constructor for QgsAnnotationItemEditOperationMoveNode, where the node with the specified ``id`` moves
|
|
from ``before`` to ``after`` (in layer coordinates).
|
|
%End
|
|
|
|
QgsVertexId nodeId() const;
|
|
%Docstring
|
|
Returns the associated node ID.
|
|
%End
|
|
|
|
QgsPointXY before() const;
|
|
%Docstring
|
|
Returns the node position before the move occurred (in layer coordinates).
|
|
|
|
.. seealso:: :py:func:`after`
|
|
%End
|
|
|
|
QgsPointXY after() const;
|
|
%Docstring
|
|
Returns the node position after the move occurred (in layer coordinates).
|
|
|
|
.. seealso:: :py:func:`before`
|
|
%End
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/annotations/qgsannotationitemeditoperation.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|