ISceneQueryProvider
Description
- Extended by
Base interface for classes that provide scene queries.
Scene queries created via this interface will process the terrain (see IScene.Terrain) and all ISceneEntity objects that are present in IScene.Entities for which ISceneObject.Enabled returns true
. Terrain objects that have been added via ITerrainEntityContainer will also be processed by spatial queries. However, terrain objects that have been added directly via TerrainMesh will not be processed.
If applicable, scene queries will additionally process all ISceneEntityView objects that are present in ISceneView.EntityViews for which ISceneObject.Enabled and ISceneEntityView.Visible return true
.
Public / Methods
Query
Creates a new instance of ISceneQuery.
Scene query objects are light-weight. However, it is advisable to re-use the same query object, while updating the scene query operation argument via ISceneQueryOpArg.Argument.
QueryDistance
Performs a spatial query to find the nearest distance from the given point in to the terrain or scene object.
The nearest distance is computed in this order:
-
By calling DistanceToGround.Compute1 of TerrainMesh.Distance, passing point in.
-
By calling ISceneObject.QueryDistance on the scene entities in IScene.Entities.
-
By calling ISceneObject.QueryDistance on the scene entity views in ISceneView.EntityViews.