A DiscreteFieldFunction that returns a user-supplied DiscreteField when evaluated. More...
| Header | #include <Discrete |
| Since | Esri |
| Inherits | Esri |
Public Functions
| Discrete | |
| Discrete | |
| 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.
See also DiscreteField, DiscreteFieldFunction, DiscreteFieldFunction::evaluateAsync, BooleanFieldSupplier, and ContinuousFieldSupplier.
Member Function Documentation
[explicit] DiscreteFieldSupplier::DiscreteFieldSupplier (QObject *parent = nullptr)
Creates a DiscreteFieldSupplier with no field and the given parent.
- parent - The optional parent QObject.
DiscreteFieldFunction::evaluateAsync fails until field is populated.
[explicit] DiscreteFieldSupplier::DiscreteFieldSupplier (Esri::ArcGISRuntime::DiscreteField *field, QObject *parent = nullptr)
Creates a DiscreteFieldSupplier.
- field - The DiscreteField returned when this function is evaluated.
- parent - The optional parent QObject.
DiscreteFieldFunction::evaluateAsync fails if field is nullptr. However, creating a DiscreteFieldSupplier 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] DiscreteFieldSupplier::~DiscreteFieldSupplier ()
Destructor.
Esri::ArcGISRuntime::DiscreteField *DiscreteFieldSupplier::field() const
Returns the DiscreteField returned when this function is evaluated.
After changing the field, evaluation returns the updated field.
See also setField().
void DiscreteFieldSupplier::setField (Esri::ArcGISRuntime::DiscreteField *field)
Sets the field to field.
See also field.