A fill symbol based on simple patterns. More...
| Header | #include <Simple |
| Since | Esri |
| Inherits | Esri |
This class was introduced in Esri::ArcGISRuntime 100.0.
Public Functions
| Simple | |
| Simple | |
| Simple | |
| virtual | ~ |
| void | set |
| Esri | style() const |
| Esri | to |
Detailed Description
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 (Esri::ArcGISRuntime::SimpleFillSymbolStyle style, const QColor &color, Esri::ArcGISRuntime::LineSymbol *outline, QObject *parent = nullptr)
Constructs a simple fill symbol providing a style, color, outline, and optional parent.
SimpleFillSymbol::SimpleFillSymbol (Esri::ArcGISRuntime::SimpleFillSymbolStyle style, const QColor &color, QObject *parent = nullptr)
Constructs a simple fill symbol providing a style, color, and optional parent.
SimpleFillSymbol::SimpleFillSymbol (QObject *parent = nullptr)
Default constructor with an optional parent.
[override virtual] SimpleFillSymbol::~SimpleFillSymbol ()
Destructor.
void SimpleFillSymbol::setStyle (Esri::ArcGISRuntime::SimpleFillSymbolStyle style)
Sets the style of the symbol's fill pattern.
See also style().
Esri::ArcGISRuntime::SimpleFillSymbolStyle SimpleFillSymbol::style() const
Returns the style of the symbol's fill pattern.
See also setStyle().
Esri::ArcGISRuntime::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.