Skip to content
  • BuildingComponentSublayer
  • class Esri::ArcGISRuntime::BuildingComponentSublayer

    A sublayer that contains 3D object or point features representing building components like doors, pipes, or AC units. More...

    Header: #include <BuildingComponentSublayer.h>
    Since: Esri::ArcGISRuntime 300.0
    Inherits: Esri::ArcGISRuntime::BuildingSublayer

    Public Functions

    void clearSelection()
    Esri::ArcGISRuntime::FeatureTable *featureTable() const
    Esri::ArcGISRuntime::Renderer *renderer() const
    void selectFeature(Esri::ArcGISRuntime::Feature *feature)
    void selectFeatures(const QList<Esri::ArcGISRuntime::Feature *> &features)
    QFuture<Esri::ArcGISRuntime::FeatureQueryResult *> selectedFeaturesAsync(QObject *parent = nullptr)
    void setRenderer(Esri::ArcGISRuntime::Renderer *renderer)
    Esri::ArcGISRuntime::BuildingComponentSublayerType type() const
    void unselectFeature(Esri::ArcGISRuntime::Feature *feature)
    void unselectFeatures(const QList<Esri::ArcGISRuntime::Feature *> &features)

    Detailed Description

    This sublayer is part of the layer hierarchy of a BuildingSceneLayer either directly or as a member of a BuildingGroupSublayer.

    Relevant samples:

    Member Function Documentation

    void BuildingComponentSublayer::clearSelection()

    Updates any selected features in the sublayer to the unselected state.

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

    Returns the feature table associated with this component sublayer.

    Esri::ArcGISRuntime::Renderer *BuildingComponentSublayer::renderer() const

    Returns a renderer that specifies how this sublayer is symbolized.

    Renderers that reference external style definitions are not supported. Only renderers authored for BuildingComponentSublayerType point sublayers are honored. Renderers that are subsequently set are not honored, and any previously-set renderers are cleared.

    See also setRenderer().

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

    Selects the given feature and adds it to the current collection of selected features.

    • feature - The feature to select.

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

    Selects the features in the provided collection and adds them to the sublayer's current collection of selected features.

    • features - The collection of features to be selected.

    QFuture<Esri::ArcGISRuntime::FeatureQueryResult *> BuildingComponentSublayer::selectedFeaturesAsync(QObject *parent = nullptr)

    Provides a collection of feature query results.

    • parent - The optional parent QObject.

    This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.

    See Working with QFuture for further details.

    void BuildingComponentSublayer::setRenderer(Esri::ArcGISRuntime::Renderer *renderer)

    Sets the renderer to renderer.

    See also renderer.

    Esri::ArcGISRuntime::BuildingComponentSublayerType BuildingComponentSublayer::type() const

    Returns the type of component sublayer.

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

    Unselects the given feature and removes it from the current collection of selected features.

    • feature - The feature to unselect.

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

    Unselects the features in the given collection and removes them from the sublayer's current collection of selected features.

    • features - The collection of features to be unselected.

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