QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSGEOMETRYGENERATORSYMBOLLAYER_H
17 #define QGSGEOMETRYGENERATORSYMBOLLAYER_H
19 #include "qgis_core.h"
65 void setGeometryExpression( const QString &exp );
70 QString geometryExpression()
const {
return mExpression->expression(); }
98 void setColor(
const QColor &color )
override;
107 std::unique_ptr<QgsExpression> mExpression;
108 std::unique_ptr<QgsFillSymbol> mFillSymbol;
109 std::unique_ptr<QgsLineSymbol> mLineSymbol;
110 std::unique_ptr<QgsMarkerSymbol> mMarkerSymbol;
118 bool mRenderingFeature =
false;
119 bool mHasRenderedFeature =
false;
122 #endif // QGSGEOMETRYGENERATORSYMBOLLAYER_H
virtual bool setSubSymbol(QgsSymbol *symbol)
Sets layer's subsymbol. takes ownership of the passed symbol.
virtual void startFeatureRender(const QgsFeature &feature, QgsRenderContext &context)
Called before the layer will be rendered for a particular feature.
virtual bool isCompatibleWithSymbol(QgsSymbol *symbol) const
Returns if the layer can be used below the specified symbol.
QgsSymbol * subSymbol() override
Returns the symbol's sub symbol, if present.
virtual void setColor(const QColor &color)
The fill color.
virtual bool hasDataDefinedProperties() const
Returns true if the symbol layer (or any of its sub-symbols) contains data defined properties.
Contains information about the context of a rendering operation.
Abstract base class for all rendered symbols.
virtual QgsSymbolLayer * clone() const =0
Shall be reimplemented by subclasses to create a deep copy of the instance.
virtual void stopFeatureRender(const QgsFeature &feature, QgsRenderContext &context)
Called after the layer has been rendered for a particular feature.
~QgsGeometryGeneratorSymbolLayer() override
virtual QSet< QString > usedAttributes(const QgsRenderContext &context) const
Returns the set of attributes referenced by the layer.
QMap< QString, QString > QgsStringMap
virtual void stopRender(QgsSymbolRenderContext &context)=0
Called after a set of rendering operations has finished on the supplied render context.
virtual QString layerType() const =0
Returns a string that represents this layer type.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
SymbolType
Type of the symbol.
virtual void startRender(QgsSymbolRenderContext &context)=0
Called before a set of rendering operations commences on the supplied render context.
QgsSymbol::SymbolType symbolType() const
Access the symbol type.