Filter features from an ArcGISSceneLayer using one or more polygons and a spatial relationship. More...
Header: | #include <SceneLayerPolygonFilter.h> |
Since: | Esri::ArcGISRuntime 200.2 |
Inherits: | Esri::ArcGISRuntime::Object |
Public Functions
SceneLayerPolygonFilter(const QList<Esri::ArcGISRuntime::Polygon> &polygons, Esri::ArcGISRuntime::SceneLayerPolygonFilterSpatialRelationship spatialRelationship, QObject *parent = nullptr) | |
virtual | ~SceneLayerPolygonFilter() override |
QList<Esri::ArcGISRuntime::Polygon> | polygons() const |
void | setPolygons(const QList<Esri::ArcGISRuntime::Polygon> &polygons) |
void | setSpatialRelationship(Esri::ArcGISRuntime::SceneLayerPolygonFilterSpatialRelationship spatialRelationship) |
Esri::ArcGISRuntime::SceneLayerPolygonFilterSpatialRelationship | spatialRelationship() const |
Detailed Description
Relevant samples:
- Filter features in scene: Filter 3D scene features out of a given geometry with a polygon filter.
Member Function Documentation
SceneLayerPolygonFilter::SceneLayerPolygonFilter (const QList<Esri::ArcGISRuntime::Polygon > &polygons, Esri::ArcGISRuntime::SceneLayerPolygonFilterSpatialRelationship spatialRelationship , QObject *parent = nullptr)
Creates a new SceneLayerPolygonFilter using a list of polygons and a spatial relationship to be applied to the ArcGISSceneLayer.
- polygons - A list of polygons to be used for filtering features.
- spatialRelationship - The spatial relationship to be applied to the polygons for filtering. It determines whether to include features within the polygons or exclude features from the polygons.
- parent - The optional parent QObject.
See also SceneLayerPolygonFilterSpatialRelationship.
[override virtual]
SceneLayerPolygonFilter::~SceneLayerPolygonFilter ()
Destructor.
QList<Esri::ArcGISRuntime::Polygon > SceneLayerPolygonFilter::polygons() const
Returns a list of polygon geometries to be applied for filtering features.
See also setPolygons().
void SceneLayerPolygonFilter::setPolygons (const QList<Esri::ArcGISRuntime::Polygon > &polygons)
Sets a list of polygon geometries to be applied for filtering features.
- polygons - A list of polygons to be used for filtering features.
See also polygons.
void SceneLayerPolygonFilter::setSpatialRelationship (Esri::ArcGISRuntime::SceneLayerPolygonFilterSpatialRelationship spatialRelationship )
Sets the spatial relationship to be applied to the polygons for filtering features.
The spatial relationship determines whether to include features within the polygons or exclude features from the polygons.
- spatialRelationship - The spatial relationship to be applied to the polygons for filtering features.
See also spatialRelationship() and SceneLayerPolygonFilterSpatialRelationship.
Esri::ArcGISRuntime::SceneLayerPolygonFilterSpatialRelationship SceneLayerPolygonFilter::spatialRelationship () const
Returns the spatial relationship to be applied to the polygons for filtering features.
The spatial relationship determines whether to include features within the polygons or exclude features from the polygons.
See also setSpatialRelationship().