LineOfSight Class

  • LineOfSight
  • class Esri::ArcGISRuntime::LineOfSight

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

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

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

    This class was introduced in Esri::ArcGISRuntime 100.2.

    Public Functions

    virtual ~LineOfSight() override
    Esri::ArcGISRuntime::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()

    Detailed Description

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

    Member Function Documentation

    [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.

    [override virtual] 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().

    Esri::ArcGISRuntime::LineOfSightTargetVisibility LineOfSight::targetVisibility() const

    Returns the target visibility state.

    See also targetVisibilityChanged.

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

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