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

    Parameters of a LineOfSightFunction. More...

    Header: #include <LineOfSightParameters.h>
    Since: Esri::ArcGISRuntime 300.0
    Inherits: Esri::ArcGISRuntime::Object

    Public Functions

    LineOfSightParameters(QObject *parent = nullptr)
    virtual ~LineOfSightParameters() override
    Esri::ArcGISRuntime::LineOfSightParameters *clone(QObject *parent = nullptr) const
    std::optional<double> elevationSamplingInterval() const
    Esri::ArcGISRuntime::ObserverTargetPairs *observerTargetPairs() const
    void setElevationSamplingInterval(std::optional<double> elevationSamplingInterval)
    void setObserverTargetPairs(Esri::ArcGISRuntime::ObserverTargetPairs *observerTargetPairs)

    Detailed Description

    Member Function Documentation

    [explicit] LineOfSightParameters::LineOfSightParameters(QObject *parent = nullptr)

    Creates a LineOfSightParameters.

    • parent - The optional parent QObject.

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

    Destructor.

    Esri::ArcGISRuntime::LineOfSightParameters *LineOfSightParameters::clone(QObject *parent = nullptr) const

    Returns a clone of the LineOfSightParameters with an optional parent.

    std::optional<double> LineOfSightParameters::elevationSamplingInterval() const

    Returns the interval at which the elevation source is sampled, in the horizontal units of the LineOfSightFunction elevation.

    A line of sight is evaluated by sampling the LineOfSightFunction elevation surface at discrete intervals, horizontally. This parameter indicates the size of the sampling interval. It is in the horizontal unit of the elevation surface SpatialReference.

    With a small sampling interval, line of sight evaluation samples the elevation surface at fine intervals giving a higher fidelity, and more accurate, line of sight. Use a resolution of std::nullopt to sample the elevation surface at its full resolution for the highest fidelity line of sight.

    With a large sampling interval, line of sight evaluation samples the elevation surface at coarser intervals, giving a lower fidelity, and more approximate, line of sight.

    Using a small resolution is computationally more expensive and will be slower in returning a result than if using a large sampling interval.

    The default value is std::nullopt.

    See also setElevationSamplingInterval(), Geometry::spatialReference, and SpatialReference::unit.

    Esri::ArcGISRuntime::ObserverTargetPairs *LineOfSightParameters::observerTargetPairs() const

    Defines and returns observer target pairs used in a LineOfSightFunction.

    See also setObserverTargetPairs().

    void LineOfSightParameters::setElevationSamplingInterval(std::optional<double> elevationSamplingInterval)

    Sets the elevationSamplingInterval to elevationSamplingInterval.

    See also elevationSamplingInterval.

    void LineOfSightParameters::setObserverTargetPairs(Esri::ArcGISRuntime::ObserverTargetPairs *observerTargetPairs)

    Sets the observerTargetPairs to observerTargetPairs.

    See also observerTargetPairs.

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