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 <Fill |
Since | Esri |
Inherits | Esri |
Inherited By | Esri |
Public Functions
virtual | ~ |
Q | color() const |
Esri | outline() const |
void | set |
void | set |
(since Esri bool | operator!=(const Esri |
(since Esri bool | operator==(const Esri |
Protected Functions
Fill |
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 noexcept]
FillSymbol::~FillSymbol ()
Destructor.
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
Tests and returns true
if this fill symbol is equal to another fill symbol.
- other - The fill symbol to be compared.
This function was introduced in Esri::ArcGISRuntime 200.1.