The class is used as a container of context for various read/write operations on other objects.
double angle() const
Returns the text's rotation angle, in degrees clockwise.
Contains information about the context of a rendering operation.
~QgsAnnotationPointTextItem() override
void setText(const QString &text)
Sets the text rendered by the item.
virtual bool writeXml(QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const =0
Writes the item's state into an XML element.
void setAngle(double angle)
Sets the text's rotation angle, in degrees clockwise.
void setPoint(QgsPointXY point)
Sets the point location of the text.
double ANALYSIS_EXPORT angle(QgsPoint *p1, QgsPoint *p2, QgsPoint *p3, QgsPoint *p4)
Calculates the angle between two segments (in 2 dimension, z-values are ignored)
An annotation item which renders a text string at a point location.
QString text() const
Returns the text rendered by the item.