Skip to content
  • ExploratoryLineOfSight
  • class Esri::ArcGISRuntime::ExploratoryLineOfSight

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

    Header: #include <ExploratoryLineOfSight.h>
    Since: Esri::ArcGISRuntime 300.0
    Inherits: Esri::ArcGISRuntime::Analysis
    Inherited By:

    Esri::ArcGISRuntime::ExploratoryGeoElementLineOfSight and Esri::ArcGISRuntime::ExploratoryLocationLineOfSight

    Public Functions

    virtual ~ExploratoryLineOfSight() override
    Esri::ArcGISRuntime::ExploratoryLineOfSightTargetVisibility targetVisibility() const

    Signals

    void targetVisibilityChanged(Esri::ArcGISRuntime::ExploratoryLineOfSightTargetVisibility 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 ExploratoryLineOfSight analysis result is a line rendered between the observer and target with distinct colors representing visible and obstructed segments.

    When at least one of the two ends (the observer and the target) of the line is placed outside the view, the colors of the visible part of the line may not accurately represent the hidden part. In such cases, the line is rendered gray. To display the color, move both the observer and the target into the view.

    Relevant samples:

    Member Function Documentation

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

    Destructor.

    [static] float ExploratoryLineOfSight::lineWidth()

    Returns the line width used to render ExploratoryLineOfSight analysis results.

    See also setLineWidth().

    [static] QColor ExploratoryLineOfSight::obstructedColor()

    Returns the color used to render segments that are not visible along ExploratoryLineOfSight 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 ExploratoryLineOfSight::setLineWidth(float lineWidth)

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

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

    See also lineWidth().

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

    Sets the color used to render segments that are not visible along ExploratoryLineOfSight 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 ExploratoryLineOfSight analyses within the application.

    See also obstructedColor().

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

    Sets the color used to render segments that are visible along ExploratoryLineOfSight 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 ExploratoryLineOfSight analyses within the application.

    See also visibleColor().

    Esri::ArcGISRuntime::ExploratoryLineOfSightTargetVisibility ExploratoryLineOfSight::targetVisibility() const

    Returns the target visibility state.

    See also targetVisibilityChanged.

    [signal] void ExploratoryLineOfSight::targetVisibilityChanged(Esri::ArcGISRuntime::ExploratoryLineOfSightTargetVisibility targetVisibility)

    Signal emitted when the targetVisibility changes for this ExploratoryLineOfSight.

    [static] QColor ExploratoryLineOfSight::visibleColor()

    Returns the color used to render segments that are visible along ExploratoryLineOfSight 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.