QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSMASKSYMBOLLAYER_H
17 #define QGSMASKSYMBOLLAYER_H
19 #include "qgis_core.h"
66 QColor
color()
const override;
78 QList<QgsSymbolLayerReference>
masks()
const override;
85 void setMasks(
const QList<QgsSymbolLayerReference> &maskedLayers );
93 std::unique_ptr<QgsMarkerSymbol> mSymbol;
96 QList<QgsSymbolLayerReference> mMaskedSymbolLayers;
98 std::unique_ptr<QgsPaintEffect> mEffect;
bool enabled() const
Returns true if symbol layer is enabled and will be drawn.
virtual QList< QgsSymbolLayerReference > masks() const
Returns masks defined by this symbol layer.
RenderUnit
Rendering size units.
virtual QgsSymbol * subSymbol()
Returns the symbol's sub symbol, if present.
Type used to refer to a specific symbol layer in a symbol of a layer.
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.
Contains information about the context of a rendering operation.
Abstract base class for marker symbol layers.
Abstract base class for all rendered symbols.
void drawPreviewIcon(QgsSymbolRenderContext &context, QSize size) override
virtual bool usesMapUnits() const
Returns true if the symbol layer has any components which use map unit based sizes.
void setOutputUnit(QgsUnitTypes::RenderUnit unit) override
Sets the units to use for sizes and widths within the symbol layer.
virtual QgsSymbolLayer * clone() const =0
Shall be reimplemented by subclasses to create a deep copy of the instance.
virtual bool setSubSymbol(QgsSymbol *symbol)
Sets layer's subsymbol. takes ownership of the passed symbol.
A marker symbol type, for rendering Point and MultiPoint geometries.
virtual QVariantMap properties() const =0
Should be reimplemented by subclasses to return a string map that contains the configuration informat...
virtual QSet< QString > usedAttributes(const QgsRenderContext &context) const
Returns the set of attributes referenced by the layer.
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.
virtual QColor color() const
Returns the "representative" color of the symbol layer.
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.