new ShadowQueryPoints(scene)
阴影率分析类,指定分析范围、设置阴影类型、设定分析时间段得出阴影率分析结果。
| Name | Type | Description |
|---|---|---|
scene |
Scene |
场景对象。 |
Throws:
-
必须指定场景scene。
- Type
- DeveloperError
Example
//创建阴影率分析
var shadowQueryPoints= new SuperMap3D.ShadowQueryPoints(scene);
Members
-
colorTableColorTable
-
设置颜色表。
- Default Value: undefined
endTimeJulianDate
获取或设置分析的结束时间。
isPointsVisibleboolean
阴影点的可见性
- Default Value: true
queryPointsEventEvent
获取点集和每个点的阴影率事件。
spacingnumber
获取或设置阴影率点的间距。
- Default Value: 10.0
startTimeJulianDate
获取或设置分析的开始时间。
timeIntervalnumber
获取或设置时间间隔(分钟)。
- Default Value: 1.0
readonly voxelDataObject
用于获取体元数据,设置给S3M图层,以体覆盖的形式来表达日照率。
- Default Value: {}
Methods
-
_getVolValue()
-
private
-
_getVoxelData()
-
private
-
build()
-
执行阴影分析。
-
clear()
-
清除阴影分析
-
destroy()
-
销毁阴影分析对象持有的资源
-
getShadowRadio(cartographic){number}
-
获得阴影率。
Name Type Description cartographicCartographic 经纬度。
Returns:
Type Description number 阴影率。 -
getShadowRadioAsync(cartographic){number}
-
异步获得阴影率,webgpu模型下必须使用此异步接口
Name Type Description cartographicCartographic 经纬度
Returns:
Type Description number 阴影率 -
getVisibleInViewport(index){boolean}
-
获得阴影率分析在指定视口的可见性。
Name Type Description indexnumber 指定的视口索引。
Throws:
-
索引值的范围为:0-3。
- Type
- DeveloperError
Returns:
Type Description boolean visible 可见性。 -
-
qureyRegion()
-
添加阴影率分析的区域。
Name Type Description options.positionArray 指定分析区域的位置信息,由包含经度、纬度的数组表示。
options.bottomstring 指定分析区域的底部高程。
options.extendstring 指定分析区域的拉伸高度。
Throws:
-
阴影显示范围类型。
- Type
- ShadowType
-
-
setVisibleInViewport(index)
-
设置阴影率分析在指定视口的可见性。
Name Type Description indexnumber 指定的视口索引。
Throws:
-
索引值的范围为:0-3。
- Type
- DeveloperError
-
-
update()
-
private