# VisiblityAnalysis

#### new Cesium.VisiblityAnalysis(options)
MapGIS/Analysis/VisiblityAnalysis.js 40

通视分析

Name | Type | Description
--- | --- | ---

`options`

Object

附加参数

Name | Type | Default | Description
--- | --- | --- | ---
`scene` | Scene |  | Cesium 场景对象
`visibleColor` | Color | `new Color(0, 1, 0, 0.5)` | optional 设置可视段颜色
`unvisibleColor` | Color | `new Color(1, 0, 0, 0.5)` | optional 设置不可视段颜色
`exHeight` | Number | `0.01` | optional 设置视点附加高度
`fanColor` | Color | `new Color(79 / 255, 238 / 255, 215 / 255, 0.2)` | optional 环型通视分析视窗颜色
`fanGridColor` | Color | `Cesium.Color.WHITE` | optional 环型通视分析视窗网格颜色

Author:
  - 韩彦生

### Members

#### exHeight : Number
MapGIS/Analysis/VisiblityAnalysis.js 217

设置视点附加高度

#### fanColor : Color
MapGIS/Analysis/VisiblityAnalysis.js 191

设置环型通视分析视窗颜色

#### fanGridColor : Color
MapGIS/Analysis/VisiblityAnalysis.js 204

设置环型通视分析视窗网格颜色

#### isVisible : Boolean
MapGIS/Analysis/VisiblityAnalysis.js 152

获取当前是否可见

#### targetPosition : Cartesian3
MapGIS/Analysis/VisiblityAnalysis.js 127

目标点

#### unvisibleColor : Color
MapGIS/Analysis/VisiblityAnalysis.js 177

设置不可视段颜色

#### unVisiblityPosition : Cartesian3
MapGIS/Analysis/VisiblityAnalysis.js 117

遮挡点

#### viewPosition : Cartesian3
MapGIS/Analysis/VisiblityAnalysis.js 89

观察点

#### visibleColor : Color
MapGIS/Analysis/VisiblityAnalysis.js 163

设置可视段颜色

#### width : Number
MapGIS/Analysis/VisiblityAnalysis.js 103

通视线的宽度

### Methods

#### getVisibilityResult(viewPosition, targetPosition) → Boolean
MapGIS/Analysis/VisiblityAnalysis.js 307

根据两点坐标判断两点之间是否可视，返回结果

Name | Type | Description
--- | --- | ---
`viewPosition` | Cartesian3 | 视点
`targetPosition` | Cartesian3 | 目标点

##### Returns:

visible 两点之间是否可视

#### lookAroundAnalysis(options)
MapGIS/Analysis/VisiblityAnalysis.js 367

环形通视分析

Name | Type | Description
--- | --- | ---

`options`

Object

Name | Type | Description
--- | --- | ---
`viewPosition` | Cartesian3 | 视点
`radius` | Number | 环形通视分析半径
`verticalAngle` | Number | optional 垂直视角，默认为60°
`divideAngle` | Number | optional 等分角度，默认为10°
`percentCallback` | function | optional 计算进度回调