Defines observer and target positions for use in surface visibility line of sight analysis. More...
| Header | #include <Observer |
| Since | Esri |
| Inherits | Esri |
Public Functions
| virtual | ~ |
| QList | pairs() const |
Static Public Members
| Esri | create(const QList |
| Esri | create(const QList |
Detailed Description
Member Function Documentation
[override virtual noexcept] ObserverTargetPairs::~ObserverTargetPairs ()
Destructor.
[static] Esri::ArcGISRuntime::ObserverTargetPairs *ObserverTargetPairs::create(const QList<Esri::ArcGISRuntime::ObserverTargetPair *> &pairs, QObject *parent = nullptr)
Creates an arbitrary arrangement of observer and target pairs.
- pairs - Observer and target positions for the LineOfSightParameters. If this is empty, LineOfSightFunction::evaluateAsync will return an empty set of results.
- parent - The optional parent QObject.
[static] Esri::ArcGISRuntime::ObserverTargetPairs *ObserverTargetPairs::create(const QList<Esri::ArcGISRuntime::LineOfSightPosition *> &observerPositions , const QList<Esri::ArcGISRuntime::LineOfSightPosition *> &targetPositions , QObject *parent = nullptr)
Creates an observer target pair for each combination of the given observer and target positions.
- observerPositions - Observer positions for the LineOfSightParameters. If this is empty, LineOfSightFunction::evaluateAsync will return an empty set of results.
- targetPositions - Target positions for the LineOfSightParameters. If this is empty, LineOfSightFunction::evaluateAsync will return an empty set of results.
- parent - The optional parent QObject.
Allows creation of pairs for the following scenarios: - One to one: Assess the visibility of one target to one observer. - One to many: Assess the visibility of multiple targets to one observer. - Many to one: Assess the visibility of one target to multiple observers. - Many to many: Assess the visibility of multiple targets to multiple observers.
pairs are ordered by observer, then target.
QList<Esri::ArcGISRuntime::ObserverTargetPair *> ObserverTargetPairs::pairs() const
Returns pairs of observers and targets, with each pair defining a single line of sight.
The collection of LineOfSight objects returned from LineOfSightFunction::evaluateAsync is ordered to match these pairs. Each LineOfSight corresponds to the ObserverTargetPair at the same index.
If this is empty, LineOfSightFunction::evaluateAsync will return an empty set of results.
See also LineOfSightFunction::evaluateAsync and LineOfSightParameters::observerTargetPairs.