Parameters of a LineOfSightFunction. More...
| Header | #include <Line |
| Since | Esri |
| Inherits | Esri |
Public Functions
| Line | |
| virtual | ~ |
| Esri | clone(QObject *parent = nullptr) const |
| std | elevation |
| Esri | observer |
| void | set |
| void | set |
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.