GeoSpaceRadarPrimitive

new Cesium.GeoSpaceRadarPrimitive(options)

单目标雷达范围
Name Type Description
options Object optional 参数选项:
Name Type Description
viewer Viewer optional 三维视图对象
angle Number optional 仰角
rotation Number optional 雷达相对地面的姿态
radius Number optional 雷达半径
position Cartesian3 optional 雷达坐标
show Boolean optional 雷达可见性
groundArea Boolean optional 地面投影的可见性
outline Boolean optional 雷达边框可见性
topShow Boolean optional 雷达顶盖可见性
topOutline Boolean optional 雷达顶盖边框的可见性
color Color optional 雷达的颜色
lineColor Color optional 雷达线的颜色
Example:
radar = viewer.scene.primitives.add(new GeoSpaceRadarPrimitive(viewer, {
		show:true,
		position: Cesium.Cartesian3.fromDegrees(116.517, 39.891, 100);
		angle: 60,
		radius: 10000,
		rotation: {
			heading: Cesium.Math.toRadians(0),
			pitch: Cesium.Math.toRadians(40),
			roll: Cesium.Math.toRadians(0)
		},
		color: Cesium.Color.fromCssColorString('#1E90FF').withAlpha(0.4),
		lineColor: Cesium.Color.fromCssColorString('#ffffff').withAlpha(0.4),
 }));
Demo:

Members

angle : Number

仰角
Default Value: 60
Example:
geoSpaceRadarPrimitive.angle = 30

color : Color

雷达颜色
Default Value: new Cesium.Color(1.0 ,0 ,0 ,1)
Example:
geoSpaceRadarPrimitive.color = new Cesium.Color(1.0 ,0 ,0 ,0.5)

groundArea : Boolean

地面投影的可见性
Default Value: false
Example:
geoSpaceRadarPrimitive.groundArea = false

heading : Number

雷达方向角
Default Value: 0
Example:
geoSpaceRadarPrimitive.heading = 10

lineColor : Color

线颜色
Default Value: new Cesium.Color(1.0 ,0 ,0 ,1)
Example:
geoSpaceRadarPrimitive.lineColor = new Cesium.Color(1.0 ,0 ,0 ,0.3)

lookAt : Cartesian3

摄像机的位置
Default Value: undefined
Example:
geoSpaceRadarPrimitive.lookAt = Cesium.Cartesian3.fromDegrees(116.517, 39.891, 100)

outline : Boolean

雷达边框是否可见
Default Value: true
Example:
geoSpaceRadarPrimitive.outline = true

pitch : Number

雷达俯仰角
Default Value: 0
Example:
geoSpaceRadarPrimitive.pitch = 0

position : Cartesian3

雷达坐标
Example:
geoSpaceRadarPrimitive.position = Cesium.Cartesian3.fromDegrees(116.517, 39.891, 90000)

radius : Number

雷达大小
Default Value: 200
Example:
geoSpaceRadarPrimitive.radius = 1000

roll : Number

雷达翻滚角
Default Value: 0
Example:
geoSpaceRadarPrimitive.roll = 0

show : Boolean

雷达是否可见
Default Value: true
Example:
geoSpaceRadarPrimitive.show = true

top : Boolean

雷达顶盖是否可见
Default Value: true
Example:
geoSpaceRadarPrimitive.top = true

topOutline : Boolean

雷达顶盖边框是否可见
Default Value: true
Example:
geoSpaceRadarPrimitive.topOutline = true