Class: Wall

Glodon.CIMCube.Animation.Effect. Wall

动态墙

new Wall(viewer, opt)

动态墙
Parameters:
Name Type Description
viewer Glodon.CIMCube CIMCube实例
opt Object 动态墙特效参数
Properties
Name Type Argument Default Description
pathList Array 路径{lon,lat,height}
imageUrl String 图片路径
height Number <optional>
50 墙的高度
blendRatio Number <optional>
1 数值代表颜色的融合程度,范围为0-1,代表color颜色不参与融合
successive Boolean <optional>
true 一种特效,循环完成后会暂停一段时间
color Color 墙的颜色
duration Number <optional>
1 动画时长,单位秒
direction String 动画方向;x:水平正方向,y:垂直正方向;-x:水平逆方向;-y:垂直逆方向;
stripe Number <optional>
1 波浪次数
decayFactor Number <optional>
0 逐渐的颜色衰减或者加强
speedFactor Number <optional>
1 运动轨迹曲线;大于1:先慢后快;小于1:先慢后快;线性匀速运动
staticsWall Boolean <optional>
false 是否静态墙
flyline Boolean <optional>
false 飞线特效开启
flylineWidth Number <optional>
8 飞线宽,单位米
flylineLength Number <optional>
100 飞线长度,单位m
flylineDirection String <optional>
"y" 飞线动画方向;x:水平正方向,y:垂直正方向;-x:水平逆方向;-y:垂直逆方向
flylineSpeed Number <optional>
1 飞线速度
flylineColor Number 飞的颜色

Methods


createWall()

创建墙。

dispose()

释放资源

getWallGraphics()

获取墙图形。
Returns:
Type
Object

hide()

隐藏

setPathData(_pathList)

设置动态墙数据
Parameters:
Name Type Description
_pathList Array 路径{lon,lat,height}

show()

显示

updateMyOption(opt)

更新参数。
Parameters:
Name Type Description
opt Object 参数。
Properties
Name Type Argument Default Description
staticsWall Boolean 是否静态墙。
flylineWidth Number 飞线宽度。
flylineLength Number 飞线长度。
flylineDirection String 飞线方向。
flylineSpeed Number 飞线速度。
flylineColor Number 飞线颜色。
imageUrl String 图片地址。
duration Number 时长。
direction String 方向。
stripe Number 条纹数。
color Color 颜色。
onlyWallGraphics Boolean 仅墙图形。
successive Boolean 是否连续。
decayFactor Number 衰减系数。
speedFactor Number 速度系数。
blendRatio Number 混合比例。
expandingBarrier Boolean 扩展屏障。
height Number <optional>
50 高度。
stripSpacing Number 条带间距。
expandSpeed Number 扩展速度。
repeated Boolean 是否重复。
spreadCenter Cartesian3 扩散中心。
spreadTime Number 扩散时间。
spreadRepeat Boolean 扩散重复。
spreadRadius Number 扩散半径。
spreadGradual Number 扩散渐变。
layer Object 图层。
flyline Boolean 飞线。
pathList Array 路径列表。

updateOption(opt)

更新参数
Parameters:
Name Type Description
opt Object 动态墙特效参数
Properties
Name Type Argument Default Description
pathList Array 路径{lon,lat,height}
imageUrl String 图片路径
height Number <optional>
50 墙的高度
blendRatio Number <optional>
1 数值代表颜色的融合程度,范围为0-1,代表color颜色不参与融合
successive Boolean <optional>
true 一种特效,循环完成后会暂停一段时间
color Color 墙的颜色
duration Number 动画时长
direction String 动画方向;x:水平正方向,y:垂直正方向;-x:水平逆方向;-y:垂直逆方向;
stripe Number <optional>
1 波浪次数
decayFactor Number <optional>
0 逐渐的颜色衰减或者加强
speedFactor Number <optional>
1 运动轨迹曲线;大于1:先慢后快;小于1:先慢后快;线性匀速运动
staticsWall Boolean <optional>
false 是否静态墙
flyline Boolean <optional>
false 飞线特效开启
flylineWidth Number <optional>
8 飞线宽,单位米
flylineLength Number <optional>
100 飞线长度,单位m
flylineDirection String <optional>
"y" 飞线动画方向;x:水平正方向,y:垂直正方向;-x:水平逆方向;-y:垂直逆方向
flylineSpeed Number <optional>
1 飞线速度
flylineColor Number 飞的颜色