GeoSatellitePyramidPrimitive

new Cesium.GeoSatellitePyramidPrimitive(options)

卫星视锥体
Name Type Description
options Object optional 参数选项:
Name Type Description
viewer Viewer optional 三维视图对象
angle1 Number optional 视锥夹角1
angle2 Number optional 视锥夹角2
rotation Number optional 视锥相对地面的姿态
areaType Number optional 视锥类型,当值为1时视锥为圆锥体,当值为2时,视锥为四棱锥体
position Cartesian3 optional 视锥的坐标
show Boolean optional 视锥可见性
outline Boolean optional 视锥边线可见性
reverse Boolean optional 视锥是否反转
rayEllipsoid Boolean optional 圆锥是否可见
color Color optional 视锥的颜色
lineColor Color optional 视锥的边线颜色
Example:
radar = viewer.scene.primitives.add(new GeoSatellitePyramidPrimitive(viewer, {
		position: Cesium.Cartesian3.fromDegrees(117.141, 31.95, 900000),
		outline:false,
		angle1: 30,
		angle2: 30,
		areaType: 2,
		color: Cesium.Color.fromCssColorString('#CB6F1B').withAlpha(0.4),
		lineColor: Cesium.Color.fromCssColorString('#ffffff').withAlpha(0.4),
		outline: false,
	}));
Demo:

Members

angle1 : Number

视锥夹角1
Default Value: 10
Example:
geoSatellitePyramidPrimitive.angle1 = 60

angle2 : Number

视锥夹角2
Default Value: 10
Example:
geoSatellitePyramidPrimitive.angle2 = 60

color : Color

视锥的颜色
Default Value: new Cesium.Color(1.0 ,0 ,0 ,1)
Example:
geoSatellitePyramidPrimitive.color = new Cesium.Color(1.0 ,0 ,0 ,0.2)

heading : Number

视锥方向角
Default Value: 0
Example:
geoSatellitePyramidPrimitive.heading = 10

lineColor : Color

视锥的边线颜色
Default Value: new Cesium.Color(1.0 ,0 ,0 ,1)
Example:
geoSatellitePyramidPrimitive.lineColor = new Cesium.Color(1.0 ,0 ,0 ,0.2)

lookAt : Cartesian3

摄像机的位置
Default Value: undefined
Example:
geoSatellitePyramidPrimitive.lookAt = Cesium.Cartesian3.fromDegrees(116, 39, 500)

outline : Boolean

视锥边线是否可见
Default Value: false
Example:
geoSatellitePyramidPrimitive.outline = false

pitch : Number

视锥俯仰角
Default Value: 0
Example:
geoSatellitePyramidPrimitive.pitch = 0

rayEllipsoid : Boolean

圆锥是否可见
Default Value: false
Example:
geoSatellitePyramidPrimitive.rayEllipsoid = true

roll : Number

视锥翻滚角
Default Value: 0
Example:
geoSatellitePyramidPrimitive.roll = 0

rotation : Object

视锥相对地面的姿态
Default Value: rotation:{ heading: 0, pitch: 0, roll: 0 },
Example:
geoSatellitePyramidPrimitive.rotation = { heading: 20, pitch: 0, roll: 0 }

show : Boolean

视锥是否可见
Default Value: true
Example:
geoSatellitePyramidPrimitive.show = true