FloodByEntity

FloodByEntity

new FloodByEntity(viewer)

用Polygon来模拟淹没分析效果的类

Parameters:
Name Type Description
viewer Viewer

要分析的场景对象

Members

height :Number

当前淹没高度

Type:
  • Number

Methods

clear()

清除淹没效果

start(entity, optionsopt)

开始执行淹没分析

Parameters:
Name Type Attributes Description
entity Entity

面类型的Entity对象

options Object <optional>

带有以下属性的对象:

Properties
Name Type Attributes Description
height Number <optional>

当前淹没高度

maximumHeight Number <optional>

最大淹没高度

speed Number <optional>

淹没速度,单位米/秒

onChange function <optional>

淹没更新回调,每次淹没高度改变时都会执行此回调,回调参数为当前淹没高度

onStop function <optional>

淹没完成回调