Skip to content

Sunshine (Sunshine Analysis)

Create and manage a sunshine/shadow analysis object for 3D scene shadow analysis.

Constructor

ts
new ge3d.matter.Sunshine(options?: {}): Sunshine

Parameters (Options)

ParameterTypeDefaultDescription
multiplierNumber1600Time multiplier for animation speed
timeDate-Initial time
darknessNumber-Shadow darkness
terrainBooleantrueWhether to enable terrain shadows
lightingBooleantrueWhether to enable globe lighting
clockRangeCesium.ClockRangeCLAMPEDClock range mode

Properties

PropertyTypeDescription
shadowMapCesium.ShadowMapShadow map object
timeDateCurrent time (getter/setter)
isStartBooleanWhether the analysis is started
multiplierNumberTime multiplier (getter/setter)

Methods

start

Start shadow analysis animation

ts
start(startTime: Date, stopTime: Date, currentTime?: Date): void

pause

Pause the animation

ts
pause(): void

proceed

Resume the paused animation

ts
proceed(): void

stop

Stop the animation

ts
stop(): void

clear

Clear all analysis data and reset

ts
clear(): void

startComputeShadowRate

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