VideoHintPrimitive

new Cesium.VideoHintPrimitive(options)

显示视频锥体投射示意效果,显示一个圆球和一个圆锥,圆锥尖头接触圆球。 以圆球圆心为中心,可选圆锥的指定朝向。
Name Type Description
options Object 如下
Name Type Default Description
center Cartesian3 摆放位置.对应圆球中心坐标.
scene Scene scene
color Color Color.BLUE optional 显示颜色.
hpr HeadingPitchRoll new HeadingPitchRoll(0.0,0.0, 0.0) optional 朝向.
length Number 10 optional 总长度.
spin Boolean false optional 是否旋转.
radians Number CesiumMath.TWO_PI optional 旋转的弧度
flow Boolean false optional 是否色彩涌动,false对应整体一个颜色.
segementCount Number 10 optional 色彩片段个数.
slices Number 6 optional 锥面切分个数,增大表现为棱锥到接近圆锥.要求不小于3
duration Number 3000 optional 旋转周期时间,单位毫秒.旋转和色彩流动使用相同周期
Example:
viewer.scene.primitives.add(new Cesium.VideoHintPrimitive({
        center: positions[i],
        hpr: new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(0.0),Cesium.Math.toRadians(-90.0),Cesium.Math.toRadians(0.0)),
        color: Cesium.Color.fromRandom({alpha: 0.5}, new Cesium.Color()),
        height: 5,
        scene: viewer.scene
      }));

Members

中心点
颜色
旋转周期时间,单位毫秒.
是否色彩涌动,false对应整体一个颜色
朝向
绘制对象的总的长度(高度)
旋转的弧度
色彩片段个数.
锥面切分个数,增大表现为棱锥到接近圆锥.要求不小于3
是否旋转

Methods

移除销毁对象
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.