16 #ifndef QGSGEOMETRYGENERATORSYMBOLLAYERV2_H 17 #define QGSGEOMETRYGENERATORSYMBOLLAYERV2_H 19 #include "qgis_core.h" 64 void setGeometryExpression(
const QString &exp );
97 void setColor(
const QColor &color )
override;
106 std::unique_ptr<QgsExpression> mExpression;
118 #endif // QGSGEOMETRYGENERATORSYMBOLLAYERV2_H QgsSymbol * subSymbol() override
Returns the symbol's sub symbol, if present.
QString geometryExpression() const
Gets the expression to generate this geometry.
Abstract base class for all rendered symbols.
virtual bool isCompatibleWithSymbol(QgsSymbol *symbol) const
Returns if the layer can be used below the specified symbol.
virtual QgsStringMap properties() const =0
Should be reimplemented by subclasses to return a string map that contains the configuration informat...
QMap< QString, QString > QgsStringMap
A marker symbol type, for rendering Point and MultiPoint geometries.
A line symbol type, for rendering LineString and MultiLineString geometries.
QgsSymbol::SymbolType symbolType() const
Access the symbol type.
virtual void setColor(const QColor &color)
The fill color.
SymbolType
Type of the symbol.
virtual bool setSubSymbol(QgsSymbol *symbol)
Sets layer's subsymbol. takes ownership of the passed symbol.
virtual bool hasDataDefinedProperties() const
Returns true if the symbol layer (or any of its sub-symbols) contains data defined properties...
virtual QgsSymbolLayer * clone() const =0
Shall be reimplemented by subclasses to create a deep copy of the instance.
virtual void drawPreviewIcon(QgsSymbolRenderContext &context, QSize size)=0
Contains information about the context of a rendering operation.
virtual void stopRender(QgsSymbolRenderContext &context)=0
virtual QSet< QString > usedAttributes(const QgsRenderContext &context) const
Returns the set of attributes referenced by the layer.
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
virtual void startRender(QgsSymbolRenderContext &context)=0
virtual QString layerType() const =0
Returns a string that represents this layer type.