# FloodAnalysisReflection

#### new Cesium.FloodAnalysisReflection(options) → Object
MapGIS/Analysis/FloodAnalysisReflection.js 53

创建反射水面淹没分析的实例化对象

Name | Type | Description
--- | --- | ---
`options` | Object | 创建反射水面淹没分析的参数
Name | Type | Default | Description
--- | --- | --- | ---
`viewer` | Viewer |  | 显示三维地球场景的对象
`water` | WaterReflection |  | 反射水面对象
`minHeight` | Number |  | 水面的起始高度
`maxHeight` | Number |  | 水面的淹没高度
`floodSpeed` | Number | `1.0` | optional 水面的淹没速度，单位为米/每秒
`closeBorder` | Boolean | `false` | optional 是否为水面创建边界面

##### Returns:

返回根据参数所生成的反射水面淹没分析实例化对象

##### Example:

    // 初始化视图对象
    var viewer = new Cesium.Viewer("cesiumContainer");
    // 加载模型
    var url = 'http://develop.smaryun.com:6163/igs/rest/g3d/ZondyModels';
    var index = viewer.scene.layers.appendSceneLayer(url, { duration: 1, maximumScreenSpaceError: 8 });
    // 创建反射水面的范围
    var positions = [
      Cesium.Cartographic.fromDegrees(114.3972, 30.4710, 0.0),
      Cesium.Cartographic.fromDegrees(114.4053, 30.4710, 0.0),
      Cesium.Cartographic.fromDegrees(114.4053, 30.4638, 0.0),
      Cesium.Cartographic.fromDegrees(114.3972, 30.4638, 0.0),
    ];
    // 实例化反射水面的对象
    var water = new Cesium.WaterReflection({
      viewer: viewer,
      positions: positions,
      distortionScale: 2.0,
    });
    // 实例化反射水面淹没分析的对象
    var flood = new Cesium.FloodAnalysisReflection({
      viewer: viewer,
      water: water,
      minHeight: 0,
      maxHeight: 70,
      floodSpeed: 0.05,
      closeBorder: true
    });
    // 开启淹没分析
    flood.start();

### Members

#### currentWaterHeight : Number
MapGIS/Analysis/FloodAnalysisReflection.js 144

获取水面当前的淹没高度

#### floodSpeed : Number
MapGIS/Analysis/FloodAnalysisReflection.js 128

获取或设置水面的淹没速度

#### maxHeight : Number
MapGIS/Analysis/FloodAnalysisReflection.js 113

获取或设置水面的淹没高度

#### minHeight : Number
MapGIS/Analysis/FloodAnalysisReflection.js 98

获取或设置水面的起始高度

### Methods

#### destroy()
MapGIS/Analysis/FloodAnalysisReflection.js 219

销毁反射水面的实例化对象，若包含水面边界面，同时也会将其销毁

#### destroyWaterCloseBorder()
MapGIS/Analysis/FloodAnalysisReflection.js 210

销毁反射水面的边界面，在淹没分析时创建水面边界面时使用

#### pause()
MapGIS/Analysis/FloodAnalysisReflection.js 202

暂停执行淹没分析

#### start()
MapGIS/Analysis/FloodAnalysisReflection.js 154

开始执行淹没分析