A colormap renderer provides a discrete mapping of raster cell values to colors to help visualize the raster data in a RasterLayer. More...
Header: | #include <ColormapRenderer.h> |
Since: | Esri::ArcGISRuntime 100.0 |
Inherits: | Esri::ArcGISRuntime::RasterRenderer |
Public Functions
ColormapRenderer(const QList<QColor> &colors, QObject *parent = nullptr) | |
ColormapRenderer(Esri::ArcGISRuntime::Colormap *colormap, QObject *parent = nullptr) | |
virtual | ~ColormapRenderer() override |
Esri::ArcGISRuntime::Colormap * | colormap() const |
QList<QColor> | colors() const |
Detailed Description
All cells matching the specified value will be rendered using the mapped color. This is useful for thematic mapping tasks such as land classification when you want the values in the raster layer to be represented by a specified color. This concept of this class is similar to a UniqueValueRenderer, except that ColormapRenderer is specifically for rendering raster cell values.
Relevant samples:
- Colormap renderer: Apply a colormap renderer to a raster.
Member Function Documentation
[explicit]
ColormapRenderer::ColormapRenderer (const QList<QColor> &colors, QObject *parent = nullptr)
Creates a raster colormap renderer.
[explicit]
ColormapRenderer::ColormapRenderer (Esri::ArcGISRuntime::Colormap *colormap, QObject *parent = nullptr)
Creates a raster colormap renderer.
- colormap - Colormap object.
- parent - The optional parent QObject.
[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.