Class: ModelExplode

Glodon.CIMCube.Animation.ModelEffect. ModelExplode

模型炸开

new ModelExplode(map, opts)

模型炸开
Parameters:
Name Type Description
map Glodon.CIMCube CIMCube实例
opts Object , 炸开参数
Properties
Name Type Argument Default Description
tiles3DLayer Tiles3DLayer , Tiles3DLayer图层
duration Number <optional>
2 楼层炸开动画时间,(s)
offset Object <optional>
levelInfo内偏移设置场合,offset不起作用
Properties
Name Type Argument Default Description
x Number <optional>
0 楼层炸开偏移X
y Number <optional>
5 楼层炸开偏移Y
height Number <optional>
1 楼层炸开偏移Height
levelInfo Array <optional>
楼层炸开信息
Properties
Name Type Argument Description
levelName String <optional>
楼层名称,不可缺省
x Number <optional>
指定楼层炸开偏移X,可缺省
y Number <optional>
指定楼层炸开偏移Y,可缺省
height Number <optional>
指定楼层炸开偏移Height,可缺省
mode Number <optional>
数据模式;1:自动落图模式,投影坐标;2:地理坐标; 默认投影坐标

Methods


cancelExplode()

复原模型炸开

clearTileList( [update])

清空瓦片列表。
Parameters:
Name Type Argument Default Description
update Boolean <optional>
false 是否更新瓦片。

dispose()

释放资源

doExplode()

模型炸开开始

setOpts(options)

设置炸开参数
Parameters:
Name Type Description
options Object 炸开参数

updateOption(opts)

更新炸开参数。
Parameters:
Name Type Description
opts Object 参数。
Properties
Name Type Description
offset Object 偏移。
duration Number 时长。
levelInfo Array 楼层信息。
mode Number 模式。

visibleUpdate(opt)

更新可见瓦片。
Parameters:
Name Type Description
opt Object 参数。
Properties
Name Type Description
arguments Array 瓦片。