Skip To Content ArcGIS for Developers Sign In Dashboard

SimpleRenderer Class

class Esri::ArcGISRuntime::SimpleRenderer

A simple renderer based on a single symbol. More...

Header: #include <SimpleRenderer>
Since: Esri::ArcGISRuntime 100.0
Inherits: Esri::ArcGISRuntime::Renderer

This class was introduced in Esri::ArcGISRuntime 100.0.

Public Functions

SimpleRenderer(Esri::ArcGISRuntime::Symbol *symbol, QObject *parent = nullptr)
SimpleRenderer(QObject *parent = nullptr)
virtual ~SimpleRenderer() override
QString description() const
QString label() const
void setDescription(const QString &description)
void setLabel(const QString &label)
void setSymbol(Esri::ArcGISRuntime::Symbol *symbol)
Esri::ArcGISRuntime::Symbol *symbol() const

Detailed Description

Simple renderers symbolize all graphics in a graphics overlay or features in a feature layer according to a given scheme. Simple renderers use a simple scheme, meaning the same symbol is used for all graphics and features, regardless of their attribute values.


Apply a SimpleRenderer to a GraphicsOverlay:

SimpleMarkerSymbol* simpleMarker = new SimpleMarkerSymbol(SimpleMarkerSymbolStyle::Circle, QColor(Qt::blue), 16.0, this);
SimpleRenderer* simpleRenderer = new SimpleRenderer(simpleMarker, this);
GraphicsOverlay* graphicsOverlay = new GraphicsOverlay(this);

Member Function Documentation

SimpleRenderer::SimpleRenderer(Esri::ArcGISRuntime::Symbol *symbol, QObject *parent = nullptr)

Constructor that takes a symbol with an optional parent.

SimpleRenderer::SimpleRenderer(QObject *parent = nullptr)

Default constructor with an optional parent.

[override virtual] SimpleRenderer::~SimpleRenderer()


QString SimpleRenderer::description() const

Returns the description for the renderer.

See also setDescription().

QString SimpleRenderer::label() const

Returns the label for the renderer.

See also setLabel().

void SimpleRenderer::setDescription(const QString &description)

Sets the description for the renderer.

See also description().

void SimpleRenderer::setLabel(const QString &label)

Sets the label for the renderer.

See also label().

void SimpleRenderer::setSymbol(Esri::ArcGISRuntime::Symbol *symbol)

Sets the symbol for the renderer.

This symbol will be applied to all graphics or features that are in the layer that this renderer is applied to.

See also symbol().

Esri::ArcGISRuntime::Symbol *SimpleRenderer::symbol() const

Returns the symbol for the renderer.

See also setSymbol.

Feedback on this topic?