QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
16 #ifndef QGSMASKSYMBOLLAYER_H
17 #define QGSMASKSYMBOLLAYER_H
19 #include "qgis_core.h"
65 bool enabled()
const {
return ! mMaskedSymbolLayers.isEmpty(); }
87 std::unique_ptr<QgsMarkerSymbol> mSymbol;
92 std::unique_ptr<QgsPaintEffect> mEffect;
virtual bool setSubSymbol(QgsSymbol *symbol)
Sets layer's subsymbol. takes ownership of the passed symbol.
bool enabled() const
Whether some masked symbol layers are defined.
virtual bool hasDataDefinedProperties() const
Returns true if the symbol layer (or any of its sub-symbols) contains data defined properties.
void startRender(QgsSymbolRenderContext &context) override
Called before a set of rendering operations commences on the supplied render context.
Abstract base class for marker symbol layers.
void drawPreviewIcon(QgsSymbolRenderContext &context, QSize size) override
virtual QgsStringMap properties() const =0
Should be reimplemented by subclasses to return a string map that contains the configuration informat...
virtual QgsSymbolLayer * clone() const =0
Shall be reimplemented by subclasses to create a deep copy of the instance.
virtual QSet< QString > usedAttributes(const QgsRenderContext &context) const
Returns the set of attributes referenced by the layer.
QgsSymbolLayerReferenceList masks() const override
Returns a list of references to symbol layers that are masked by the sub symbol's shape.
QgsSymbol * subSymbol() override
Returns the symbol's sub symbol, if present.
QMap< QString, QString > QgsStringMap
QList< QgsSymbolLayerReference > QgsSymbolLayerReferenceList
void setMasks(QgsSymbolLayerReferenceList maskedLayers)
Sets the symbol layers that will be masked by the sub symbol's shape.
Base class for visual effects which can be applied to QPicture drawings.
virtual void renderPoint(QPointF point, QgsSymbolRenderContext &context)=0
Renders a marker at the specified point.
virtual QRectF bounds(QPointF point, QgsSymbolRenderContext &context)=0
Returns the approximate bounding box of the marker symbol layer, taking into account any data defined...
virtual QString layerType() const =0
Returns a string that represents this layer type.
Special symbol layer that uses its sub symbol as a selective mask.
void stopRender(QgsSymbolRenderContext &context) override
Called after a set of rendering operations has finished on the supplied render context.