ColormapRenderer Class

  • ColormapRenderer
  • class Esri::ArcGISRuntime::ColormapRenderer

    A ColormapRenderer provides a discrete mapping of raster pixel values to colors. 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 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

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

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

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

    Constructor that takes a colormap with an optional parent.

    [override virtual] ColormapRenderer::~ColormapRenderer()


    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.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.