AnalysisOverlay manages the display of one or more analyses in a scene view. More...
Header: | #include <AnalysisOverlay.h> |
Since: | Esri::ArcGISRuntime 100.2 |
Inherits: | Esri::ArcGISRuntime::Object |
Public Functions
AnalysisOverlay(QObject *parent = nullptr) | |
virtual | ~AnalysisOverlay() override |
Esri::ArcGISRuntime::AnalysisListModel * | analyses() const |
bool | isVisible() const |
void | setVisible(bool visible) |
Detailed Description
AnalysisOverlay is a collection of related analyses and controls the visibility for all members of the collection. A scene view can contain many AnalysisOverlays.
Relevant samples:
- Distance measurement analysis: Measure distances between two points in 3D.
- Line of sight (geoelement): Show a line of sight between two moving objects.
- Line of sight (location): Perform a line of sight analysis between two points in real time.
- Viewshed (camera): This sample demonstrates how to calculate a Viewshed from a SceneView's current Camera Viewpoint.
- Viewshed (GeoElement): Analyze the viewshed for an object (GeoElement) in a scene.
- Viewshed (location): Perform a viewshed analysis from a defined vantage point.
Member Function Documentation
[explicit]
AnalysisOverlay::AnalysisOverlay (QObject *parent = nullptr)
Constructs an empty AnalysisOverlay object.
- parent Parent object.
[override virtual]
AnalysisOverlay::~AnalysisOverlay ()
Destructor.
Esri::ArcGISRuntime::AnalysisListModel *AnalysisOverlay::analyses() const
Returns the collection of analysis objects managed by the AnalysisOverlay.
The collection is specific to an AnalysisOverlay so you can't reuse an analyses collection coming from another AnalysisOverlay. You have to create a new layer collection.
bool AnalysisOverlay::isVisible () const
Returns the visibility for the AnalysisOverlay.
If the overlay's visibility is false
, none of the Analyses in the collection will display. If true
, only those Analyses whose visibility is also true
will display. Will return false
if an error occurs.
void AnalysisOverlay::setVisible (bool visible)
Sets the visible to visible.
See also isVisible.