WaterEffect

类:水面效果

Constructor

new Glodon.Bimface.Earth.Plugins.Animation.WaterEffect(waterEffectConfig)

构造水面效果对象

Parameters:
NameTypeDescription
waterEffectConfigGlodon.Bimface.Earth.Plugins.Animation.WaterEffectConfig

水面效果配置项

Methods

destroy()

移除水面效果

getBoundary()

获取水面边界点

Returns:
TypeDescription
Array

水面边界点数组,坐标为经纬度+高程

getColor()

获取水面颜色

Returns:
TypeDescription
Glodon.Web.Graphics.Color

水面颜色

getOffset()

获取水面竖向偏移值

Returns:
TypeDescription
Number

水面竖向偏移值,单位为m,正数为向上移动,负数为向下移动

getScale()

获取波纹系数

Returns:
TypeDescription
Number

波纹系数

getXDirection()

获取水平流速

Returns:
TypeDescription
Number

水平流速

getYDirection()

获取垂直流速

Returns:
TypeDescription
Number

垂直流速

hide()

隐藏水面效果

play()

开始动画效果

setBoundary(boundary)

更改水面效果的边界,仅对基于boundary构造的水面效果对象生效

Parameters:
NameTypeDescription
boundaryArray

水面边界点数组,坐标为经纬度+高程

setColor(color)

设置水面颜色

Parameters:
NameTypeDescription
colorGlodon.Web.Graphics.Color

水面颜色

setOffset(offset)

对水面进行竖向偏移

Parameters:
NameTypeDescription
offsetNumber

竖向偏移量,单位为m,正数为向上移动,负数为向下移动

setScale(scale)

设置波纹系数

Parameters:
NameTypeDescription
scaleNumber

波纹系数

setXDirection(xDirection)

设置水平流速

Parameters:
NameTypeDescription
xDirectionNumber

水平流速

setYDirection(yDirection)

设置垂直流速

Parameters:
NameTypeDescription
yDirectionNumber

垂直流速

show()

显示水面效果

stop()

停止动画效果