ShadowQueryPoints

new Cesium.ShadowQueryPoints(scene)

Shadow rate analysis class, specify the analysis range, set the shadow type, and set the analysis time period to get the shadow rate analysis result.
Name Type Description
scene Scene optional Scene object.
Throws:
Example:
//Create a shadow ratio analysis
var shadowQueryPoints= new Cesium.ShadowQueryPoints(scene);

Members

colorTable: ColorTable

Set the color table.

endTime : JulianDate

Get or set the end time of the analysis.

queryPointsEvent : event

Get the point set and the shadow rate event of each point.

spacing : Number

Gets or sets the spacing of shadow rate points.

startTime : JulianDate

Get or set the start time of the analysis.

timeInterval : Number

Get or set the time interval.

Methods

build()

Perform shadow analysis.

getShadowRadio(cartographic)Number

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

getVisibleInViewport(index)Boolean

Obtain the visibility of the shadow ratio analysis in the specified viewport.
Name Type Description
index Number The specified viewport index.
Returns:
Visibility (optional)
Throws:

qureyRegion(options)

Add the area for shadow ratio analysis.
Name Type Description
options Object The object has the following properties.
Name Type Description
position Array The location information of the designated analysis area is represented by an array containing longitude and latitude.
bottom String Specify the bottom elevation of the analysis area.
extend String Specify the stretch height of the analysis area.

setVisibleInViewport(index)

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