卫星视锥体
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
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
视锥夹角1
-
Default Value:
10
Example:
geoSatellitePyramidPrimitive.angle1 = 60
视锥夹角2
-
Default Value:
10
Example:
geoSatellitePyramidPrimitive.angle2 = 60
视锥的颜色
-
Default Value:
new Cesium.Color(1.0 ,0 ,0 ,1)
Example:
geoSatellitePyramidPrimitive.color = new Cesium.Color(1.0 ,0 ,0 ,0.2)
视锥方向角
-
Default Value:
0
Example:
geoSatellitePyramidPrimitive.heading = 10
视锥的边线颜色
-
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)
视锥边线是否可见
-
Default Value:
false
Example:
geoSatellitePyramidPrimitive.outline = false
视锥俯仰角
-
Default Value:
0
Example:
geoSatellitePyramidPrimitive.pitch = 0
圆锥是否可见
-
Default Value:
false
Example:
geoSatellitePyramidPrimitive.rayEllipsoid = true
视锥翻滚角
-
Default Value:
0
Example:
geoSatellitePyramidPrimitive.roll = 0
视锥相对地面的姿态
-
Default Value:
rotation:{ heading: 0, pitch: 0, roll: 0 },
Example:
geoSatellitePyramidPrimitive.rotation = { heading: 20, pitch: 0, roll: 0 }
视锥是否可见
-
Default Value:
true
Example:
geoSatellitePyramidPrimitive.show = true