ViewshedFunction class final

Evaluates an elevation surface to produce a viewshed, determining which areas are visible and which are not visible to an observer.

Use ContinuousFieldFunction.evaluate to compute the result of this function.

In the resulting viewshed, visible areas have a value of 1, while areas that are not visible have a value of 0.

Results are updated when changes are made to parameters of this function (or to parameters of functions from which it is composed).

The function performs analysis at the full resolution of the data. To perform analysis at the current rendered resolution of scene layers or 3D graphics, use the ExploratoryViewshed tool.

Inheritance
Available extensions

Constructors

ViewshedFunction.withContinuousField({required ContinuousField elevation, required ViewshedParameters parameters})
Creates a ViewshedFunction.
factory
ViewshedFunction.withContinuousFieldFunction({required ContinuousFieldFunction elevation, required ViewshedParameters parameters})
Creates a ViewshedFunction.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
parameters ViewshedParameters
Parameters that define properties like observer position and elevation sampling interval for the ViewshedFunction.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

abs() ContinuousFieldFunction
Composes a function that returns the absolute value of this function's field result across its extent.
inherited
addOtherField(ContinuousFieldFunction otherField) ContinuousFieldFunction
Composes a function that adds, point-wise, this function's field result and another across their spatial intersection.
inherited
addValue(double value) ContinuousFieldFunction
Composes a function that adds, point-wise, a value to this function's field result across its extent.
inherited
ceil() ContinuousFieldFunction
Composes a function that rounds this function's field result, point-wise, upwards to the nearest integer across its extent.
inherited
clip(Envelope extent) ContinuousFieldFunction
Composes a function that clips this function's field result such that it does not extend beyond the provided extent.
inherited
divideByOtherField(ContinuousFieldFunction otherField) ContinuousFieldFunction
Composes a function that divides, point-wise, this function's field result by another across their spatial intersection.
inherited
divideByValue(double value) ContinuousFieldFunction
Composes a function that divides, point-wise, this function's field result by a value across its extent.
inherited
evaluate() Future<ContinuousField>
Evaluates the result of the function.
inherited
floor() ContinuousFieldFunction
Composes a function that rounds this function's field result, point-wise, downwards to the nearest integer across its extent.
inherited
hasData() BooleanFieldFunction
Composes a function that identifies, point-wise, where this function's field result has data across its extent.
inherited
isGreaterThanOrEqualToOtherField(ContinuousFieldFunction otherField) BooleanFieldFunction
Composes a function that indicates if, point-wise, this function's field result is greater than or equal to another.
inherited
isGreaterThanOrEqualToValue(double value) BooleanFieldFunction
Composes a function that indicates if, point-wise, this function's field result is greater than or equal to a given value.
inherited
isGreaterThanOtherField(ContinuousFieldFunction otherField) BooleanFieldFunction
Composes a function that indicates if, point-wise, this function's field result is greater than another.
inherited
isGreaterThanValue(double value) BooleanFieldFunction
Composes a function that indicates if, point-wise, this function's field result is greater than a given value.
inherited
isLessThanOrEqualToOtherField(ContinuousFieldFunction otherField) BooleanFieldFunction
Composes a function that indicates if, point-wise, this function's field result is less than or equal to another.
inherited
isLessThanOrEqualToValue(double value) BooleanFieldFunction
Composes a function that indicates if, point-wise, this function's field result is less than or equal to a given value.
inherited
isLessThanOtherField(ContinuousFieldFunction otherField) BooleanFieldFunction
Composes a function that indicates if, point-wise, this function's field result is less than another.
inherited
isLessThanValue(double value) BooleanFieldFunction
Composes a function that indicates if, point-wise, this function's field result is less than a given value.
inherited
mask(BooleanFieldFunction selection) ContinuousFieldFunction
Composes a function that applies a mask to this function's field result.
inherited
multiplyByOtherField(ContinuousFieldFunction otherField) ContinuousFieldFunction
Composes a function that multiplies, point-wise, this function's field result and another across their spatial intersection.
inherited
multiplyByValue(double value) ContinuousFieldFunction
Composes a function that multiplies, point-wise, this function's field result by a value across its extent.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replaceWithOtherFieldIf({required BooleanFieldFunction selection, required ContinuousFieldFunction otherField}) ContinuousFieldFunction
Composes a function that preserves values from this function's field result or replaces them with values from another.
inherited
replaceWithValueIf({required BooleanFieldFunction selection, required double value}) ContinuousFieldFunction
Composes a function that preserves values from this function's field result or replaces them with a constant value.
inherited
round() ContinuousFieldFunction
Composes a function that rounds this function's field result, point-wise, to the nearest integer.
inherited
subtractOtherField(ContinuousFieldFunction otherField) ContinuousFieldFunction
Composes a function that subtracts, point-wise, another field from this function's field result across their spatial intersection.
inherited
subtractValue(double value) ContinuousFieldFunction
Composes a function that subtracts, point-wise, a value from this function's field result across its extent.
inherited
toDiscreteFieldFunction() DiscreteFieldFunction
Composes a function that casts, point-wise, float values from this function's field result to integer values across its extent.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator *(Object other) ContinuousFieldFunction

Available on ContinuousFieldFunction, provided by the ContinuousFieldOperators extension

Composes a function that multiplies, point-wise, this function's result by other, using ContinuousFieldFunction.multiplyByValue or ContinuousFieldFunction.multiplyByOtherField.
operator +(Object other) ContinuousFieldFunction

Available on ContinuousFieldFunction, provided by the ContinuousFieldOperators extension

Composes a function that adds, point-wise, other to this function's result, using ContinuousFieldFunction.addValue or ContinuousFieldFunction.addOtherField.
operator -(Object other) ContinuousFieldFunction

Available on ContinuousFieldFunction, provided by the ContinuousFieldOperators extension

Composes a function that subtracts, point-wise, other from this function's result, using ContinuousFieldFunction.subtractValue or ContinuousFieldFunction.subtractOtherField.
operator /(Object other) ContinuousFieldFunction

Available on ContinuousFieldFunction, provided by the ContinuousFieldOperators extension

Composes a function that divides, point-wise, this function's result by other, using ContinuousFieldFunction.divideByValue or ContinuousFieldFunction.divideByOtherField.
operator <(Object other) BooleanFieldFunction

Available on ContinuousFieldFunction, provided by the ContinuousFieldOperators extension

Composes a function that compares, point-wise, this function's result to other, using ContinuousFieldFunction.isLessThanValue or ContinuousFieldFunction.isLessThanOtherField.
operator <=(Object other) BooleanFieldFunction

Available on ContinuousFieldFunction, provided by the ContinuousFieldOperators extension

Composes a function that compares, point-wise, this function's result to other, using ContinuousFieldFunction.isLessThanOrEqualToValue or ContinuousFieldFunction.isLessThanOrEqualToOtherField.
operator ==(Object other) bool
The equality operator.
inherited
operator >(Object other) BooleanFieldFunction

Available on ContinuousFieldFunction, provided by the ContinuousFieldOperators extension

Composes a function that compares, point-wise, this function's result to other, using ContinuousFieldFunction.isGreaterThanValue or ContinuousFieldFunction.isGreaterThanOtherField.
operator >=(Object other) BooleanFieldFunction

Available on ContinuousFieldFunction, provided by the ContinuousFieldOperators extension

Composes a function that compares, point-wise, this function's result to other, using ContinuousFieldFunction.isGreaterThanOrEqualToValue or ContinuousFieldFunction.isGreaterThanOrEqualToOtherField.
operator unary-() ContinuousFieldFunction

Available on ContinuousFieldFunction, provided by the ContinuousFieldOperators extension

Composes a function that multiplies, point-wise, this function's result by -1.