Skip To Content ArcGIS for Developers Sign In Dashboard

LineOfSight Class

(Esri::ArcGISRuntime::LineOfSight)

A base class containing common functionality for line-of-sight analysis objects. More...

Header: #include <LineOfSight>
Since: Esri::ArcGISRuntime 100.2
Inherits: Analysis
Inherited By:

Esri::ArcGISRuntime::GeoElementLineOfSight and Esri::ArcGISRuntime::LocationLineOfSight

Public Functions

~LineOfSight()
LineOfSightTargetVisibility targetVisibility() const

Signals

void targetVisibilityChanged(Esri::ArcGISRuntime::LineOfSightTargetVisibility targetVisibility)

Static Public Members

float lineWidth()
QColor obstructedColor()
void setLineWidth(float lineWidth)
void setObstructedColor(const QColor &obstructedColor)
void setVisibleColor(const QColor &visibleColor)
QColor visibleColor()
  • 10 static public members inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

A base class containing common functionality for line-of-sight analysis objects.

The LineOfSight analysis result is a line rendered between the observer and target with distinct colors representing visible and obstructed segments.

Member Function Documentation

LineOfSight::~LineOfSight()

Destructor.

[static] float LineOfSight::lineWidth()

Returns the line width used to render LineOfSight analysis results.

See also setLineWidth().

[static] QColor LineOfSight::obstructedColor()

Returns the color used to render segments that are not visible along LineOfSight analysis results.

Sections of the line between the observer and the target that are obstructed (not visible) are drawn with the specified color.

See also setObstructedColor().

[static] void LineOfSight::setLineWidth(float lineWidth)

Sets the line width used to render LineOfSight analysis results to lineWidth.

This is a global setting and applies to all LineOfSight analyses within the application.

See also lineWidth().

[static] void LineOfSight::setObstructedColor(const QColor &obstructedColor)

Sets the color used to render segments that are not visible along LineOfSight analysis results to obstructedColor.

Sections of the line between the observer and the target that are obstructed (not visible) are drawn with the specified color.

This is a global setting and applies to all LineOfSight analyses within the application.

See also obstructedColor().

[static] void LineOfSight::setVisibleColor(const QColor &visibleColor)

Sets the color used to render segments that are visible along LineOfSight analysis results to visibleColor.

Sections of the line between the observer and the target that are visible are drawn with the specified color.

This is a global setting and applies to all LineOfSight analyses within the application.

See also visibleColor().

LineOfSightTargetVisibility LineOfSight::targetVisibility() const

Returns the target visibility state.

See also targetVisibilityChanged.

[signal] void LineOfSight::targetVisibilityChanged(Esri::ArcGISRuntime::LineOfSightTargetVisibility targetVisibility)

Signal emitted when the targetVisibility changes for this LineOfSight.

  • targetVisibility - The target visibility state of the LineOfSight.

[static] QColor LineOfSight::visibleColor()

Returns the color used to render segments that are visible along LineOfSight analysis results.

Sections of the line between the observer and the target that are visible are drawn with the specified color.

See also setVisibleColor().


Feedback on this topic?