A result for the line of sight analysis. More...
| Header | #include <Line |
| Since | Esri |
| Inherits | Esri |
Public Functions
| virtual | ~ |
| Esri | error() const |
| Esri | not |
| float | target |
| Esri | visible |
Detailed Description
Member Function Documentation
[override virtual noexcept] LineOfSight::~LineOfSight ()
Destructor.
Esri::ArcGISRuntime::Error LineOfSight::error() const
Returns an error if the line of sight could not be evaluated. nullptr if successful.
Esri::ArcGISRuntime::Polyline LineOfSight::notVisibleLine () const
Returns the part of the line of sight that is not visible to the observer.
If there is a clear line of sight between the target position and observer, then the geometry is empty. If an error occurs during evaluation, then the geometry is empty.
float LineOfSight::targetVisibility () const
Returns the visibility state between the target and observer positions, where a value of 1 indicates a clear line of sight and 0 indicates that the target is not visible to the observer. If an error occurs during evaluation, then NaN will be returned.
The end point of visibleLine and the start point of notVisibleLine indicate the position at which the line of sight is first obstructed.
Esri::ArcGISRuntime::Polyline LineOfSight::visibleLine () const
Returns the part of the line of sight that is visible to the observer.
If there are no portions of unobstructed line of sight between the observer and the target, for example if the observer point is below the terrain, the geometry is empty. If an error occurs during evaluation, the geometry is empty.