Class: Twinkle

Glodon.CIMCube.Animation.PointEffect. Twinkle

闪烁点特效

new Twinkle(viewer, opt)

闪烁点特效
Parameters:
Name Type Description
viewer Glodon.CIMCube CIMCube实例
opt Object 闪烁点特效参数
Properties
Name Type Argument Default Description
positionList Array 点的数据{x,y,z}
size Number <optional>
10 点的大小(最大值场合)
minSize Number <optional>
0 点大小的最小值
image String 点的图片地址url
onlyExsufflation Boolean <optional>
true 只有扩散效果
breathDuration Number <optional>
1 点呼吸动画时长
viewingDistance Number <optional>
200 最佳观测距离
openDepthTest boolean <optional>
true 深度检测开启;不支持实时变动

Methods


createPoints()

创建点。

dispose()

释放资源

hide()

隐藏

show()

显示

updateMyOption(opt)

更新参数。
Parameters:
Name Type Description
opt Object 参数。
Properties
Name Type Argument Description
openDepthTest boolean 是否开启深度检测。
positionList Array 位置列表。
onlyExsufflation Boolean <optional>
仅呼出。
breathDuration Number <optional>
呼吸时长。
image String 图片。
size Number <optional>
大小。
minSize Number <optional>
最小尺寸。
viewingDistance Number 可视距离。
offsetScreen Cartesian2 屏幕偏移。

updateOption(opt)

更新参数
Parameters:
Name Type Description
opt Object 闪烁点特效参数
Properties
Name Type Argument Default Description
positionList Array 点的数据{x,y,z}
size Number <optional>
点的大小(最大值场合)
minSize Number <optional>
点大小的最小值
viewingDistance Number <optional>
200 最佳观测距离
image String 点的图片地址url
onlyExsufflation Boolean <optional>
只有扩散效果
breathDuration Number <optional>
点呼吸动画时长
openDepthTest boolean <optional>
true 深度检测开启;不支持实时变动