QGIS/python/core/annotations/qgssvgannotation.sip
Nyall Dawson 4058f4734b Annotations are now handled at a project level
This commit implements a new QgsAnnotationManager class, which
handles storage, writing and retrieval of annotations.

QgsProject has an annotationManager() attached to it. Map canvases
sync their visible QgsMapCanvasAnnotationItems to the annotations
contained within the project's annotation manager.

This moves all management, storage and retrieval of annotations
up to core and out of app/canvas.
2017-01-30 14:57:16 +10:00

23 lines
546 B
Plaintext

class QgsSvgAnnotation : QgsAnnotation
{
%TypeHeaderCode
#include <qgssvgannotation.h>
%End
public:
QgsSvgAnnotation( QObject* parent /TransferThis/ = nullptr );
virtual void writeXml( QDomElement& elem, QDomDocument & doc ) const;
virtual void readXml( const QDomElement& itemElem, const QDomDocument& doc );
void setFilePath( const QString& file );
QString filePath() const;
static QgsSvgAnnotation* create() /Factory/;
protected:
void renderAnnotation( QgsRenderContext& context, QSizeF size ) const;
};