• MinMaxStretchParameters
  • class Esri::ArcGISRuntime::MinMaxStretchParameters

    A linear stretch between a specified minimum and maximum value. More...

    Header: #include <MinMaxStretchParameters.h>
    Since: Esri::ArcGISRuntime 100.0
    Inherits: Esri::ArcGISRuntime::StretchParameters

    Public Functions

    MinMaxStretchParameters()
    MinMaxStretchParameters(const Esri::ArcGISRuntime::StretchParameters &other)
    MinMaxStretchParameters(const QList<double> &minValues, const QList<double> &maxValues)
    MinMaxStretchParameters(const Esri::ArcGISRuntime::MinMaxStretchParameters &other)
    MinMaxStretchParameters(Esri::ArcGISRuntime::MinMaxStretchParameters &&other)
    virtual ~MinMaxStretchParameters() override
    (since Esri::ArcGISRuntime 100.2) bool isValid() const
    QList<double> maxValues() const
    QList<double> minValues() const
    void setMaxValues(const QList<double> &maxValues)
    void setMinValues(const QList<double> &minValues)
    Esri::ArcGISRuntime::MinMaxStretchParameters &operator=(Esri::ArcGISRuntime::MinMaxStretchParameters &&other)
    Esri::ArcGISRuntime::MinMaxStretchParameters &operator=(const Esri::ArcGISRuntime::MinMaxStretchParameters &other)

    Detailed Description

    This stretch type is appropriate for displaying variation in cell values across the specified value range.

    For example, consider a dataset with values ranging from 100 to 1000. With empty min and max values, the full range of values is linearly mapped onto the output range. To focus on a specific value range, for example 200 to 500, set a min value of 200 and a max value of 500. Now values from 200 to 500 are linearly mapped onto the output range, values less than 200 are clamped to the start of the output range, and values greater than 500 are clamped to the end of the output range.

    Relevant samples:

    {Esri::ArcGISRuntime::RgbRenderer} {RgbRenderer}

    See also StretchRenderer.

    Member Function Documentation

    MinMaxStretchParameters::MinMaxStretchParameters()

    Default constructor.

    [explicit] MinMaxStretchParameters::MinMaxStretchParameters(const Esri::ArcGISRuntime::StretchParameters &other)

    Converting constructor from other StretchParameters.

    See also Downcast helper functions.

    MinMaxStretchParameters::MinMaxStretchParameters(const QList<double> &minValues, const QList<double> &maxValues)

    Constructor that creates minimum maximum stretch parameters with the specified value ranges.

    • minValues - The starts of the value ranges. One for each band in the input raster, or a single value to apply to all bands.
    • maxValues - The ends of the value ranges. One for each band in the input raster, or a single value to apply to all bands.

    If minValues or maxValues is empty, the values are taken from the raster statistics.

    MinMaxStretchParameters::MinMaxStretchParameters(const Esri::ArcGISRuntime::MinMaxStretchParameters &other)

    Copy constructor from other MinMaxStretchParameters.

    [noexcept] MinMaxStretchParameters::MinMaxStretchParameters(Esri::ArcGISRuntime::MinMaxStretchParameters &&other)

    Move constructor from other MinMaxStretchParameters.

    [override virtual noexcept] MinMaxStretchParameters::~MinMaxStretchParameters()

    Destructor

    [since Esri::ArcGISRuntime 100.2] bool MinMaxStretchParameters::isValid() const

    Gets whether this MinMaxStretchParameters is valid.

    A MinMaxStretchParameters is valid if it is not empty and unitType is UnitType::MinMaxStretchParameters.

    Returns true if valid.

    This function was introduced in Esri::ArcGISRuntime 100.2.

    QList<double> MinMaxStretchParameters::maxValues() const

    Returns the ends of the value ranges.

    One for each band in the input raster, or a single value to apply to all bands. If empty, the values are taken from the raster statistics.

    Cell values greater than the maximum are clamped to the maximum output value.

    See also setMaxValues().

    QList<double> MinMaxStretchParameters::minValues() const

    Returns the starts of the value ranges.

    One for each band in the input raster, or a single value to apply to all bands. If empty, the values are taken from the raster statistics.

    Cell values less than the minimum are clamped to the minimum output value.

    See also setMinValues().

    void MinMaxStretchParameters::setMaxValues(const QList<double> &maxValues)

    Sets the ends of the value ranges. One for each raster band.

    • maxValues - The max values.

    Cell values greater than the maximum are clamped to the maximum output value.

    See also maxValues().

    void MinMaxStretchParameters::setMinValues(const QList<double> &minValues)

    Sets the starts of the value ranges. One for each raster band.

    • minValues - The min values.

    Cell values less than the minimum are clamped to the minimum output value.

    See also minValues().

    [noexcept] Esri::ArcGISRuntime::MinMaxStretchParameters &MinMaxStretchParameters::operator=(Esri::ArcGISRuntime::MinMaxStretchParameters &&other)

    Move operator from other MinMaxStretchParameters.

    Esri::ArcGISRuntime::MinMaxStretchParameters &MinMaxStretchParameters::operator=(const Esri::ArcGISRuntime::MinMaxStretchParameters &other)

    Assignment operator from other MinMaxStretchParameters.