Skip To Content ArcGIS for Developers Sign In Dashboard

ColormapRenderer Class

class Esri::ArcGISRuntime::ColormapRenderer

A ColormapRenderer provides a discrete mapping of raster pixel values to colors. More...

Header: #include <ColormapRenderer>
Since: Esri::ArcGISRuntime 100.0
Inherits: Esri::ArcGISRuntime::RasterRenderer

This class was introduced in Esri::ArcGISRuntime 100.0.

Public Functions

ColormapRenderer(Esri::ArcGISRuntime::Colormap *colormap, QObject *parent = nullptr)
ColormapRenderer(const QList<QColor> &colors, QObject *parent = nullptr)
virtual ~ColormapRenderer() override
Esri::ArcGISRuntime::Colormap *colormap() const
QList<QColor> colors() const

Detailed Description

All pixels matching the specified value will be rendered using the mapped color. This is useful for thematic mapping tasks such as land classification. This concept of this class is similar to a UniqueValueRenderer, except that ColormapRenderer is specifically for rendering raster pixel values.

Member Function Documentation

ColormapRenderer::ColormapRenderer(Esri::ArcGISRuntime::Colormap *colormap, QObject *parent = nullptr)

Constructor that takes a colormap with an optional parent.

ColormapRenderer::ColormapRenderer(const QList<QColor> &colors, QObject *parent = nullptr)

Constructor that takes a list of colors with an optional parent.

[override virtual] ColormapRenderer::~ColormapRenderer()

Destructor.

Esri::ArcGISRuntime::Colormap *ColormapRenderer::colormap() const

Returns the Colormap object used to create this Renderer.

QList<QColor> ColormapRenderer::colors() const

Returns the list of color objects used to create this Renderer.


Feedback on this topic?