显示视频锥体投射示意效果,显示一个圆球和一个圆锥,圆锥尖头接触圆球。
以圆球圆心为中心,可选圆锥的指定朝向。
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
如下
|
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
移除销毁对象