Skip To Content ArcGIS for Developers Sign In Dashboard

KmlPolygonStyle Class

class Esri::ArcGISRuntime::KmlPolygonStyle

A KML polygon style object. More...

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

This class was introduced in Esri::ArcGISRuntime 100.7.

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.

Member Function Documentation

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().


Feedback on this topic?