A ContinuousFieldFunction that returns a user-supplied ContinuousField when evaluated. More...
| Header | #include <Continuous |
| Since | Esri |
| Inherits | Esri |
Public Functions
| Continuous | |
| Continuous | |
| virtual | ~ |
| Esri | field() const |
| void | set |
Detailed Description
Allows the supplied field to be changed and the analysis reevaluated. Analysis reevaluation may produce an updated result after changing the supplied field.
Changing the field supplied to an analysis and reevaluating is more performant than creating and evaluating a new analysis with the new field.
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 ContinuousField, ContinuousFieldFunction, ContinuousFieldFunction::evaluateAsync, BooleanFieldSupplier, and DiscreteFieldSupplier.
Member Function Documentation
[explicit] ContinuousFieldSupplier::ContinuousFieldSupplier (QObject *parent = nullptr)
Creates a ContinuousFieldSupplier with no field and the given parent.
- parent - The optional parent QObject.
ContinuousFieldFunction::evaluateAsync fails until field is populated.
[explicit] ContinuousFieldSupplier::ContinuousFieldSupplier (Esri::ArcGISRuntime::ContinuousField *field, QObject *parent = nullptr)
Creates a ContinuousFieldSupplier.
- field - The ContinuousField returned when this function is evaluated.
- parent - The optional parent QObject.
ContinuousFieldFunction::evaluateAsync fails if field is nullptr. However, creating a ContinuousFieldSupplier with no field can be useful in time series analysis. A nullptr initial field lets you define a time series analysis before its field is available. You can then defer evaluation until a field has been populated for each time frame.
[override virtual noexcept] ContinuousFieldSupplier::~ContinuousFieldSupplier ()
Destructor.
Esri::ArcGISRuntime::ContinuousField *ContinuousFieldSupplier::field() const
Returns the ContinuousField returned when this function is evaluated.
After changing the field, evaluation returns the updated field.
See also setField().
void ContinuousFieldSupplier::setField (Esri::ArcGISRuntime::ContinuousField *field)
Sets the field to field.
See also field.