LineScanEffect

new Cesium.LineScanEffect(viewer, positions, transform, options)

线状扫描特效
Name Type Description
viewer Viewer 场景视图
positions Array 指定区域多边形顶点坐标数组,数组长度为0时,默认对全场景模型添加特效
transform Matrix4 模型矩阵
options Object 附加选项
Name Type Default Description
direction Number 3.0 optional 1.0:X轴正方向,2.0:Y轴正方向,3.0:Z轴正方向,默认为Z轴正向。-1.0:X轴负方向,-2.0:Y轴负方向,-3.0:Z轴负方向
max Number 20.0 optional 动态亮线特效的运动轴向的最大值
min Number 0.0 optional 动态亮线特效的运动轴向的最小值,可为负值
color Color new Cesium.Color(1.0, 0.0, 0.0, 0.5) optional 动态亮线特效颜色
duration Number 3000 optional 特效运动周期,单位毫秒
Author:
  • 周凌风

Members

颜色
特效运动方向,不同值对应不同轴向
特效运动周期

Methods

添加线状扫描特效
移除线状扫描特效