1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/symbology/qgsnullsymbolrenderer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsNullSymbolRenderer : QgsFeatureRenderer
{
%Docstring(signature="appended")
Null symbol renderer, which draws no symbols for features by default,
but allows for labeling and diagrams for the layer.
Selected features will also be drawn with a default symbol.
%End
%TypeHeaderCode
#include "qgsnullsymbolrenderer.h"
%End
public:
QgsNullSymbolRenderer();
~QgsNullSymbolRenderer();
virtual QgsSymbol *symbolForFeature( const QgsFeature &feature, QgsRenderContext &context ) const;
virtual QgsSymbol *originalSymbolForFeature( const QgsFeature &feature, QgsRenderContext &context ) const;
virtual bool renderFeature( const QgsFeature &feature, QgsRenderContext &context, int layer = -1, bool selected = false, bool drawVertexMarker = false ) throw( QgsCsException );
virtual void stopRender( QgsRenderContext &context );
virtual bool willRenderFeature( const QgsFeature &feature, QgsRenderContext &context ) const;
virtual QSet<QString> usedAttributes( const QgsRenderContext &context ) const;
virtual QString dump() const;
virtual QgsFeatureRenderer *clone() const /Factory/;
virtual QgsSymbolList symbols( QgsRenderContext &context ) const;
static QgsFeatureRenderer *create( QDomElement &element, const QgsReadWriteContext &context ) /Factory/;
%Docstring
Creates a null renderer from XML element.
:param element: DOM element
:param context: reading context
:return: new null symbol renderer
%End
virtual QDomElement save( QDomDocument &doc, const QgsReadWriteContext &context );
static QgsNullSymbolRenderer *convertFromRenderer( const QgsFeatureRenderer *renderer ) /Factory/;
%Docstring
Creates a QgsNullSymbolRenderer from an existing renderer.
:param renderer: renderer to convert from
:return: a new renderer if the conversion was possible, otherwise
``None``.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/symbology/qgsnullsymbolrenderer.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|