• DiscreteFieldFunction
  • class Esri::ArcGISRuntime::DiscreteFieldFunction

    A function that returns a DiscreteField when evaluated. More...

    Header: #include <DiscreteFieldFunction.h>
    Since: Esri::ArcGISRuntime 300.0
    Inherits: Esri::ArcGISRuntime::Object
    Inherited By:

    Esri::ArcGISRuntime::DiscreteFieldClipFunction and Esri::ArcGISRuntime::DiscreteFieldSupplier

    Public Functions

    virtual ~DiscreteFieldFunction() override
    Esri::ArcGISRuntime::DiscreteFieldFunction *abs() const
    Esri::ArcGISRuntime::DiscreteFieldFunction *add(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::DiscreteFieldFunction *add(Esri::ArcGISRuntime::Int32Function *value) const
    Esri::ArcGISRuntime::DiscreteFieldFunction *add(int value) const
    (since Esri::ArcGISRuntime 300.1) Esri::ArcGISRuntime::DiscreteFieldFunction *clamp(Esri::ArcGISRuntime::DiscreteFieldFunction *minField, Esri::ArcGISRuntime::DiscreteFieldFunction *maxField) const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::DiscreteFieldFunction *clamp(Esri::ArcGISRuntime::Int32Function *min, Esri::ArcGISRuntime::Int32Function *max) const
    (since Esri::ArcGISRuntime 300.1) Esri::ArcGISRuntime::DiscreteFieldFunction *clamp(int min, int max) const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::DiscreteFieldClipFunction *clip() const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::DiscreteFieldClipFunction *clip(const Esri::ArcGISRuntime::Envelope &extent) const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::DiscreteFieldFunctionType discreteFieldFunctionType() const
    Esri::ArcGISRuntime::DiscreteFieldFunction *divide(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::DiscreteFieldFunction *divide(Esri::ArcGISRuntime::Int32Function *value) const
    Esri::ArcGISRuntime::DiscreteFieldFunction *divide(int value) const
    QFuture<Esri::ArcGISRuntime::DiscreteField *> evaluateAsync(QObject *parent = nullptr)
    Esri::ArcGISRuntime::BooleanFieldFunction *hasData() const
    Esri::ArcGISRuntime::BooleanFieldFunction *isEqualTo(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::BooleanFieldFunction *isEqualTo(Esri::ArcGISRuntime::Int32Function *value) const
    Esri::ArcGISRuntime::BooleanFieldFunction *isEqualTo(int value) const
    Esri::ArcGISRuntime::BooleanFieldFunction *isGreaterThan(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::BooleanFieldFunction *isGreaterThan(Esri::ArcGISRuntime::Int32Function *value) const
    Esri::ArcGISRuntime::BooleanFieldFunction *isGreaterThan(int value) const
    Esri::ArcGISRuntime::BooleanFieldFunction *isGreaterThanOrEqualTo(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::BooleanFieldFunction *isGreaterThanOrEqualTo(Esri::ArcGISRuntime::Int32Function *value) const
    Esri::ArcGISRuntime::BooleanFieldFunction *isGreaterThanOrEqualTo(int value) const
    Esri::ArcGISRuntime::BooleanFieldFunction *isLessThan(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::BooleanFieldFunction *isLessThan(Esri::ArcGISRuntime::Int32Function *value) const
    Esri::ArcGISRuntime::BooleanFieldFunction *isLessThan(int value) const
    Esri::ArcGISRuntime::BooleanFieldFunction *isLessThanOrEqualTo(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::BooleanFieldFunction *isLessThanOrEqualTo(Esri::ArcGISRuntime::Int32Function *value) const
    Esri::ArcGISRuntime::BooleanFieldFunction *isLessThanOrEqualTo(int value) const
    Esri::ArcGISRuntime::BooleanFieldFunction *isNotEqualTo(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::BooleanFieldFunction *isNotEqualTo(Esri::ArcGISRuntime::Int32Function *value) const
    Esri::ArcGISRuntime::BooleanFieldFunction *isNotEqualTo(int value) const
    Esri::ArcGISRuntime::DiscreteFieldFunction *mask(Esri::ArcGISRuntime::BooleanFieldFunction *selection) const
    Esri::ArcGISRuntime::DiscreteFieldFunction *multiply(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::DiscreteFieldFunction *multiply(Esri::ArcGISRuntime::Int32Function *value) const
    Esri::ArcGISRuntime::DiscreteFieldFunction *multiply(int value) const
    (since Esri::ArcGISRuntime 300.1) Esri::ArcGISRuntime::DiscreteFieldFunction *remainder(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::DiscreteFieldFunction *remainder(Esri::ArcGISRuntime::Int32Function *divisor) const
    (since Esri::ArcGISRuntime 300.1) Esri::ArcGISRuntime::DiscreteFieldFunction *remainder(int divisor) const
    Esri::ArcGISRuntime::DiscreteFieldFunction *replaceIf(Esri::ArcGISRuntime::BooleanFieldFunction *selection, Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::DiscreteFieldFunction *replaceIf(Esri::ArcGISRuntime::BooleanFieldFunction *selection, Esri::ArcGISRuntime::Int32Function *value) const
    Esri::ArcGISRuntime::DiscreteFieldFunction *replaceIf(Esri::ArcGISRuntime::BooleanFieldFunction *selection, int value) const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::DiscreteFieldSampleFunction *sample() const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::DiscreteFieldSampleFunction *sample(const Esri::ArcGISRuntime::Point &position) const
    Esri::ArcGISRuntime::DiscreteFieldFunction *subtract(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const
    (since Esri::ArcGISRuntime 300.2) Esri::ArcGISRuntime::DiscreteFieldFunction *subtract(Esri::ArcGISRuntime::Int32Function *value) const
    Esri::ArcGISRuntime::DiscreteFieldFunction *subtract(int value) const
    Esri::ArcGISRuntime::ContinuousFieldFunction *toContinuousFieldFunction() const

    Detailed Description

    Use evaluateAsync to compute the result of this function.

    After updating parameters of this function, or of functions from which it is composed, evaluation uses the updated parameter values and may produce an updated result.

    Values are represented as 32-bit signed integers, so arithmetic operations wrap at the boundaries of this type.

    Relevant samples:

    See also DiscreteField, DiscreteFieldSupplier, evaluateAsync, BooleanFieldFunction, and ContinuousFieldFunction.

    Member Function Documentation

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

    Destructor.

    Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::abs() const

    Composes a function that returns the absolute value of this function's field result across its extent.

    The function result has no data where this function's field result has no data.

    The function result extent equals that of this function's field result.

    Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::add(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const

    Composes a function that adds, point-wise, this function's field result and another across their spatial intersection.

    • otherField - Another discrete field function.

    The function result has no data where either of the given fields has no data.

    The function result extent is the intersection of the extents of the given fields.

    The spatial reference of both fields must be equivalent.

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::add(Esri::ArcGISRuntime::Int32Function *value) const

    Composes a function that adds, point-wise, a value to this function's field result across its extent.

    • value - A function that returns the value to add across the field.

    A result of std::nullopt from value is interpreted as no data. The function result has no data where the value or this function's field result has no data.

    The function result extent equals that of this function's field result.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::add(int value) const

    Composes a function that adds, point-wise, a value to this function's field result across its extent.

    • value - The value to add across the field.

    The function result has no data where this function's field result has no data.

    The function result extent equals that of this function's field result.

    [since Esri::ArcGISRuntime 300.1] Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::clamp(Esri::ArcGISRuntime::DiscreteFieldFunction *minField, Esri::ArcGISRuntime::DiscreteFieldFunction *maxField) const

    Composes a function that clamps, point-wise, this function's field result between two values drawn from two others.

    • minField - The discrete field function to draw lower-bound values from.
    • maxField - The discrete field function to draw upper-bound values from.

    The function result is min where this function's field result is less than min. The function result is max where this function's field result is greater than max. Otherwise, this function's field result is preserved.

    The function result has no data where any of the fields have no data.

    The function result has no data where the max is less than the min.

    The function result extent equals the intersection of this field with the intersection of the min field and max field.

    The spatial reference of all fields must be equivalent.

    This function was introduced in Esri::ArcGISRuntime 300.1.

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::clamp(Esri::ArcGISRuntime::Int32Function *min, Esri::ArcGISRuntime::Int32Function *max) const

    Composes a function that clamps, point-wise, this function's field result between two values.

    • min - A function that returns the lower bound to clamp to.
    • max - A function that returns the upper bound to clamp to.

    The function result is min where this function's field result is less than min. The function result is max where this function's field result is greater than max. Otherwise this function's field result is preserved.

    A result of std::nullopt from either min or max is interpreted as no data. The function result has no data where the min, max, or this function's field result has no data. The function result has no data where the max is less than the min.

    The function result extent equals that of this function's field result.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    [since Esri::ArcGISRuntime 300.1] Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::clamp(int min, int max) const

    Composes a function that clamps, point-wise, this function's field result between two values.

    • min - The lower-bound value to clamp to.
    • max - The upper-bound value to clamp to.

    The function result is min where this function's field result is less than min. The function result is max where this function's field result is greater than max. Otherwise, this function's field result is preserved.

    The function result has no data where this function's field result has no data.

    The function result has no data where max is less than min.

    The function result extent equals that of this function's field result.

    This function was introduced in Esri::ArcGISRuntime 300.1.

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::DiscreteFieldClipFunction *DiscreteFieldFunction::clip() const

    Composes a function with the result not clipped.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    See also DiscreteFieldClipFunction::create.

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::DiscreteFieldClipFunction *DiscreteFieldFunction::clip(const Esri::ArcGISRuntime::Envelope &extent) const

    Composes a function with a result clipped to a specified extent.

    • extent - The extent to clip the field to.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    See also DiscreteFieldClipFunction::create.

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::DiscreteFieldFunctionType DiscreteFieldFunction::discreteFieldFunctionType() const

    Returns the type of the discrete field function.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::divide(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const

    Composes a function that divides, point-wise, this function's field result by another across their spatial intersection.

    • otherField - Another discrete field function.

    The function result has no data where either of the given fields has no data.

    The function result extent is the intersection of the extents of the given fields.

    The spatial reference of both fields must be equivalent.

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::divide(Esri::ArcGISRuntime::Int32Function *value) const

    Composes a function that divides, point-wise, this function's field result by a value across its extent.

    • value - A function that returns the value to divide across the field.

    A result of std::nullopt from value is interpreted as no data. The function result has no data where the value or this function's field result has no data, or if the divisor is zero.

    Result values are rounded towards zero.

    The function result extent equals that of this function's field result.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::divide(int value) const

    Composes a function that divides, point-wise, this function's field result by a value across its extent.

    • value - The value to divide across the field.

    The function result has no data where this function's field result has no data, or if the divisor is zero.

    Result values are rounded towards zero.

    QFuture<Esri::ArcGISRuntime::DiscreteField *> DiscreteFieldFunction::evaluateAsync(QObject *parent = nullptr)

    Evaluates the result of the function with an optional parent.

    If the data fits in memory, it is processed in a single pass. Larger datasets (typically >2 GB) are split into smaller processing areas to match available hardware, increasing processing time.

    This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.

    See Working with QFuture for further details.

    Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::hasData() const

    Composes a function that identifies, point-wise, where this function's field result has data across its extent.

    The function result values are true where this function's field result has data.

    The function result values are false where this function's field result has no data.

    All values in the result have data.

    The function result extent equals that of this function's field result.

    Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isEqualTo(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const

    Composes a function that indicates if, point-wise, this function's field result is equal to another.

    • otherField - Another discrete field function.

    The function result has no data where either of the given fields has no data.

    The function result extent is the intersection of the extents of the given fields.

    The spatial reference of both fields must be equivalent.

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isEqualTo(Esri::ArcGISRuntime::Int32Function *value) const

    Composes a function that indicates if, point-wise, this function's field result is equal to a given value.

    • value - A function that returns the comparison value.

    A result of std::nullopt from value is interpreted as no data. The function result has no data where the value or this function's field result has no data.

    The function result extent equals that of this function's field result.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isEqualTo(int value) const

    Composes a function that indicates if, point-wise, this function's field result is equal to a given value.

    • value - The comparison value.

    The function result has no data where this function's field result has no data.

    The function result extent equals that of this function's field result.

    Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isGreaterThan(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const

    Composes a function that indicates if, point-wise, this function's field result is greater than another.

    • otherField - Another discrete field function.

    The function result has no data where either of the given fields has no data.

    The function result extent is the intersection of the extents of the given fields.

    The spatial reference of both fields must be equivalent.

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isGreaterThan(Esri::ArcGISRuntime::Int32Function *value) const

    Composes a function that indicates if, point-wise, this function's field result is greater than a given value.

    • value - A function that returns the comparison value.

    A result of std::nullopt from value is interpreted as no data. The function result has no data where the value or this function's field result has no data.

    The function result extent equals that of this function's field result.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isGreaterThan(int value) const

    Composes a function that indicates if, point-wise, this function's field result is greater than a given value.

    • value - The comparison value.

    The function result has no data where this function's field result has no data.

    The function result extent equals that of this function's field result.

    Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isGreaterThanOrEqualTo(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const

    Composes a function that indicates if, point-wise, this function's field result is greater than or equal to another.

    • otherField - Another discrete field function.

    The function result has no data where either of the given fields has no data.

    The function result extent is the intersection of the extents of the given fields.

    The spatial reference of both fields must be equivalent.

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isGreaterThanOrEqualTo(Esri::ArcGISRuntime::Int32Function *value) const

    Composes a function that indicates if, point-wise, this function's field result is greater than or equal to a given value.

    • value - A function that returns the comparison value.

    A result of std::nullopt from value is interpreted as no data. The function result has no data where the value or this function's field result has no data.

    The function result extent equals that of this function's field result.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isGreaterThanOrEqualTo(int value) const

    Composes a function that indicates if, point-wise, this function's field result is greater than or equal to a given value.

    • value - The comparison value.

    The function result has no data where this function's field result has no data.

    The function result extent equals that of this function's field result.

    Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isLessThan(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const

    Composes a function that indicates if, point-wise, this function's field result is less than another.

    • otherField - Another discrete field function.

    The function result has no data where either of the given fields has no data.

    The function result extent is the intersection of the extents of the given fields.

    The spatial reference of both fields must be equivalent.

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isLessThan(Esri::ArcGISRuntime::Int32Function *value) const

    Composes a function that indicates if, point-wise, this function's field result is less than a given value.

    • value - A function that returns the comparison value.

    A result of std::nullopt from value is interpreted as no data. The function result has no data where the value or this function's field result has no data.

    The function result extent equals that of this function's field result.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isLessThan(int value) const

    Composes a function that indicates if, point-wise, this function's field result is less than a given value.

    • value - The comparison value.

    The function result has no data where this function's field result has no data.

    The function result extent equals that of this function's field result.

    Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isLessThanOrEqualTo(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const

    Composes a function that indicates if, point-wise, this function's field result is less than or equal to another.

    • otherField - Another discrete field function.

    The function result has no data where either of the given fields has no data.

    The function result extent is the intersection of the extents of the given fields.

    The spatial reference of both fields must be equivalent.

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isLessThanOrEqualTo(Esri::ArcGISRuntime::Int32Function *value) const

    Composes a function that indicates if, point-wise, this function's field result is less than or equal to a given value.

    • value - A function that returns the comparison value.

    A result of std::nullopt from value is interpreted as no data. The function result has no data where the value or this function's field result has no data.

    The function result extent equals that of this function's field result.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isLessThanOrEqualTo(int value) const

    Composes a function that indicates if, point-wise, this function's field result is less than or equal to a given value.

    • value - The comparison value.

    The function result has no data where this function's field result has no data.

    The function result extent equals that of this function's field result.

    Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isNotEqualTo(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const

    Composes a function that indicates if, point-wise, this function's field result is not equal to another.

    • otherField - Another discrete field function.

    The function result has no data where either of the given fields has no data.

    The function result extent is the intersection of the extents of the given fields.

    The spatial reference of both fields must be equivalent.

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isNotEqualTo(Esri::ArcGISRuntime::Int32Function *value) const

    Composes a function that indicates if, point-wise, this function's field result is not equal to a given value.

    • value - A function that returns the comparison value.

    A result of std::nullopt from value is interpreted as no data. The function result has no data where the value or this function's field result has no data.

    The function result extent equals that of this function's field result.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    Esri::ArcGISRuntime::BooleanFieldFunction *DiscreteFieldFunction::isNotEqualTo(int value) const

    Composes a function that indicates if, point-wise, this function's field result is not equal to a given value.

    • value - The comparison value.

    The function result has no data where this function's field result has no data.

    The function result extent equals that of this function's field result.

    Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::mask(Esri::ArcGISRuntime::BooleanFieldFunction *selection) const

    Composes a function that applies a mask to this function's field result.

    • selection - A selection.

    Where the selection is true, values from this function's field result are preserved. Where the selection is false, the field has no data.

    The function result has no data where this function's field result or the selection has no data.

    The function result extent is the intersection of this function's field result and the selection.

    The spatial reference of this function's field result and the selection must be equivalent.

    Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::multiply(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const

    Composes a function that multiplies, point-wise, this function's field result and another across their spatial intersection.

    • otherField - Another discrete field function.

    The function result has no data where either of the given fields has no data.

    The function result extent is the intersection of the extents of the given fields.

    The spatial reference of both fields must be equivalent.

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::multiply(Esri::ArcGISRuntime::Int32Function *value) const

    Composes a function that multiplies, point-wise, this function's field result by a value across its extent.

    • value - A function that returns the value to multiply across the field.

    A result of std::nullopt from value is interpreted as no data. The function result has no data where the value or this function's field result has no data.

    The function result extent equals that of this function's field result.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::multiply(int value) const

    Composes a function that multiplies, point-wise, this function's field result by a value across its extent.

    • value - The value to multiply across the field.

    The function result has no data where this function's field result has no data.

    The function result extent equals that of this function's field result.

    [since Esri::ArcGISRuntime 300.1] Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::remainder(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const

    Composes a function that applies a remainder operation, point-wise, to this function's field result using values from another field as the divisors across their spatial intersection.

    • otherField - The discrete field function to draw the divisors from.

    The function result has no data where either of the fields have no data.

    The function result has no data where the divisor drawn from the other field is zero.

    The sign of this function's field result is preserved. For example, 7 remainder 3 (or -3) will result in 1 and -7 remainder 3 (or -3) will result in -1.

    The function result extent is the intersection of the extents of the given fields.

    The spatial reference of both fields must be equivalent.

    This function was introduced in Esri::ArcGISRuntime 300.1.

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::remainder(Esri::ArcGISRuntime::Int32Function *divisor) const

    Composes a function that applies a remainder operation, point-wise, to this function's field result.

    • divisor - A function that returns the divisor.

    A result of std::nullopt from divisor is interpreted as no data. The function result has no data where the divisor or this function's field result has no data, or when the divisor is zero.

    The sign of this function's field result is preserved. That is, 7 remainder 3 (or -3) results in 1 and -7 remainder 3 (or -3) results in -1.

    The function result extent equals that of this function's field result.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    [since Esri::ArcGISRuntime 300.1] Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::remainder(int divisor) const

    Composes a function that applies a remainder operation, point-wise, to this function's field result.

    • divisor - The divisor.

    A nullptr divisor is interpreted as no data. The function result has no data where the divisor or this function's field result has no data, or when the divisor is zero.

    The sign of this function's field result is preserved. For example, 7 remainder 3 (or -3) will result in 1 and -7 remainder 3 (or -3) will result in -1.

    The function result extent equals that of this function's field result.

    This function was introduced in Esri::ArcGISRuntime 300.1.

    Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::replaceIf(Esri::ArcGISRuntime::BooleanFieldFunction *selection, Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const

    Composes a function that preserves values from this function's field result or replaces them with values from another.

    • selection - A selection.
    • otherField - The discrete field function to draw values from when replacing.

    Values are determined, point-wise, across the spatial intersection of the selection with the union of the two function's field results. Where the selection is true, values from the other field are returned. Where false, values from this function's field result are returned. The function result has no data where the selection or the selected field has no data.

    The function result extent is the intersection of the selection with the union of this function's field result and the other.

    The spatial reference of this function's field result, the other, and the selection must be equivalent.

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::replaceIf(Esri::ArcGISRuntime::BooleanFieldFunction *selection, Esri::ArcGISRuntime::Int32Function *value) const

    Composes a function that preserves values from this function's field result or replaces them with another value.

    • selection - A selection.
    • value - A function that returns the integer value to be used when replacing.

    Values are determined, point-wise, across the extent of this function's field result based on a selection. Where the selection is true, the specified value is returned. Where false, values from this function's field result are returned. A result of std::nullopt from value is interpreted as no data. The function result has no data where the selection or this function's field result has no data.

    The function result extent is the intersection of the selection with this function's field result.

    The spatial reference of this function's field result and the selection must be equivalent.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::replaceIf(Esri::ArcGISRuntime::BooleanFieldFunction *selection, int value) const

    Composes a function that preserves values from this function's field result or replaces them with a constant value.

    • selection - A selection.
    • value - The integer value to be used when replacing.

    Values are determined, point-wise, across the extent of this function's field result based on a selection. Where the selection is true, the specified constant value is returned. Where false, values from this function's field result are returned. The function result has no data where the selection or this function's field result has no data.

    The function result extent is the intersection of the selection with this function's field result.

    The spatial reference of this function's field result and the selection must be equivalent.

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::DiscreteFieldSampleFunction *DiscreteFieldFunction::sample() const

    Composes a function that samples the result of this field function with an empty initial position.

    DiscreteFieldSampleFunction::evaluateAsync fails if DiscreteFieldSampleFunction::position is empty. However, creating a DiscreteFieldSampleFunction with no position can be useful in an interactive or dynamic analysis. An empty initial position lets you define an interactive or dynamic analysis before its position is available. You can then defer evaluation until a position has been populated.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    See also DiscreteFieldSampleFunction::create and sample(const Point&).

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::DiscreteFieldSampleFunction *DiscreteFieldFunction::sample(const Esri::ArcGISRuntime::Point &position) const

    Composes a function that samples the result of this field function at a position.

    • position - The position at which to sample the result of this field function.

    DiscreteFieldSampleFunction::evaluateAsync fails if DiscreteFieldSampleFunction::position is empty. However, creating a DiscreteFieldSampleFunction with no position can be useful in an interactive or dynamic analysis. An empty initial position lets you define an interactive or dynamic analysis before its position is available. You can then defer evaluation until a position has been populated.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    See also DiscreteFieldSampleFunction::create and sample().

    Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::subtract(Esri::ArcGISRuntime::DiscreteFieldFunction *otherField) const

    Composes a function that subtracts, point-wise, another field from this function's field result across their spatial intersection.

    • otherField - Another discrete field function.

    The function result has no data where either of the given fields has no data.

    The function result extent is the intersection of the extents of the given fields.

    The spatial reference of both fields must be equivalent.

    [since Esri::ArcGISRuntime 300.2] Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::subtract(Esri::ArcGISRuntime::Int32Function *value) const

    Composes a function that subtracts, point-wise, a value from this function's field result across its extent.

    • value - A function that returns the value to subtract across the field.

    A result of std::nullopt from value is interpreted as no data. The function result has no data where the value or this function's field result has no data.

    The function result extent equals that of this function's field result.

    This function was introduced in Esri::ArcGISRuntime 300.2.

    Esri::ArcGISRuntime::DiscreteFieldFunction *DiscreteFieldFunction::subtract(int value) const

    Composes a function that subtracts, point-wise, a value from this function's field result across its extent.

    • value - The value to subtract across the field.

    The function result has no data where this function's field result has no data.

    The function result extent equals that of this function's field result.

    Esri::ArcGISRuntime::ContinuousFieldFunction *DiscreteFieldFunction::toContinuousFieldFunction() const

    Composes a function that casts, point-wise, integer values from this function's field result to floating-point values across its extent.

    The function result has no data where this function's field result has no data.

    The function result extent equals that of this function's field result.