Skip to content
  • LineOfSight
  • class Esri::ArcGISRuntime::LineOfSight

    A result for the line of sight analysis. More...

    Header: #include <LineOfSight.h>
    Since: Esri::ArcGISRuntime 300.0
    Inherits: Esri::ArcGISRuntime::Object

    Public Functions

    virtual ~LineOfSight() override
    Esri::ArcGISRuntime::Error error() const
    Esri::ArcGISRuntime::Polyline notVisibleLine() const
    float targetVisibility() const
    Esri::ArcGISRuntime::Polyline visibleLine() const

    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.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.