17#ifndef QGSANNOTATIONITEMEDITNODE_H
18#define QGSANNOTATIONITEMEDITNODE_H
50 SIP_PYOBJECT __repr__();
52 QString
str = QStringLiteral(
"<QgsAnnotationItemNode: %1 - %2 (%3, %4)>" ).arg( sipCpp->id().vertex )
54 .arg( sipCpp->point().x() )
55 .arg( sipCpp->point().y() );
56 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
100 return mId == other.mId && mType == other.mType && mPoint == other.mPoint;
105 return !( *
this == other );
AnnotationItemNodeType
Annotation item GUI flags.
@ VertexHandle
Node is a handle for manipulating vertices.
Contains information about a node used for editing an annotation item.
QgsAnnotationItemNode(const QgsVertexId &id, const QgsPointXY &point, Qgis::AnnotationItemNodeType type)
Constructor for QgsAnnotationItemNode, with the specified id, point and type.
void setPoint(QgsPointXY point)
Sets the node's position, in geographic coordinates.
Qgis::AnnotationItemNodeType type() const
Returns the node type.
QgsPointXY point() const
Returns the node's position, in geographic coordinates.
void setType(Qgis::AnnotationItemNodeType type)
Sets the node type.
bool operator==(const QgsAnnotationItemNode &other) const
QgsAnnotationItemNode()=default
Default constructor.
bool operator!=(const QgsAnnotationItemNode &other) const
QgsVertexId id() const
Returns the ID number of the node, used for uniquely identifying the node in the item.
A class to represent a 2D point.
QString qgsEnumValueToKey(const T &value, bool *returnOk=nullptr)
Returns the value for the given key of an enum.
Utility class for identifying a unique vertex within a geometry.