15 #ifndef QGSEMBEDDEDSYMBOLRENDERER_H
16 #define QGSEMBEDDEDSYMBOLRENDERER_H
18 #include "qgis_core.h"
53 QSet<QString> usedAttributes( const
QgsRenderContext &context ) const override;
54 bool usesEmbeddedSymbols() const override;
94 std::unique_ptr<QgsSymbol> mDefaultSymbol;
Custom exception class for Coordinate Reference System related exceptions.
A vector feature renderer which uses embedded feature symbology to render per-feature symbols.
~QgsEmbeddedSymbolRenderer() override
virtual QgsSymbol * symbolForFeature(const QgsFeature &feature, QgsRenderContext &context) const =0
To be overridden.
virtual QgsSymbol * originalSymbolForFeature(const QgsFeature &feature, QgsRenderContext &context) const
Returns symbol for feature.
virtual void startRender(QgsRenderContext &context, const QgsFields &fields)
Must be called when a new render cycle is started.
virtual bool renderFeature(const QgsFeature &feature, QgsRenderContext &context, int layer=-1, bool selected=false, bool drawVertexMarker=false) SIP_THROW(QgsCsException)
Render a feature using this renderer in the given context.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Container of fields for a vector layer.
The class is used as a container of context for various read/write operations on other objects.
Contains information about the context of a rendering operation.
Abstract base class for all rendered symbols.
QList< QgsSymbol * > QgsSymbolList