16 #ifndef QGSGEOMETRYGENERATORSYMBOLLAYERV2_H 17 #define QGSGEOMETRYGENERATORSYMBOLLAYERV2_H 19 #include "qgis_core.h" 64 void setGeometryExpression(
const QString &exp );
96 void setColor(
const QColor &color )
override;
105 std::unique_ptr<QgsExpression> mExpression;
117 #endif // QGSGEOMETRYGENERATORSYMBOLLAYERV2_H QgsSymbol * subSymbol() override
Returns the symbol's sub symbol, if present.
QString geometryExpression() const
Gets the expression to generate this geometry.
virtual QgsStringMap properties() const =0
Should be reimplemented by subclasses to return a string map that contains the configuration informat...
QMap< QString, QString > QgsStringMap
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 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
virtual bool isCompatibleWithSymbol(QgsSymbol *symbol) const
Returns if the layer can be used below the specified symbol.
virtual QSet< QString > usedAttributes(const QgsRenderContext &context) const
Returns the set of attributes referenced by the layer.
Contains information about the context of a rendering operation.
virtual void stopRender(QgsSymbolRenderContext &context)=0
QgsSymbol::SymbolType symbolType() const
Access the symbol type.
virtual void startRender(QgsSymbolRenderContext &context)=0
virtual QString layerType() const =0
Returns a string that represents this layer type.