QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
18 #ifndef QGSSVGANNOTATION_H
19 #define QGSSVGANNOTATION_H
22 #include <QSvgRenderer>
23 #include "qgis_core.h"
51 void setFilePath(
const QString &file );
69 mutable QSvgRenderer mSvgRenderer;
73 #endif // QGSSVGANNOTATION_H
virtual void writeXml(QDomElement &elem, QDomDocument &doc, const QgsReadWriteContext &context) const =0
Writes the annotation state to a DOM element.
static QgsSvgAnnotation * create()
Returns a new QgsSvgAnnotation object.
virtual void readXml(const QDomElement &itemElem, const QgsReadWriteContext &context)=0
Restores the annotation's state from a DOM element.
virtual void renderAnnotation(QgsRenderContext &context, QSizeF size) const =0
Renders the annotation's contents to a target /a context at the specified /a size.
Abstract base class for annotation items which are drawn over a map.
virtual QgsAnnotation * clone() const =0
Clones the annotation, returning a new copy of the annotation reflecting the annotation's current sta...
QString filePath() const
Returns the file path for the source SVG file.