ShadowQueryPoints

new SuperMap3D.ShadowQueryPoints(scene)

Shadow rate analysis class, specify the analysis range, set the shadow type, and set the analysis time period to obtain the shadow rate analysis results.
Name Type Description
scene Scene optional scene object.
Throws:
Example:
//Create Shading Ratio Analysis
var shadowQueryPoints= new SuperMap3D.ShadowQueryPoints(scene);

Members

colorTable : ColorTable

Set the colormap.

endTime : JulianDate

Gets or sets the end time of the analysis.

queryPointsEvent : Event

Get the set of points and the shading rate event for each point.

spacing : Number

Get or set the spacing of shadow rate points.

startTime : JulianDate

Gets or sets the start time of the analysis.

timeInterval : Number

Get or set the time interval.

voxelData : Object

It is used to obtain voxel data, set it to the S3M layer, and express the sunshine rate in the form of volume coverage.

Methods

build()

Perform shadow analysis.

getShadowRadio(cartographic)Number

Get the shadow rate.
Name Type Description
cartographic Object latitude and longitude.
Returns:
shadow rate.

getShadowRadioAsync(cartographic)Number

Obtain shadow rate asynchronously, this asynchronous interface must be used under the webgpu model
Name Type Description
cartographic Object latitude and longitude
Returns:
shadow rate

getVisibleInViewport(index)Boolean

Gets the visibility of the shadow ratio analysis in the specified viewport.
Name Type Description
index Number The specified viewport index.
Returns:
visible
Throws:

qureyRegion(options)

Added area for shading rate analysis.
Name Type Description
options Object Objects have the following properties.
Name Type Description
position Array Specify the location information of the analysis area, represented by an array containing longitude and latitude.
bottom String Specifies the bottom elevation of the analysis area.
extend String Specifies the extrusion height of the analysis area.
Throws:

setVisibleInViewport(index)

Sets the visibility of the shadow rate analysis in the specified viewport.
Name Type Description
index Number The specified viewport index.
Throws: