new SightlineEx(viewer, optionsopt)
通视分析
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
viewer |
Viewer | 要分析的场景对象 |
|||||||||||||||||||||||||||||||
options |
Object |
<optional> |
带有以下属性的对象: Properties
|
Methods
add(origin, target, addHeightopt) → {Array}
添加通视分析线条
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
origin |
Cartesian3 | 视线起点 |
||
target |
Cartesian3 | 视线终点 |
||
addHeight |
Number |
<optional> |
0
|
起点处视线抬高 |
Returns:
构建的线条Entity数组
- Type
- Array
clear()
清除通视分析效果
destroy()
销毁通视分析对象