A solid fill symbol layer is a symbol layer intended for use with polygon geometries. More...
Header: | #include <SolidFillSymbolLayer.h> |
Since: | Esri::ArcGISRuntime 100.5 |
Inherits: | Esri::ArcGISRuntime::FillSymbolLayer |
Public Functions
SolidFillSymbolLayer(QObject *parent = nullptr) | |
SolidFillSymbolLayer(const QColor &color, QObject *parent = nullptr) | |
virtual | ~SolidFillSymbolLayer() override |
QColor | color() const |
void | setColor(const QColor &color) |
Detailed Description
A SolidFillSymbolLayer represents a symbol layer used to fill a polygon geometry with a solid color. It can have transparency applied.
If a SolidFillSymbolLayer is the only symbol layer in a MultilayerPolygonSymbol, it will fill the geometry with the specified color. The SolidFillSymbolLayer is similar to the Web Scene's FillSymbol3DLayer, and the Web Map's esriSFS.
SolidFillSymbolLayer is like SimpleFillSymbol with a solid style. Unlike SimpleFillSymbol, which includes hatch fill styles, SolidFillSymbolLayer is used to symbolize a solid fill exclusively and therefore only exposes a color property.
Member Function Documentation
[explicit]
SolidFillSymbolLayer::SolidFillSymbolLayer (QObject *parent = nullptr)
Creates a solid fill symbol layer.
- parent - The optional parent QObject.
The color of the created layer will initialize to black, RGBA(0, 0, 0, 255).
[explicit]
SolidFillSymbolLayer::SolidFillSymbolLayer (const QColor &color, QObject *parent = nullptr)
Creates a solid fill symbol layer with a given color.
- color - The color of the solid fill symbol layer.
- parent - The optional parent QObject.
[override virtual]
SolidFillSymbolLayer::~SolidFillSymbolLayer ()
Destructor.
QColor SolidFillSymbolLayer::color() const
Returns the color of a solid fill symbol layer.
A QColor representing the color used in the solid fill. If a color is not explicitly set, the default will be black, RGBA(0, 0, 0, 255).
When getting the color from a symbol, the consensus value (for all layers) is reported. If there is no consensus (one or more layers have different colors), a nullptr
value is reported for the color. Likewise, setting a value for color on a symbol will apply that color to all layers the symbol contains. If you don't want changes to the symbol color to propagate to some of the symbol layers it contains, you can lock the color for those layers. If a symbol layer is color-locked, changes to the parent symbol will not affect the symbol layer. This also means that the layer will not be considered when determining a consensus color for the symbol as a whole.
See also setColor().
void SolidFillSymbolLayer::setColor (const QColor &color)
Sets the color to color.
See also color.