Constructor
new OpennessAnalysis(viewer, optionsopt)
创建一个开敞度分析对象
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
viewer |
Viewer | 场景对象 |
|||||||||||||||||||||||||||||||||||||
options |
Object |
<optional> |
{}
|
带有以下属性的对象: Properties
|
Classes
Methods
destroy()
销毁分析对象
setAnalysisRadius(val)
设置分析半径
Parameters:
Name | Type | Description |
---|---|---|
val |
Number | 分析半径 |
setBasePoint(pt)
设置分析基点
Parameters:
Name | Type | Description |
---|---|---|
pt |
Cartesian3 | 分析基点 |
setHiddenAreaColor(val)
设置不可视区域颜色
Parameters:
Name | Type | Description |
---|---|---|
val |
Array | 颜色数组 rgba 范围0~1 eg:[1,0,0,1] |
setShowType(num)
设置显示类型 1仅显示可见部分 2仅显示不可见部分 3全都显示
Parameters:
Name | Type | Description |
---|---|---|
num |
Number | 显示类型 |
setVisibleAreaColor(val)
设置可视区域颜色
Parameters:
Name | Type | Description |
---|---|---|
val |
Array | 颜色数组 rgba 范围0~1 eg:[1,0,0,1] |