Class: SunlightAnalysis

SunlightAnalysis

new SunlightAnalysis(scene, startTime, endTime, displayMode, enabled)

Sunshine analysis category.

Name Type Description
scene Scene

Scene objects.

startTime JulianDate

Start time of sunshine analysis.

endTime JulianDate

End time of sunshine analysis.

displayMode number

Set or obtain the display mode of analysis results, such as sunshine rate or shadow rate, with default display of sunshine rate.

enabled boolean

Get whether to start analyzing the default value of false.

Members

displayModenumber

Get or set the display mode of analysis results: sunshine rate, shadow rate.

Default Value:
SunLightAnalysisMode.SunlightDuration

enabledboolean

Get whether analysis is currently enabled.

Default Value:
false

endTimeJulianDate

Get or set the termination time.

startTimeJulianDate

Get or set the starting time.

visualizationColorColor

Set or retrieve the visual color of the shadow area, with alpha value used to adjust the color blending coefficient. Default color values (0.0, 0.0, 1.0, 0.7).

Default Value:
SuperMap3D.Color(0.0, 0.0, 1.0, 0.7)
See:

Methods

clear()

Clear analysis results

destroy()

Destroy the resources held by Rizhao Analysis

getDurationAsync(windowPosition){number}

Asynchronous retrieval of the total duration of sunlight or shadow at the current location.

Name Type Description
windowPosition Cartesian2

Window coordinates.

Returns:
Type Description
number Total time in shadow: in seconds.

run()

Begin analysis

setColorTable(colorTable)

Set up a color chart.

Name Type Description
colorTable ColorTable

Color chart object.