Skip To Content ArcGIS for Developers Sign In Dashboard

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>
Since: Esri::ArcGISRuntime 100.2
Inherits: LineOfSight

Public Functions

LocationLineOfSight(const Point &observerLocation, const Point &targetLocation, QObject *parent = nullptr)
~LocationLineOfSight()
Point observerLocation() const
void setObserverLocation(const Point &observerLocation)
void setTargetLocation(const Point &targetLocation)
Point targetLocation() const

Additional Inherited Members

Detailed Description

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

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 Point &observerLocation, const 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.

LocationLineOfSight::~LocationLineOfSight()

Destructor.

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

Point LocationLineOfSight::targetLocation() const

Returns the target location.

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

See also setTargetLocation().


Feedback on this topic?