A function that samples a BooleanField when evaluated, returning a BooleanFieldSample. More...
| Header | #include <Boolean |
| Since | Esri |
| Inherits | Esri |
Public Functions
| virtual | ~ |
| QFuture | evaluate |
| Esri | position() const |
| void | set |
Static Public Members
| Esri | create( |
| Esri | create( |
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.
Relevant samples:
- Get field function value from a point: Sample field function values at a given position from a field analysis.
See also BooleanField, BooleanFieldFunction, and BooleanFieldSample.
Member Function Documentation
[override virtual noexcept] BooleanFieldSampleFunction::~BooleanFieldSampleFunction ()
Destructor.
[static] Esri::ArcGISRuntime::BooleanFieldSampleFunction *BooleanFieldSampleFunction::create(Esri::ArcGISRuntime::BooleanFieldFunction *field, QObject *parent = nullptr)
Creates a BooleanFieldSampleFunction with an empty initial position.
- field - A function that returns the BooleanField to sample.
- parent - The optional parent QObject.
evaluateAsync fails if position is empty. However, creating a BooleanFieldSampleFunction 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.
See also BooleanFieldFunction::sample.
[static] Esri::ArcGISRuntime::BooleanFieldSampleFunction *BooleanFieldSampleFunction::create(Esri::ArcGISRuntime::BooleanFieldFunction *field, const Esri::ArcGISRuntime::Point &position, QObject *parent = nullptr)
Creates a BooleanFieldSampleFunction.
- field - A function that returns the BooleanField to sample.
- position - The position at which to sample the BooleanField.
- parent - The optional parent QObject.
evaluateAsync fails if position is empty. However, creating a BooleanFieldSampleFunction 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.
See also BooleanFieldFunction::sample.
QFuture<Esri::ArcGISRuntime::BooleanFieldSample *> BooleanFieldSampleFunction::evaluateAsync (QObject *parent = nullptr)
Evaluates the function with an optional parent for the returned sample.
Evaluation fails if position is empty.
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::Point BooleanFieldSampleFunction::position() const
Returns the position at which to sample the BooleanField.
After changing the position, evaluation uses the updated position to produce an updated result.
See also setPosition().
void BooleanFieldSampleFunction::setPosition (const Esri::ArcGISRuntime::Point &position)
Sets the position to position.
See also position.