;

ArcGISSceneLayer Class

  • ArcGISSceneLayer
  • class Esri::ArcGISRuntime::ArcGISSceneLayer

    A layer to visualize an ArcGIS scene service. Scene layers display content from a scene service or a scene package. More...

    Header: #include <ArcGISSceneLayer>
    Since: Esri::ArcGISRuntime 100.0
    Inherits: Esri::ArcGISRuntime::Layer, Esri::ArcGISRuntime::ApiKeyResource, and Esri::ArcGISRuntime::RemoteResource

    This class was introduced in Esri::ArcGISRuntime 100.0.

    Public Functions

    ArcGISSceneLayer(Esri::ArcGISRuntime::Item *item, QObject *parent = nullptr)
    ArcGISSceneLayer(const QUrl &url, Esri::ArcGISRuntime::Credential *credential, QObject *parent = nullptr)
    ArcGISSceneLayer(const QUrl &url, QObject *parent = nullptr)
    virtual ~ArcGISSceneLayer() override
    double altitudeOffset() const
    void clearSelection()
    Esri::ArcGISRuntime::SceneLayerDataType dataType() const
    Esri::ArcGISRuntime::FeatureTable *featureTable() const
    void selectFeature(Esri::ArcGISRuntime::Feature *feature)
    void selectFeatures(const QList<Esri::ArcGISRuntime::Feature *> &features)
    Esri::ArcGISRuntime::TaskWatcher selectedFeatures()
    void setAltitudeOffset(double altitudeOffset)
    void setSurfacePlacement(Esri::ArcGISRuntime::SurfacePlacement surfacePlacement)
    Esri::ArcGISRuntime::SurfacePlacement surfacePlacement() const
    void unselectFeature(Esri::ArcGISRuntime::Feature *feature)
    void unselectFeatures(const QList<Esri::ArcGISRuntime::Feature *> &features)

    Reimplemented Public Functions

    virtual QString apiKey() const override
    virtual Esri::ArcGISRuntime::Credential *credential() const override
    virtual Esri::ArcGISRuntime::RequestConfiguration requestConfiguration() const override
    virtual void setApiKey(const QString &apiKey) override
    virtual void setRequestConfiguration(const Esri::ArcGISRuntime::RequestConfiguration &requestConfiguration) override
    virtual QUrl url() const override

    Signals

    void selectedFeaturesCompleted(QUuid taskId, Esri::ArcGISRuntime::FeatureQueryResult *featureQueryResult)

    Detailed Description

    The ArcGISSceneLayer is a layer type designed for on-demand streaming and displaying large amounts of data in a SceneView. Scene layers support two types: Point and 3D Objects (e.g. buildings). The ArcGISSceneLayer displays data published to a scene service. Scene services can hold large volumes of features in an open format that is suitable for web streaming.

    ArcGIS SceneServices can have seven different data types, of which Runtime supports four:

    Content in 3D can be delivered as scene packages (stored on the client) or as online scene services. These data sources support consuming large volumes of multipatch features, such as building models for an entire city.

    Functional characteristics

    A scene service is used to provide one of the following types of 3D data:

    • 3D objects - 3D object scene layers contain point features with associated 3D models used to represent objects such as buildings, trees, and street furniture that are explicitly modeled in three dimensions. These features have attributes and can be identified.
    • Integrated mesh - 3D mesh data is typically captured by an automated process for constructing 3D objects out of large sets of overlapping imagery. The result integrates the original input image information as a textured mesh including 3D objects, such as buildings and trees, and elevation information. Integrated mesh scene layers are often created for citywide 3D mapping. They can represent something as small as a single building or as large as a city or state. They are often assembled automatically from imagery collected by a drone; they cannot be restyled because there is no underlying feature data.
    • Point scene - To ensure fast visualization, cached scene layers are used to display large amounts of 3D point data about individual features, such as all the trees in a city. Point scene layers have features that can be identified and that have attributes that may be cached or available from an associated feature layer. The display of point scene layers is automatically thinned to improve performance and visibility at smaller scales and longer distances. Automatic thinning means that not all features are displayed at small scales; as you zoom in, additional features are displayed.
    • Point cloud - Point cloud layers provide fast display of large volumes of symbolized and filtered point cloud data. Point clouds are optimized for the display and sharing of data from many kinds of sensors that create point clouds, such as lidar.

    Point scene layers are generated from point feature layers. Point scene layers can be generated by ArcGIS Pro and hosted as a scene service or scene layer package.

    Note: When publishing a scene from ArcGIS Pro (sharing as a web scene) any point feature layers in the 3D Layers section of the contents pane will be published as a scene service. The scene service will be referenced within the web scene.

    Performance characteristics For a scene layer, the rendering of 3D data is based on the current level of detail (LOD), which is determined by the distance from the camera. Each object in a 3D object service is represented differently at various LODs determined by the camera distance. As the camera distance changes in the scene, objects will be displayed appropriately for the current LOD. This results in good client performance and low memory usage, at the expense of frequently loading and unloading objects.

    See also Layer, https://developers.arcgis.com/qt/latest/cpp/sample-code/scene-layer-url/, https://developers.arcgis.com/qt/latest/cpp/sample-code/scene-layer-selection/, and https://developers.arcgis.com/qt/latest/cpp/sample-code/add-a-point-scene-layer/.

    Member Function Documentation

    ArcGISSceneLayer::ArcGISSceneLayer(Esri::ArcGISRuntime::Item *item, QObject *parent = nullptr)

    Constructor that accepts an Item (item) and an optional parent.

    The Item represents a scene layer on ArcGIS Online or ArcGIS Enterprise portal.

    ArcGISSceneLayer::ArcGISSceneLayer(const QUrl &url, Esri::ArcGISRuntime::Credential *credential, QObject *parent = nullptr)

    Constructor that accepts the URL (url), a credential, and an optional parent.

    The URL represents one of the following:

    • A URL to an online service that has the feature data.
    • A URL to an item hosted on ArcGIS Online or ArcGIS Enterprise portal.
    • A local file URL to a scene layer package (.slpk).

    The credential is applied if the provided URL is to a secured service or portal item.

    ArcGISSceneLayer::ArcGISSceneLayer(const QUrl &url, QObject *parent = nullptr)

    Constructor that accepts a URL (url) and an optional parent.

    The URL represents one of the following:

    • A URL to an online service that has the feature data.
    • A URL to an item hosted on ArcGIS Online or ArcGIS Enterprise portal.
    • A local file URL to a scene layer package (.slpk).

    [signal] void ArcGISSceneLayer::selectedFeaturesCompleted(QUuid taskId, Esri::ArcGISRuntime::FeatureQueryResult *featureQueryResult)

    Signal emitted when the current selected features have been determined.

    • taskId - The task ID for the asynchronous operation.
    • featureQueryResult - A feature query result containing an iterator pointing to the selected features.

    The returned FeatureQueryResult object has the ArcGISSceneLayer as its parent.

    This function was introduced in Esri::ArcGISRuntime 100.3.

    See also Returned QObjects Parenting.

    [override virtual] ArcGISSceneLayer::~ArcGISSceneLayer()

    Destructor.

    double ArcGISSceneLayer::altitudeOffset() const

    Returns the AltitudeOffset of this layer.

    An altitude offset provides a simple mechanism to consistently modify the elevation of all features in the layer with a single value.

    This function was introduced in Esri::ArcGISRuntime 100.6.

    See also setAltitudeOffset().

    [override virtual] QString ArcGISSceneLayer::apiKey() const

    Reimplements: ApiKeyResource::apiKey() const.

    Returns the API key. See ApiKeyResource.

    This function was introduced in Esri::ArcGISRuntime 100.10.

    See also setApiKey().

    void ArcGISSceneLayer::clearSelection()

    Clears selection on all features.

    This function was introduced in Esri::ArcGISRuntime 100.3.

    [override virtual] Esri::ArcGISRuntime::Credential *ArcGISSceneLayer::credential() const

    Reimplements: RemoteResource::credential() const.

    Returns the security credential used to access the scene service layer.

    Only applicable if the service is secured.

    Esri::ArcGISRuntime::SceneLayerDataType ArcGISSceneLayer::dataType() const

    Gets the content type of an ArcGIS scene layer.

    Return a SceneLayerDataType which identified the geometry and content type of and an ArcGIS scene layer.

    The type of a scene layer can only be established after the layer has loaded. It can be used to identify the content type contained within the scene layer.

    This function was introduced in Esri::ArcGISRuntime 100.5.

    Esri::ArcGISRuntime::FeatureTable *ArcGISSceneLayer::featureTable() const

    Returns the feature table associated with this ArcGISSceneLayer.

    This function was introduced in Esri::ArcGISRuntime 100.3.

    [override virtual] Esri::ArcGISRuntime::RequestConfiguration ArcGISSceneLayer::requestConfiguration() const

    Reimplements: RemoteResource::requestConfiguration() const.

    Returns the RequestConfiguration in use by this scene layer.

    This function was introduced in Esri::ArcGISRuntime 100.1.

    See also setRequestConfiguration().

    void ArcGISSceneLayer::selectFeature(Esri::ArcGISRuntime::Feature *feature)

    Adds the feature to the current selection set.

    This function was introduced in Esri::ArcGISRuntime 100.3.

    void ArcGISSceneLayer::selectFeatures(const QList<Esri::ArcGISRuntime::Feature *> &features)

    Adds multiple features to the current selection set.

    This function was introduced in Esri::ArcGISRuntime 100.3.

    Esri::ArcGISRuntime::TaskWatcher ArcGISSceneLayer::selectedFeatures()

    Launches a task to retrieve a collection of selected features, and returns a TaskWatcher for the asynchronous task.

    This function was introduced in Esri::ArcGISRuntime 100.3.

    void ArcGISSceneLayer::setAltitudeOffset(double altitudeOffset)

    Sets the altitudeOffset of this layer.

    An altitude offset provides a simple mechanism to consistently modify the elevation of all features in the layer with a single value.

    This function was introduced in Esri::ArcGISRuntime 100.6.

    See also altitudeOffset().

    [override virtual] void ArcGISSceneLayer::setApiKey(const QString &apiKey)

    Reimplements: ApiKeyResource::setApiKey(const QString &apiKey).

    Sets the API key to apiKey. See ApiKeyResource.

    This function was introduced in Esri::ArcGISRuntime 100.10.

    See also apiKey().

    [override virtual] void ArcGISSceneLayer::setRequestConfiguration(const Esri::ArcGISRuntime::RequestConfiguration &requestConfiguration)

    Reimplements: RemoteResource::setRequestConfiguration(const Esri::ArcGISRuntime::RequestConfiguration &requestConfiguration).

    Sets configuration parameters used for network requests sent by this scene layer to requestConfiguration.

    This function was introduced in Esri::ArcGISRuntime 100.1.

    See also requestConfiguration().

    void ArcGISSceneLayer::setSurfacePlacement(Esri::ArcGISRuntime::SurfacePlacement surfacePlacement)

    Sets the SurfacePlacement.

    The SurfacePlacement enumeration specifies how the surface defines altitude.

    This function was introduced in Esri::ArcGISRuntime 100.6.

    See also surfacePlacement().

    Esri::ArcGISRuntime::SurfacePlacement ArcGISSceneLayer::surfacePlacement() const

    Returns the SurfacePlacement.

    The SurfacePlacement enumeration specifies how the surface defines altitude.

    This function was introduced in Esri::ArcGISRuntime 100.6.

    See also setSurfacePlacement().

    void ArcGISSceneLayer::unselectFeature(Esri::ArcGISRuntime::Feature *feature)

    Unselects and removes a feature from the current selection.

    This function was introduced in Esri::ArcGISRuntime 100.3.

    void ArcGISSceneLayer::unselectFeatures(const QList<Esri::ArcGISRuntime::Feature *> &features)

    Unselects and removes features from the current selection.

    This function was introduced in Esri::ArcGISRuntime 100.3.

    [override virtual] QUrl ArcGISSceneLayer::url() const

    Reimplements: RemoteResource::url() const.

    Returns the scene service layer URL.

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