18#ifndef QGSANNOTATIONMARKERITEM_H
19#define QGSANNOTATIONMARKERITEM_H
42 QString
type()
const override;
97 std::unique_ptr< QgsMarkerSymbol > mSymbol;
AnnotationItemEditOperationResult
Results from an edit operation on an annotation item.
QFlags< AnnotationItemFlag > AnnotationItemFlags
Annotation item flags.
Abstract base class for annotation item edit operations.
Encapsulates the context for an annotation item edit operation.
Encapsulates the transient results of an in-progress annotation edit operation.
virtual bool writeXml(QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const =0
Writes the item's state into an XML element.
virtual QList< QgsAnnotationItemNode > nodesV2(const QgsAnnotationItemEditContext &context) const
Returns the nodes for the item, used for editing the item.
virtual QString type() const =0
Returns a unique (untranslated) string identifying the type of item.
virtual void render(QgsRenderContext &context, QgsFeedback *feedback)=0
Renders the item to the specified render context.
virtual QgsAnnotationItemEditOperationTransientResults * transientEditResultsV2(QgsAbstractAnnotationItemEditOperation *operation, const QgsAnnotationItemEditContext &context)
Retrieves the results of a transient (in progress) edit operation on the item.
virtual Qgis::AnnotationItemFlags flags() const
Returns item flags.
virtual Qgis::AnnotationItemEditOperationResult applyEditV2(QgsAbstractAnnotationItemEditOperation *operation, const QgsAnnotationItemEditContext &context)
Applies an edit operation to the item.
An annotation item which renders a marker symbol at a point location.
QgsAnnotationMarkerItem(const QgsPoint &point)
Constructor for QgsAnnotationMarkerItem, at the specified point.
~QgsAnnotationMarkerItem() override
QgsRectangle boundingBox() const override
Returns the bounding box of the item's geographic location, in the parent layer's coordinate referenc...
void setGeometry(const QgsPoint &geometry)
Sets the point geometry location of the marker.
static QgsAnnotationMarkerItem * create()
Creates a new marker annotation item.
bool readXml(const QDomElement &element, const QgsReadWriteContext &context) override
Reads the item's state from the given DOM element.
QgsPointXY geometry() const
Returns the point geometry of the marker.
QgsAnnotationMarkerItem * clone() const override
Returns a clone of the item.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
A marker symbol type, for rendering Point and MultiPoint geometries.
Point geometry type, with support for z-dimension and m-values.
A container for the context for various read/write operations on objects.
A rectangle specified with double values.
Contains information about the context of a rendering operation.