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

    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.

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

    You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

    Your ArcGIS portal

    Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

    Your ArcGIS Location Platform dashboard

    Manage billing, monitor service usage, and access additional resources.

    Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

    Close