Skip To Content ArcGIS for Developers Sign In Dashboard

SolidStrokeSymbolLayer Class

(Esri::ArcGISRuntime::SolidStrokeSymbolLayer)

A class for line symbol layers with customized geometric effects. More...

Header: #include <SolidStrokeSymbolLayer>
Since: Esri::ArcGISRuntime 100.5
Inherits: StrokeSymbolLayer

Public Functions

SolidStrokeSymbolLayer(QObject *parent = nullptr)
SolidStrokeSymbolLayer(double width, const QColor &color, QObject *parent = nullptr)
SolidStrokeSymbolLayer(double width, const QColor &color, const QList<GeometricEffect *> &geometricEffects, QObject *parent = nullptr)
SolidStrokeSymbolLayer(double width, const QColor &color, const QList<GeometricEffect *> &geometricEffects, StrokeSymbolLayerLineStyle3D lineStyle3D, QObject *parent = nullptr)
~SolidStrokeSymbolLayer()
QColor color() const
GeometricEffectListModel *geometricEffects() const
void setColor(const QColor &color)

Additional Inherited Members

Detailed Description

A class for line symbol layers with customized geometric effects.

Currently it only supports dash effects. This class is commonly used to represent line symbols to describe the appearance of the line, or in polygon symbols as an outline.

A SolidStrokeSymbolLayer represents a polyline geometry symbolized with a solid color.

This symbol layer, in a MultilayerPolylineSymbol alone, colors the geometry of the line with the specified solid color. The class also allows setting a collection of geometric effects, which modify the stroke in various ways (see documentation for geometric effects).

The SolidStrokeSymbolLayer provides a similar user experience to the SimpleLineSymbol, but, since it is a symbol layer, can be used in a MultilayerSymbol. The simple line styles of the SimpleLineSymbol are represented here by the DashGeometricEffect, but all dash patterns are custom. A solid stroke symbol layer in a multilayer polygon symbol will act as the outline of the fill.

Note: The units used for width is DIPs, except when LineStyle3D is StrokeSymbolLayerLineStyle3D::Tube which uses meters.

Member Function Documentation

SolidStrokeSymbolLayer::SolidStrokeSymbolLayer(QObject *parent = nullptr)

Default constructor that takes an optional parent.

Properties default to the following values: width of 4.0 points (5.333 DIPS), color is black, and strip 3D line style.

SolidStrokeSymbolLayer::SolidStrokeSymbolLayer(double width, const QColor &color, QObject *parent = nullptr)

Constructor that takes width, color, and an optional parent.

Properties default to the following values: strip 3D line style.

SolidStrokeSymbolLayer::SolidStrokeSymbolLayer(double width, const QColor &color, const QList<GeometricEffect *> &geometricEffects, QObject *parent = nullptr)

Constructor that takes width, color, geometricEffects, and an optional parent.

Properties default to the following values: strip 3D line style.

Note: the list of geometric effects will automatically be added to the geometricEffects.

SolidStrokeSymbolLayer::SolidStrokeSymbolLayer(double width, const QColor &color, const QList<GeometricEffect *> &geometricEffects, StrokeSymbolLayerLineStyle3D lineStyle3D, QObject *parent = nullptr)

Constructor that takes width, color, geometricEffects, lineStyle3D, and an optional parent.

Note: the list of geometric effects will automatically be added to the geometricEffects.

SolidStrokeSymbolLayer::~SolidStrokeSymbolLayer()

Destructor.

QColor SolidStrokeSymbolLayer::color() const

Returns the color of the solid stroke symbol layer.

The default color is opaque black, RGBA(0, 0, 0, 255).

See also setColor() and SymbolLayer::isColorLocked.

GeometricEffectListModel *SolidStrokeSymbolLayer::geometricEffects() const

Returns the geometric effects as a modifiable list model.

void SolidStrokeSymbolLayer::setColor(const QColor &color)

Sets the color of the solid stroke symbol layer to color.

Note: this property can only be modified if the symbol layer is not color locked.

See also color() and SymbolLayer::isColorLocked.


Feedback on this topic?