2017-06-06 11:03:05 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/symbology-ng/qgssinglesymbolrenderer.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
2016-08-06 11:01:42 +02:00
|
|
|
class QgsSingleSymbolRenderer : QgsFeatureRenderer
|
2012-09-24 02:28:15 +02:00
|
|
|
{
|
2017-06-06 11:03:05 +02:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
%TypeHeaderCode
|
2017-06-06 11:03:05 +02:00
|
|
|
#include "qgssinglesymbolrenderer.h"
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsSingleSymbolRenderer( QgsSymbol *symbol /Transfer/ );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual QgsSymbol *symbolForFeature( QgsFeature &feature, QgsRenderContext &context );
|
|
|
|
virtual QgsSymbol *originalSymbolForFeature( QgsFeature &feature, QgsRenderContext &context );
|
|
|
|
virtual void startRender( QgsRenderContext &context, const QgsFields &fields );
|
|
|
|
virtual void stopRender( QgsRenderContext &context );
|
|
|
|
virtual QSet<QString> usedAttributes( const QgsRenderContext &context ) const;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsSymbol *symbol() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QgsSymbol
|
|
|
|
%End
|
2017-05-01 18:13:15 +02:00
|
|
|
void setSymbol( QgsSymbol *s /Transfer/ );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2013-07-22 21:41:44 +02:00
|
|
|
virtual QString dump() const;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual QgsSingleSymbolRenderer *clone() const /Factory/;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
virtual void toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap &props = QgsStringMap() ) const;
|
2017-05-01 18:13:15 +02:00
|
|
|
static QgsFeatureRenderer *createFromSld( QDomElement &element, QgsWkbTypes::GeometryType geomType );
|
2017-06-07 16:07:17 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QgsFeatureRenderer
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2016-08-06 11:01:42 +02:00
|
|
|
virtual QgsFeatureRenderer::Capabilities capabilities();
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual QgsSymbolList symbols( QgsRenderContext &context );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
static QgsFeatureRenderer *create( QDomElement &element, const QgsReadWriteContext &context ) /Factory/;
|
|
|
|
%Docstring
|
|
|
|
create renderer from XML element
|
|
|
|
:rtype: QgsFeatureRenderer
|
|
|
|
%End
|
|
|
|
virtual QDomElement save( QDomDocument &doc, const QgsReadWriteContext &context );
|
2012-09-24 02:28:15 +02:00
|
|
|
virtual QgsLegendSymbologyList legendSymbologyItems( QSize iconSize );
|
2014-09-01 11:05:51 +07:00
|
|
|
virtual QgsLegendSymbolListV2 legendSymbolItemsV2() const;
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual QSet< QString > legendKeysForFeature( QgsFeature &feature, QgsRenderContext &context );
|
|
|
|
virtual void setLegendSymbolItem( const QString &key, QgsSymbol *symbol /Transfer/ );
|
2016-03-01 15:30:23 +11:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
static QgsSingleSymbolRenderer *convertFromRenderer( const QgsFeatureRenderer *renderer ) /Factory/;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
|
|
|
:return: a new renderer if the conversion was possible, otherwise 0.
|
|
|
|
:rtype: QgsSingleSymbolRenderer
|
|
|
|
%End
|
|
|
|
|
|
|
|
protected:
|
2014-08-24 08:31:36 +08:00
|
|
|
|
2014-01-14 17:23:16 +01:00
|
|
|
private:
|
2016-08-06 11:01:42 +02:00
|
|
|
QgsSingleSymbolRenderer( const QgsSingleSymbolRenderer & );
|
2017-05-03 07:45:22 +02:00
|
|
|
QgsSingleSymbolRenderer &operator=( const QgsSingleSymbolRenderer & );
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QgsSingleSymbolRenderer
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
2017-06-06 11:03:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/symbology-ng/qgssinglesymbolrenderer.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|