A sublayer that contains 3D object or point features representing building components like doors, pipes, or AC units. More...
| Header | #include <Building |
| Since | Esri |
| Inherits | Esri |
Public Functions
| void | clear |
| Esri | feature |
| Esri | renderer() const |
| void | select |
| void | select |
| QFuture | selected |
| void | set |
| Esri | type() const |
| void | unselect |
| void | unselect |
Detailed Description
This sublayer is part of the layer hierarchy of a BuildingSceneLayer either directly or as a member of a BuildingGroupSublayer.
Relevant samples:
- Filter building scene layer: Explore details of a building scene by using filters and sublayer visibility.
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.