Skip To Content ArcGIS for Developers Sign In Dashboard

LineSymbol Class

(Esri::ArcGISRuntime::LineSymbol)

Base class for line symbols. More...

Header: #include <LineSymbol>
Since: Esri::ArcGISRuntime 100.0
Inherits: Symbol
Inherited By:

Esri::ArcGISRuntime::SimpleLineSymbol

Public Functions

~LineSymbol()
QColor color() const
bool isAntiAlias() const
void setAntiAlias(bool antiAlias)
void setColor(const QColor &color)
void setWidth(float width)
float width() const

Protected Functions

LineSymbol(QObject *parent = nullptr)
  • 9 protected functions inherited from QObject

Additional Inherited Members

Detailed Description

Base class for line symbols.

Symbols describe how graphics and features look on a map. Different symbols are used with different geometry types. Line symbols are used to display graphics and features that are based on polyline geometries. Subclasses of this class represent specific types of line symbols.

Member Function Documentation

[protected] LineSymbol::LineSymbol(QObject *parent = nullptr)

Default constructor with an optional parent.

LineSymbol::~LineSymbol()

Destructor.

QColor LineSymbol::color() const

Returns the color of the line.

See also setColor().

bool LineSymbol::isAntiAlias() const

Returns whether the line should be anti-aliased.

Defaults to true.

void LineSymbol::setAntiAlias(bool antiAlias)

Sets whether the line should render as antiAlias to smooth edges.

Defaults to true.

See also isAntiAlias().

void LineSymbol::setColor(const QColor &color)

Sets the color of the line.

See also color().

void LineSymbol::setWidth(float width)

Sets the width of the line, in device independent pixels (DIPs).

See also width().

float LineSymbol::width() const

Returns the width of the line, in device independent pixels (DIPs).

See also setWidth().


Feedback on this topic?