2017-04-02 21:24:19 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/annotations/qgssvgannotation.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsSvgAnnotation: QgsAnnotation
|
2017-01-26 18:02:52 +10:00
|
|
|
{
|
2017-04-02 21:24:19 +10:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
An annotation which renders the contents of an SVG file.
|
|
|
|
|
2017-04-02 21:24:19 +10:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
2017-01-26 18:02:52 +10:00
|
|
|
%TypeHeaderCode
|
2017-04-02 21:24:19 +10:00
|
|
|
#include "qgssvgannotation.h"
|
2017-01-26 18:02:52 +10:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-04-02 21:24:19 +10:00
|
|
|
QgsSvgAnnotation( QObject *parent /TransferThis/ = 0 );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsSvgAnnotation.
|
2017-04-02 21:24:19 +10:00
|
|
|
%End
|
|
|
|
|
2017-04-20 13:39:36 +10:00
|
|
|
virtual QgsSvgAnnotation *clone() const /Factory/;
|
|
|
|
|
2017-04-20 13:48:50 +02:00
|
|
|
|
2017-05-12 17:31:01 +08:00
|
|
|
virtual void writeXml( QDomElement &elem, QDomDocument &doc, const QgsReadWriteContext &context ) const;
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2017-05-12 17:31:01 +08:00
|
|
|
virtual void readXml( const QDomElement &itemElem, const QgsReadWriteContext &context );
|
2017-01-26 18:02:52 +10:00
|
|
|
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2017-04-02 21:24:19 +10:00
|
|
|
void setFilePath( const QString &file );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the file path for the source SVG file.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`filePath`
|
2017-04-02 21:24:19 +10:00
|
|
|
%End
|
2017-01-26 18:02:52 +10:00
|
|
|
|
|
|
|
QString filePath() const;
|
2017-04-02 21:24:19 +10:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the file path for the source SVG file.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setFilePath`
|
2017-04-02 21:24:19 +10:00
|
|
|
%End
|
2017-01-30 14:57:16 +10:00
|
|
|
|
2017-04-02 21:24:19 +10:00
|
|
|
static QgsSvgAnnotation *create() /Factory/;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns a new QgsSvgAnnotation object.
|
2017-04-02 21:24:19 +10:00
|
|
|
%End
|
2017-01-30 14:57:16 +10:00
|
|
|
|
2017-01-26 18:02:52 +10:00
|
|
|
protected:
|
|
|
|
|
2017-04-18 11:00:13 +10:00
|
|
|
virtual void renderAnnotation( QgsRenderContext &context, QSizeF size ) const;
|
2017-01-26 18:02:52 +10:00
|
|
|
|
2017-04-20 13:48:50 +02:00
|
|
|
|
2017-01-26 18:02:52 +10:00
|
|
|
};
|
2017-04-02 21:24:19 +10:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/annotations/qgssvgannotation.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|