LocationLineOfSight Class

  • LocationLineOfSight
  • class Esri::ArcGISRuntime::LocationLineOfSight

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

    Header: #include <LocationLineOfSight.h>
    Since: Esri::ArcGISRuntime 100.2
    Inherits: Esri::ArcGISRuntime::LineOfSight

    This class was introduced in Esri::ArcGISRuntime 100.2.

    Public Functions

    LocationLineOfSight(const Esri::ArcGISRuntime::Point &observerLocation, const Esri::ArcGISRuntime::Point &targetLocation, QObject *parent = nullptr)
    virtual ~LocationLineOfSight() 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

    LocationLineOfSight 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).

    Member Function Documentation

    LocationLineOfSight::LocationLineOfSight(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] LocationLineOfSight::~LocationLineOfSight()

    Destructor.

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

    Returns the observer location.

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

    See also setObserverLocation().

    void LocationLineOfSight::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 LocationLineOfSight::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 LocationLineOfSight::targetLocation() const

    Returns the target location.

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

    See also setTargetLocation().

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