ConePrimitive

ConePrimitive

new ConePrimitive(viewer, opt)

Description:
  • 自定义锥体
Parameters:
Name Type Description
viewer Cesium.Viewer
opt Object
Properties
Name Type Description
position Cesium.Cartesian3 顶点坐标
distance Number 锥体长度
fov Number 水平张角
aspect Number 宽高比
color Cesium.Color 颜色
heading Number 偏转角
pitch Number 仰俯角
roll Number 翻滚角
outlineColor Cesium.Color 边框颜色
rectMaterial Cesium.Color 底部材质
coneVisible Boolean 锥体是否显示
rectangleVisible Boolean 底部矩形是否显示
radius Number 半径
speed Number 速度

Members

_primitive

Properties:
Name Type Description
锥体

rectangle

Properties:
Name Type Description
底部矩形

Methods

setHeadingPitchRoll(heading, pitch, roll)

Description:
  • 设置锥体姿态
Parameters:
Name Type Description
heading Number 偏转角
pitch Number 仰俯角
roll Number 翻滚角

setPolygonRotation(angle)

Description:
  • 设置视频材质方向
Parameters:
Name Type Description
angle Number

setPosition(position)

Description:
  • 设置锥体顶点坐标
Parameters:
Name Type Description
position Cesium.Cartesian3