Skip To Content ArcGIS for Developers Sign In Dashboard

SceneQuickView Class

(Esri::ArcGISRuntime::SceneQuickView)

A 3D scene implemented as a QQuickItem component. More...

Header: #include <SceneQuickView>
Since: Esri::ArcGISRuntime 100.0
Inherits: QQuickFramebufferObject and SceneView

Public Functions

SceneQuickView(QQuickItem *parent = nullptr)
SceneQuickView(Scene *scene, QQuickItem *parent = nullptr)
~SceneQuickView()
QVariant attributionTop() const

Reimplemented Public Functions

virtual void setManualRendering(bool manualRendering)

Signals

void attributionRectChanged()
void attributionTextChanged()
void attributionTopChanged()
void drawStatusChanged(Esri::ArcGISRuntime::DrawStatus status)
void errorOccurred(Esri::ArcGISRuntime::Error error)
void exportImageCompleted(QUuid taskId, QImage image)
void identifyGraphicsOverlayCompleted(QUuid taskId, Esri::ArcGISRuntime::IdentifyGraphicsOverlayResult *identifyResult)
void identifyGraphicsOverlaysCompleted(QUuid taskId, QList<Esri::ArcGISRuntime::IdentifyGraphicsOverlayResult *> identifyResults)
void identifyLayerCompleted(QUuid taskId, Esri::ArcGISRuntime::IdentifyLayerResult *identifyResult)
void identifyLayersCompleted(QUuid taskId, QList<Esri::ArcGISRuntime::IdentifyLayerResult *> identifyResults)
void keyPressed(QKeyEvent &keyEvent)
void keyReleased(QKeyEvent &keyEvent)
void layerViewStateChanged(Esri::ArcGISRuntime::Layer *layer, Esri::ArcGISRuntime::LayerViewState layerViewState)
void manualRenderingChanged()
void mouseClicked(QMouseEvent &mouseEvent)
void mouseDoubleClicked(QMouseEvent &mouseEvent)
void mouseMoved(QMouseEvent &mouseEvent)
void mousePressed(QMouseEvent &mouseEvent)
void mousePressedAndHeld(QMouseEvent &mouseEvent)
void mouseReleased(QMouseEvent &mouseEvent)
void mouseWheelChanged(QWheelEvent &wheelEvent)
void navigatingChanged()
void rectChanged(QRectF rect)
void sceneChanged()
void screenToLocationCompleted(QUuid taskId, Esri::ArcGISRuntime::Point location)
void setBookmarkCompleted(bool succeeded)
void setViewpointCameraCompleted(bool succeeded)
void setViewpointCompleted(bool succeeded)
void spatialReferenceChanged()
void touched(QTouchEvent &event)
void viewpointChanged()

Additional Inherited Members

Detailed Description

A 3D scene implemented as a QQuickItem component.

A SceneQuickView renders data in a 3D scene and allows users to interact with the scene. In an MVC architecture, a SceneQuickView represents the view and a scene represents the model.

A SceneQuickView implements a scene view as a QQuickItem component. This allows it to be used in a user interface coded in QML while being controlled by C++ code.

Example:

Register the SceneQuickView type as a QML type:

qmlRegisterType<SceneQuickView>("Esri.Samples", 1, 0, "SceneView");

Declare the SceneQuickView in QML, and assign an object name:

SceneView {
    objectName: "sceneView"
    anchors.fill: parent
}

Obtain the SceneQuickView from C++ and set a Scene to the SceneQuickView:

// Create a scene with the imagery basemap and world elevation surface
m_sceneView = findChild<SceneQuickView*>("sceneView");
Scene* scene = new Scene(Basemap::imagery(this), this);
Surface* surface = new Surface(this);
surface->elevationSources()->append(new ArcGISTiledElevationSource(QUrl("https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer"), this));
scene->setBaseSurface(surface);

See also Scene, SceneView, and GeoView.

Member Function Documentation

SceneQuickView::SceneQuickView(QQuickItem *parent = nullptr)

Default constructor that takes an optional parent.

SceneQuickView::SceneQuickView(Scene *scene, QQuickItem *parent = nullptr)

Constructor that takes a scene and an optional parent.

SceneQuickView::~SceneQuickView()

Destructor.

[signal] void SceneQuickView::attributionRectChanged()

Emitted when the attribution bounding rectangle changes.

This function was introduced in Esri::ArcGISRuntime 100.1.

[signal] void SceneQuickView::attributionTextChanged()

Emitted when the attribution text changes.

This function was introduced in Esri::ArcGISRuntime 100.1.

QVariant SceneQuickView::attributionTop() const

Gets the top anchor line of the attribution bounding rectangle as an AnchorLine variant.

Other QtQuick items can be anchored to this property so that they display above the attribution text.

This function was introduced in Esri::ArcGISRuntime 100.1.

[signal] void SceneQuickView::attributionTopChanged()

Emitted when the attributionTop anchor line changes.

This function was introduced in Esri::ArcGISRuntime 100.1.

[signal] void SceneQuickView::drawStatusChanged(Esri::ArcGISRuntime::DrawStatus status)

Signal emitted when the DrawStatus changes.

[signal] void SceneQuickView::errorOccurred(Esri::ArcGISRuntime::Error error)

Signal emitted when an error occurs.

  • error - Details about the error.

[signal] void SceneQuickView::exportImageCompleted(QUuid taskId, QImage image)

Signal emitted when exportImage has completed.

[signal] void SceneQuickView::identifyGraphicsOverlayCompleted(QUuid taskId, Esri::ArcGISRuntime::IdentifyGraphicsOverlayResult *identifyResult)

Emitted when an identifyGraphicsOverlay operation completes.

  • taskId - The task ID for the asynchronous operation.
  • identifyResult - The identify graphics overlay result object.

The returned IdentifyGraphicsOverlayResult object has the SceneQuickView as its parent.

See also Returned QObjects Parenting.

[signal] void SceneQuickView::identifyGraphicsOverlaysCompleted(QUuid taskId, QList<Esri::ArcGISRuntime::IdentifyGraphicsOverlayResult *> identifyResults)

Emitted when an identifyGraphicsOverlays operation completes.

The returned IdentifyGraphicsOverlayResult objects have the SceneQuickView as their parent.

See also Returned QObjects Parenting.

[signal] void SceneQuickView::identifyLayerCompleted(QUuid taskId, Esri::ArcGISRuntime::IdentifyLayerResult *identifyResult)

Emitted when an identifyLayer operation completes.

  • taskId - The task ID for the asynchronous operation.
  • identifyResult - An IdentifyLayerResult object.

The returned IdentifyLayerResult object has the SceneQuickView as its parent.

See also Returned QObjects Parenting.

[signal] void SceneQuickView::identifyLayersCompleted(QUuid taskId, QList<Esri::ArcGISRuntime::IdentifyLayerResult *> identifyResults)

Emitted when an identifyLayers operation completes.

  • taskId - The task ID for the asynchronous operation.
  • identifyResults - A list of IdentifyLayerResult.

The returned IdentifyLayerResult objects have the SceneQuickView as their parent.

See also Returned QObjects Parenting.

[signal] void SceneQuickView::keyPressed(QKeyEvent &keyEvent)

Emitted when a key pressed has been detected.

  • keyEvent - The key event.

[signal] void SceneQuickView::keyReleased(QKeyEvent &keyEvent)

Emitted when a key release has been detected.

  • keyEvent - The key event.

[signal] void SceneQuickView::layerViewStateChanged(Esri::ArcGISRuntime::Layer *layer, Esri::ArcGISRuntime::LayerViewState layerViewState)

Signal emitted when the LayerViewState changes.

  • layer - The layer that had a state change.
  • layerViewState - The LayerViewState with the new state information.

The returned Layer object has the SceneQuickView as its parent.

See also Returned QObjects Parenting.

[signal] void SceneQuickView::manualRenderingChanged()

Signal emitted when manualRendering changes.

This function was introduced in Esri::ArcGISRuntime 100.6.

[signal] void SceneQuickView::mouseClicked(QMouseEvent &mouseEvent)

Emitted when mouse is pressed and released over the same location.

  • mouseEvent - The mouse event.

[signal] void SceneQuickView::mouseDoubleClicked(QMouseEvent &mouseEvent)

Emitted when a double click even is detected.

  • mouseEvent - The mouse event.

[signal] void SceneQuickView::mouseMoved(QMouseEvent &mouseEvent)

Emitted when mouse is moved.

  • mouseEvent - The mouse event.

[signal] void SceneQuickView::mousePressed(QMouseEvent &mouseEvent)

Emitted when mouse is pressed.

  • mouseEvent - The mouse event.

[signal] void SceneQuickView::mousePressedAndHeld(QMouseEvent &mouseEvent)

Emitted when there is a long press and hold (currently 800ms) on the same point.

  • mouseEvent - The mouse event.

[signal] void SceneQuickView::mouseReleased(QMouseEvent &mouseEvent)

Emitted when mouse is release.

  • mouseEvent - The mouse event.

[signal] void SceneQuickView::mouseWheelChanged(QWheelEvent &wheelEvent)

Emitted when mouse wheel movement has been detected.

  • wheelEvent - The wheel event.

Signal emitted when the view has started or completed navigating.

[signal] void SceneQuickView::rectChanged(QRectF rect)

Emitted when the visible area changes.

  • rect - The new rect representing the visible area.

[signal] void SceneQuickView::sceneChanged()

Emitted when the scene changes.

This function was introduced in Esri::ArcGISRuntime 100.3.

[signal] void SceneQuickView::screenToLocationCompleted(QUuid taskId, Esri::ArcGISRuntime::Point location)

Signal emitted when the screenToLocation operation completes.

  • taskId - The task ID from the screenToLocation async task.
  • location - The location on the scene view.

[signal] void SceneQuickView::setBookmarkCompleted(bool succeeded)

Signal emitted when a bookmark has been set.

  • succeeded - Whether the bookmark was successfully set.

This function was introduced in Esri::ArcGISRuntime 100.3.

[virtual] void SceneQuickView::setManualRendering(bool manualRendering)

Reimplemented from SceneView::setManualRendering().

Sets whether manual rendering is enabled to manualRendering.

This is a convenience property to allow access directly from QML.

This function was introduced in Esri::ArcGISRuntime 100.6.

See also SceneView::isManualRendering.

[signal] void SceneQuickView::setViewpointCameraCompleted(bool succeeded)

Signal emitted when the viewpoint with camera has been set.

  • succeeded - Whether the viewpoint was successfully set.

[signal] void SceneQuickView::setViewpointCompleted(bool succeeded)

Signal emitted when the viewpoint has been set.

  • succeeded - Whether the viewpoint was successfully set.

[signal] void SceneQuickView::spatialReferenceChanged()

Signal emitted when the SpatialReference changed.

[signal] void SceneQuickView::touched(QTouchEvent &event)

Emitted when a touch event has been detected.

Accept the event to prevent the SceneQuickView from performing its default gesture interaction behavior.

  • event - The touch event.

[signal] void SceneQuickView::viewpointChanged()

Emitted when the viewpoint changes.


Feedback on this topic?