ShadowQueryPoints

new Cesium.ShadowQueryPoints(scene)

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

Members

endTime : JulianDate

Gets or sets the end time of the analysis.

queryPointsEvent : event

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

spacing : Number

Gets or sets the spacing of the shadow rate points.

startTime : JulianDate

Gets or sets the start time of the analysis.

timeInterval : Number

Get or set the time interval.

Methods

build()

Perform a shadow analysis.

getShadowRadio(cartographic)Number

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

getVisibleInViewport(index)Boolean

Get the visibility of the specified viewport by the shadow rate analysis.
Name Type Description
index Number The specified viewport index.
Returns:
visible
Throws:

qureyRegion(options)

Add the area of the shadow rate analysis.
Name Type Description
options Object The object has the following properties.
Name Type Description
position Array Specifies 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 stretch height of the analysis area.

setVisibleInViewport(index)

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