Skip To Content ArcGIS for Developers Sign In Dashboard

SimpleFillSymbol Class

(Esri::ArcGISRuntime::SimpleFillSymbol)

A fill symbol based on simple patterns. More...

Header: #include <SimpleFillSymbol>
Since: Esri::ArcGISRuntime 100.0
Inherits: FillSymbol

Public Functions

SimpleFillSymbol(QObject *parent = nullptr)
SimpleFillSymbol(SimpleFillSymbolStyle style, const QColor &color, QObject *parent = nullptr)
SimpleFillSymbol(SimpleFillSymbolStyle style, const QColor &color, LineSymbol *outline, QObject *parent = nullptr)
~SimpleFillSymbol()
void setStyle(SimpleFillSymbolStyle style)
SimpleFillSymbolStyle style() const
MultilayerPolygonSymbol *toMultilayerSymbol(QObject *parent = nullptr) const

Additional Inherited Members

Detailed Description

A fill symbol based on simple patterns.

Symbols describe how graphics and features look on a map. Different symbols are used with different geometry types. Instances of this class represent simple fill symbols. Fill symbols are used with graphics and features that are based on a polygon geometries. The symbol defines how to fill the interior of a polygon, and can have an optional outline which is defined by a line symbol.

Example:

Create a SimpleFillSymbol and set its style, color, opacity, and outline:

SimpleFillSymbol* simpleFillSymbol = new SimpleFillSymbol(SimpleFillSymbolStyle::Solid, QColor(Qt::red), this);
SimpleLineSymbol* outline = new SimpleLineSymbol(SimpleLineSymbolStyle::Solid, QColor(Qt::black), 2.0, this);
simpleFillSymbol->setOutline(outline);

Member Function Documentation

SimpleFillSymbol::SimpleFillSymbol(QObject *parent = nullptr)

Default constructor with an optional parent.

SimpleFillSymbol::SimpleFillSymbol(SimpleFillSymbolStyle style, const QColor &color, QObject *parent = nullptr)

Constructs a simple fill symbol providing a style, color, and optional parent.

SimpleFillSymbol::SimpleFillSymbol(SimpleFillSymbolStyle style, const QColor &color, LineSymbol *outline, QObject *parent = nullptr)

Constructs a simple fill symbol providing a style, color, outline, and optional parent.

SimpleFillSymbol::~SimpleFillSymbol()

Destructor.

void SimpleFillSymbol::setStyle(SimpleFillSymbolStyle style)

Sets the style of the symbol's fill pattern.

See also style().

SimpleFillSymbolStyle SimpleFillSymbol::style() const

Returns the style of the symbol's fill pattern.

See also setStyle().

MultilayerPolygonSymbol *SimpleFillSymbol::toMultilayerSymbol(QObject *parent = nullptr) const

Returns a Multilayer polygon symbol generated from simple fill symbol with optional parent.

The resulting MultilayerPolygonSymbol contains a SolidStrokeSymbolLayer to display the symbol outline and either a SolidFillSymbolLayer or HatchFillSymbolLayer to represent the interior fill symbol. If the simple fill uses a cross pattern, two HatchFillSymbolLayer symbol layers are used to represent the fill in the multilayer symbol.

Note: if no parent is specified, this SimpleFillSymbol will be the parent of the MultilayerPolygonSymbol.

This function was introduced in Esri::ArcGISRuntime 100.5.


Feedback on this topic?