• ExploratoryLocationLineOfSight
  • class Esri::ArcGISRuntime::ExploratoryLocationLineOfSight

    An analysis object that evaluates visibility along a line defined by observer and target point objects. More...

    Header: #include <ExploratoryLocationLineOfSight.h>
    Since: Esri::ArcGISRuntime 300.0
    Inherits: Esri::ArcGISRuntime::ExploratoryLineOfSight

    Public Functions

    ExploratoryLocationLineOfSight(const Esri::ArcGISRuntime::Point &observerLocation, const Esri::ArcGISRuntime::Point &targetLocation, QObject *parent = nullptr)
    virtual ~ExploratoryLocationLineOfSight() override
    Esri::ArcGISRuntime::Point observerLocation() const
    void setObserverLocation(const Esri::ArcGISRuntime::Point &observerLocation)
    void setTargetLocation(const Esri::ArcGISRuntime::Point &targetLocation)
    Esri::ArcGISRuntime::Point targetLocation() const

    Detailed Description

    ExploratoryLocationLineOfSight renders a line between an observer location and a target location, each defined using a Point geometry. Visible and obstructed portions of the line are displayed with unique colors (green and red by default).

    Relevant samples:

    See also Analysis.

    Member Function Documentation

    ExploratoryLocationLineOfSight::ExploratoryLocationLineOfSight(const Esri::ArcGISRuntime::Point &observerLocation, const Esri::ArcGISRuntime::Point &targetLocation, QObject *parent = nullptr)

    Creates a LineOfSight analysis object that defines an observer and a target.

    • observerLocation - A Point that defines the location of the observer.
    • targetLocation - A Point that defines the location of the target.
    • parent - An optional parent.

    [override virtual noexcept] ExploratoryLocationLineOfSight::~ExploratoryLocationLineOfSight()

    Destructor.

    Esri::ArcGISRuntime::Point ExploratoryLocationLineOfSight::observerLocation() const

    Returns the observer location.

    The point coordinates (x,y,z) define the observer location in 3D space.

    See also setObserverLocation().

    void ExploratoryLocationLineOfSight::setObserverLocation(const Esri::ArcGISRuntime::Point &observerLocation)

    Sets the observer location to observerLocation.

    The point coordinates (x,y,z) define the observer location in 3D space.

    See also observerLocation().

    void ExploratoryLocationLineOfSight::setTargetLocation(const Esri::ArcGISRuntime::Point &targetLocation)

    Sets the target point location to targetLocation.

    The point coordinates (x,y,z) define the target location in 3D space.

    See also targetLocation().

    Esri::ArcGISRuntime::Point ExploratoryLocationLineOfSight::targetLocation() const

    Returns the target location.

    The point coordinates (x,y,z) define the target location in 3D space.

    See also setTargetLocation().