A FloatFunction that returns a user-supplied optional float value when evaluated. More...
| Header | #include <Float |
| Since | Esri |
| Inherits | Esri |
Public Functions
| Float | |
| virtual | ~ |
| void | set |
| std | value() const |
Detailed Description
Allows the supplied value to be changed and the analysis reevaluated. Analysis reevaluation may produce an updated result after changing the supplied value.
Changing the values supplied to an analysis and reevaluating is more performant than creating and evaluating a new analysis with the new values.
Relevant samples:
- Control map algebra inputs with float suppliers: Use float suppliers to dynamically update numeric inputs to a map algebra expression and refresh analysis results as the input values change.
- Get field function value from a point: Sample field function values at a given position from a field analysis.
See also FloatFunction, FloatFunction::evaluateAsync, BoolSupplier, and Int32Supplier.
Member Function Documentation
[explicit] FloatSupplier::FloatSupplier (std::optional <float> value, QObject *parent = nullptr)
Creates a FloatSupplier.
- value - The optional float value supplied to an analysis.
- parent - The optional parent QObject.
[override virtual noexcept] FloatSupplier::~FloatSupplier ()
Destructor.
void FloatSupplier::setValue (std::optional <float> value)
Sets the value to value.
See also value.
std::optional <float> FloatSupplier::value() const
Returns the optional float value supplied to an analysis.
After changing the value, evaluation returns the updated value.
See also setValue().