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

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

    Header: #include <ExploratoryGeoElementLineOfSight.h>
    Since: Esri::ArcGISRuntime 300.0
    Inherits: Esri::ArcGISRuntime::ExploratoryLineOfSight

    Public Functions

    ExploratoryGeoElementLineOfSight(Esri::ArcGISRuntime::GeoElement *observerGeoElement, Esri::ArcGISRuntime::GeoElement *targetGeoElement, QObject *parent = nullptr)
    virtual ~ExploratoryGeoElementLineOfSight() override
    Esri::ArcGISRuntime::GeoElement *observerGeoElement() const
    double observerOffsetX() const
    double observerOffsetY() const
    double observerOffsetZ() const
    void setObserverOffsetX(double offsetX)
    void setObserverOffsetY(double offsetY)
    void setObserverOffsetZ(double offsetZ)
    void setTargetOffsetX(double offsetX)
    void setTargetOffsetY(double offsetY)
    void setTargetOffsetZ(double offsetZ)
    Esri::ArcGISRuntime::GeoElement *targetGeoElement() const
    double targetOffsetX() const
    double targetOffsetY() const
    double targetOffsetZ() const

    Detailed Description

    ExploratoryGeoElementLineOfSight renders a line between an observer GeoElement and a target GeoElement (each using Point geometry). Visible and obstructed portions of the line are displayed with unique colors (green and red by default). The observer and/or target GeoElements may be moving, in which case visibility will be dynamically updated. Supported GeoElement types are Graphic, Feature, and DynamicEntity.

    The observer and target locations are determined by the location of the GeoElement plus any defined offsets (in X, Y, or Z). The offset positions of the observer and target relative to the GeoElement is always maintained, even when the GeoElement moves.

    Relevant samples:

    Member Function Documentation

    ExploratoryGeoElementLineOfSight::ExploratoryGeoElementLineOfSight(Esri::ArcGISRuntime::GeoElement *observerGeoElement, Esri::ArcGISRuntime::GeoElement *targetGeoElement, QObject *parent = nullptr)

    Creates a ExploratoryLineOfSight analysis object that defines an observer and a target using point GeoElement objects.

    • observerGeoElement - A GeoElement that defines the observer.
    • targetGeoElement - A GeoElement that defines the target.
    • parent - An optional parent.

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

    Destructor.

    Esri::ArcGISRuntime::GeoElement *ExploratoryGeoElementLineOfSight::observerGeoElement() const

    Returns the observer GeoElement of the ExploratoryGeoElementLineOfSight.

    The observer GeoElement must have point geometry. Supported GeoElement types are Graphic, Feature, and DynamicEntity.

    double ExploratoryGeoElementLineOfSight::observerOffsetX() const

    Returns the location offset applied to the observer GeoElement in the X direction.

    The observer location is determined by the location of the GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the observer relative to the GeoElement is always maintained, even when the GeoElement moves.

    See also setObserverOffsetX().

    double ExploratoryGeoElementLineOfSight::observerOffsetY() const

    Returns the location offset applied to the observer GeoElement in the Y direction.

    The observer location is determined by the location of the GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the observer relative to the GeoElement is always maintained, even when the GeoElement moves.

    See also setObserverOffsetY().

    double ExploratoryGeoElementLineOfSight::observerOffsetZ() const

    Returns the location offset applied to the observer GeoElement in the Z direction.

    The observer location is determined by the location of the GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the observer relative to the GeoElement is always maintained, even when the GeoElement moves.

    See also setObserverOffsetZ().

    void ExploratoryGeoElementLineOfSight::setObserverOffsetX(double offsetX)

    Sets the location Y offset applied to the observer GeoElement to offsetX.

    See also observerOffsetX().

    void ExploratoryGeoElementLineOfSight::setObserverOffsetY(double offsetY)

    Sets the location Y offset applied to the observer GeoElement to offsetY.

    See also observerOffsetY().

    void ExploratoryGeoElementLineOfSight::setObserverOffsetZ(double offsetZ)

    Sets the location Z offset applied to the observer GeoElement to offsetZ.

    See also observerOffsetZ().

    void ExploratoryGeoElementLineOfSight::setTargetOffsetX(double offsetX)

    Sets the location X offset applied to the target GeoElement to offsetX.

    See also targetOffsetX().

    void ExploratoryGeoElementLineOfSight::setTargetOffsetY(double offsetY)

    Sets the location Y offset applied to the target GeoElemen to offsetY.

    See also targetOffsetY().

    void ExploratoryGeoElementLineOfSight::setTargetOffsetZ(double offsetZ)

    Sets the location Z offset applied to the target GeoElement to offsetZ.

    See also targetOffsetZ().

    Esri::ArcGISRuntime::GeoElement *ExploratoryGeoElementLineOfSight::targetGeoElement() const

    Returns the target GeoElement of the ExploratoryGeoElementLineOfSight.

    The target GeoElement must have point geometry. Supported GeoElement types are Graphic, Feature, and DynamicEntity.

    double ExploratoryGeoElementLineOfSight::targetOffsetX() const

    Returns the location offset applied to the target GeoElement in the X direction.

    The target location is determined by the location of the GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the target relative to the GeoElement is always maintained, even when the GeoElement moves.

    See also setTargetOffsetX().

    double ExploratoryGeoElementLineOfSight::targetOffsetY() const

    Returns the location offset applied to the target GeoElement in the Y direction.

    The target location is determined by the location of the GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the target relative to the GeoElement is always maintained, even when the GeoElement moves.

    See also setTargetOffsetY().

    double ExploratoryGeoElementLineOfSight::targetOffsetZ() const

    Returns the location offset applied to the target GeoElement in the Z direction.

    The target location is determined by the location of the GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the target relative to the GeoElement is always maintained, even when the GeoElement moves.

    See also setTargetOffsetZ().

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