FillSymbol Class

  • FillSymbol
  • class Esri::ArcGISRuntime::FillSymbol

    A fill symbol defines the appearance of features and graphics that are based on polygon geometries such as countries, provinces, or habitats. More...

    Header: #include <FillSymbol.h>
    Since: Esri::ArcGISRuntime 100.0
    Inherits: Esri::ArcGISRuntime::Symbol
    Inherited By:

    Esri::ArcGISRuntime::PictureFillSymbol and Esri::ArcGISRuntime::SimpleFillSymbol

    Public Functions

    virtual ~FillSymbol() override
    QColor color() const
    Esri::ArcGISRuntime::LineSymbol *outline() const
    void setColor(const QColor &color)
    void setOutline(Esri::ArcGISRuntime::LineSymbol *outline)
    bool operator!=(const Esri::ArcGISRuntime::FillSymbol &other) const
    bool operator==(const Esri::ArcGISRuntime::FillSymbol &other) const

    Protected Functions

    FillSymbol(QObject *parent = nullptr)

    Detailed Description

    FillSymbol is the base class for different symbols, such as SimpleFillSymbol and PictureFillSymbol. A FillSymbol can also be used in combination with a LineSymbol to add an outline to the fill symbol.

    You can specify the symbology of a single graphic using Graphic::symbol. Alternatively, you can create a Renderer that contains a collection of symbols and rules. Each rule determines which symbol is applied to a graphic or feature depending on its attribute values. To symbolize graphics, apply a renderer to the GraphicsOverlay, and to symbolize features, apply the renderer to FeatureLayer.

    Member Function Documentation

    [explicit protected] FillSymbol::FillSymbol(QObject *parent = nullptr)

    Default constructor with an optional parent.

    [override virtual] FillSymbol::~FillSymbol()


    QColor FillSymbol::color() const

    Returns the color to fill the interior of the polygon feature or graphic.

    See also setColor().

    Esri::ArcGISRuntime::LineSymbol *FillSymbol::outline() const

    Returns a line, with a specific color and width, to be applied to the fill symbol.

    See also setOutline().

    void FillSymbol::setColor(const QColor &color)

    Sets the color to fill the interior of the polygon feature or graphic.

    See also color().

    void FillSymbol::setOutline(Esri::ArcGISRuntime::LineSymbol *outline)

    Sets the outline LineSymbol for the fill symbol.

    See also outline().

    [since Esri::ArcGISRuntime 200.2] bool FillSymbol::operator!=(const Esri::ArcGISRuntime::FillSymbol &other) const

    Inequality operator. Returns true if this object and other are not equal.

    This function was introduced in Esri::ArcGISRuntime 200.2.

    See also FillSymbol::operator==.

    [since Esri::ArcGISRuntime 200.1] bool FillSymbol::operator==(const Esri::ArcGISRuntime::FillSymbol &other) const

    Equivalency operator.

    Returns true if this object and other are equivalent.

    This function was introduced in Esri::ArcGISRuntime 200.1.

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