SpatialQuery3D

new SuperMap3D.SpatialQuery3D(scene)

GPU spatial query class.
Name Type Description
scene Scene Scenarios for GPU spatial query.
Throws:

Members

fillColor : Color

Get or set the fill color of the query object in RGBA format.

fillStyle : FillStyle

Get or set the padding mode of the query object.

geometry : Geometry3D

Get or set the geometric model object used for query.

layers : Layers

Get or set the layer to be queried.

outlineColor : Color

Get or set the border color of the query object.

positionMode : PositionMode

Get or set the object position mode when querying, which refers to the positional relationship between the query object and the model object, including separation, intersection and inclusion.

Methods

build()

Perform GPU spatial query and analysis.

clear()

Clears the object without destroying it.

destroy()

Destroy the object.

getQueryIDs()Array

Get all queried ids.
Returns:
ids