QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
15 #ifndef QGSEMBEDDEDSYMBOLRENDERER_H
16 #define QGSEMBEDDEDSYMBOLRENDERER_H
18 #include "qgis_core.h"
56 QgsFeatureRenderer::Capabilities
capabilities()
override;
94 std::unique_ptr<QgsSymbol> mDefaultSymbol;
99 #endif // QGSEMBEDDEDSYMBOLRENDERER_H
virtual QgsSymbol * originalSymbolForFeature(const QgsFeature &feature, QgsRenderContext &context) const
Returns symbol for feature.
The class is used as a container of context for various read/write operations on other objects.
virtual QgsFeatureRenderer::Capabilities capabilities()
Returns details about internals of this renderer.
Container of fields for a vector layer.
Contains information about the context of a rendering operation.
virtual QSet< QString > usedAttributes(const QgsRenderContext &context) const =0
Returns a list of attributes required by this renderer.
Abstract base class for all rendered symbols.
virtual void stopRender(QgsRenderContext &context)
Must be called when a render cycle has finished, to allow the renderer to clean up.
virtual bool usesEmbeddedSymbols() const
Returns true if the renderer uses embedded symbols for features.
virtual QDomElement save(QDomDocument &doc, const QgsReadWriteContext &context)
Stores renderer properties to an XML element.
Custom exception class for Coordinate Reference System related exceptions.
QList< QgsSymbol * > QgsSymbolList
virtual QgsFeatureRenderer * clone() const =0
Create a deep copy of this renderer.
virtual QgsSymbolList symbols(QgsRenderContext &context) const
Returns list of symbols used by the renderer.
virtual QgsSymbol * symbolForFeature(const QgsFeature &feature, QgsRenderContext &context) const =0
To be overridden.
A vector feature renderer which uses embedded feature symbology to render per-feature symbols.
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...
virtual void startRender(QgsRenderContext &context, const QgsFields &fields)
Must be called when a new render cycle is started.