Appearance
Sunshine (Sunshine Analysis)
Create and manage a sunshine/shadow analysis object for 3D scene shadow analysis.
Constructor
ts
new ge3d.matter.Sunshine(options?: {}): SunshineParameters (Options)
| Parameter | Type | Default | Description |
|---|---|---|---|
| multiplier | Number | 1600 | Time multiplier for animation speed |
| time | Date | - | Initial time |
| darkness | Number | - | Shadow darkness |
| terrain | Boolean | true | Whether to enable terrain shadows |
| lighting | Boolean | true | Whether to enable globe lighting |
| clockRange | Cesium.ClockRange | CLAMPED | Clock range mode |
Properties
| Property | Type | Description |
|---|---|---|
| shadowMap | Cesium.ShadowMap | Shadow map object |
| time | Date | Current time (getter/setter) |
| isStart | Boolean | Whether the analysis is started |
| multiplier | Number | Time multiplier (getter/setter) |
Methods
start
Start shadow analysis animation
ts
start(startTime: Date, stopTime: Date, currentTime?: Date): voidpause
Pause the animation
ts
pause(): voidproceed
Resume the paused animation
ts
proceed(): voidstop
Stop the animation
ts
stop(): voidclear
Clear all analysis data and reset
ts
clear(): voidstartComputeShadowRate
Start computing shadow volume ratio for specified positions
ts
startComputeShadowRate(options: {
positions: Cesium.Cartesian3[];
startDate: Date;
endDate: Date;
step: Number;
minHeight: Number;
maxHeight: Number;
}): Promise<{
total: Number;
positions: Array<{
lng: Number;
lat: Number;
alt: Number;
rate: Number;
}>;
}>stopComputeShadowRate
Stop computing shadow rate
ts
stopComputeShadowRate(): void