KmlPolygonStyle Class

  • KmlPolygonStyle
  • class Esri::ArcGISRuntime::KmlPolygonStyle

    A KML polygon style object. More...

    Header: #include <KmlPolygonStyle.h>
    Since: Esri::ArcGISRuntime 100.7
    Inherits: Esri::ArcGISRuntime::KmlColorStyle

    Public Functions

    KmlPolygonStyle(const QColor &fillColor, QObject *parent = nullptr)
    virtual ~KmlPolygonStyle() override
    bool isFilled() const
    bool isOutlined() const
    void setFilled(bool filled)
    void setOutlined(bool outlined)

    Detailed Description

    Controls how the fill of a KmlNode is displayed and whether the outline of a KmlNode is displayed.

    If the outline is displayed, the outline will use the current KmlLineStyle. Corresponds to a PolyStyle in a KML document.

    Relevant samples:

    Member Function Documentation

    [explicit] KmlPolygonStyle::KmlPolygonStyle(const QColor &fillColor, QObject *parent = nullptr)

    Creates a KML polygon style with the specified fill color.

    Default is RGBA(255,255,255,255).

    • fillColor - The color of the line.
    • parent - The parent object of polygon style.

    [override virtual] KmlPolygonStyle::~KmlPolygonStyle()

    Destructor

    bool KmlPolygonStyle::isFilled() const

    Returns whether or not to display the polygon with a filled symbol.

    Default is true.

    bool KmlPolygonStyle::isOutlined() const

    Returns whether or not to display the polygon with an outline symbol using the current KmlLineStyle.

    Default is true.

    void KmlPolygonStyle::setFilled(bool filled)

    Sets whether or not to fill the polygon.

    filled New value for whether the polygon is to be filled.

    See also isFilled().

    void KmlPolygonStyle::setOutlined(bool outlined)

    Specifies whether or not to display the polygon with an outline symbol using the current KmlLineStyle.

    Default is true.

    • outlined - If true, the polygon will be outlined.

    See also isOutlined().

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