18#ifndef QGSSVGANNOTATION_H
19#define QGSSVGANNOTATION_H
24#include <QSvgRenderer>
69 mutable QSvgRenderer mSvgRenderer;
virtual void renderAnnotation(QgsRenderContext &context, QSizeF size) const =0
Renders the annotation's contents to a target /a context at the specified /a size.
virtual void readXml(const QDomElement &itemElem, const QgsReadWriteContext &context)=0
Restores the annotation's state from a DOM element.
QgsAnnotation(QObject *parent=nullptr)
Constructor for QgsAnnotation.
virtual QgsAnnotation * clone() const =0
Clones the annotation, returning a new copy of the annotation reflecting the annotation's current sta...
virtual void writeXml(QDomElement &elem, QDomDocument &doc, const QgsReadWriteContext &context) const =0
Writes the annotation state to a DOM element.
A container for the context for various read/write operations on objects.
Contains information about the context of a rendering operation.
QgsSvgAnnotation(QObject *parent=nullptr)
Constructor for QgsSvgAnnotation.
void setFilePath(const QString &file)
Sets the file path for the source SVG file.
QString filePath() const
Returns the file path for the source SVG file.
static QgsSvgAnnotation * create()
Returns a new QgsSvgAnnotation object.