SolidFillSymbolLayer Class

  • SolidFillSymbolLayer
  • class Esri::ArcGISRuntime::SolidFillSymbolLayer

    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

    This class was introduced in Esri::ArcGISRuntime 100.5.

    Public Functions

    SolidFillSymbolLayer(const QColor &color, QObject *parent = nullptr)
    SolidFillSymbolLayer(QObject *parent = nullptr)
    virtual ~SolidFillSymbolLayer() override
    QColor color() const
    void setColor(const QColor &color)

    Detailed Description

    This layer is used to render the surfaces of the Polygon geometries with the provided 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.

    Member Function Documentation

    SolidFillSymbolLayer::SolidFillSymbolLayer(const QColor &color, QObject *parent = nullptr)

    Constructor with a color and an optional parent.

    SolidFillSymbolLayer::SolidFillSymbolLayer(QObject *parent = nullptr)

    Default constructor with an optional parent.

    [override virtual] SolidFillSymbolLayer::~SolidFillSymbolLayer()

    Destructor.

    QColor SolidFillSymbolLayer::color() const

    Returns the color.

    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 null 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.

    See also setColor() and SymbolLayer::isColorLocked.

    void SolidFillSymbolLayer::setColor(const QColor &color)

    Sets the color to color.

    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 null 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. 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 null 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.

    Note: this property can only be modified if the symbol layer is not color locked.

    See also color() and SymbolLayer::isColorLocked.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.