雷达跟踪四棱锥体
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
参数选项:
|
Example:
var radar = viewer.scene.primitives.add(new GeoFourPrismPrimitive(viewer, {
show:true,
angle1: 22,
angle2: 22,
radius: 700000,
rotation: {
heading: Cesium.Math.toRadians(0),
pitch:Cesium.Math.toRadians(40),
roll: Cesium.Math.toRadians(0)
},
color: Cesium.Color.fromCssColorString('rgba(255,255,0,0.4)'),
position: Cesium.Cartesian3.fromDegrees(116.517, 39.891, 100),
outline: true,
lineColor: Cesium.Color.fromCssColorString('rgba(255,255,255,0.4)'),
topShow: true,
topOutline: true,
reverse: false,
topSteps: 2
}));
Demo:
Members
四棱锥夹角
-
Default Value:
60
Example:
geoFourPrismPrimitive.angle = 60
四棱锥夹角1
-
Default Value:
60
Example:
geoFourPrismPrimitive.angle1 = 60
四棱锥夹角2
-
Default Value:
60
Example:
geoFourPrismPrimitive.angle2 = 60
四棱锥的颜色
-
Default Value:
new Cesium.Color(1.0 ,0 ,0 ,0.2)
Example:
geoFourPrismPrimitive.color = new Cesium.Color(1.0 ,0 ,0 ,0.2)
四棱锥的方向角
-
Default Value:
0
Example:
geoFourPrismPrimitive.heading = 100
四棱锥的边框颜色
-
Default Value:
new Cesium.Color(1.0 ,1.0 ,1.0 ,0.4)
Example:
geoFourPrismPrimitive.lineColor = new Cesium.Color(1.0 ,1.0 ,1.0 ,0.4)
lookAt : Cartesian3
摄像机的位置
-
Default Value:
undefined
Example:
geoFourPrismPrimitive.lookAt = Cesium.Cartesian3.fromDegrees(116.517, 39.891, 100)
四棱锥边框是否可见
-
Default Value:
true
Example:
geoFourPrismPrimitive.outline = true
四棱锥的俯仰角
-
Default Value:
0
Example:
geoFourPrismPrimitive.pitch = 0
position : Cartesian3
四棱锥的位置
Example:
geoFourPrismPrimitive.position = Cesium.Cartesian3.fromDegrees(116.517, 39.891, 0)
position : Cartesian3
视锥位置
Example:
geoFourPrismPrimitive.position = Cesium.Cartesian3.fromDegrees(118, 37, 100)
四棱锥的大小
-
Default Value:
10000
Example:
geoFourPrismPrimitive.radius = 70000
四棱锥的翻滚角
-
Default Value:
0
Example:
geoFourPrismPrimitive.roll = 0
四棱锥是否可见
-
Default Value:
true
Example:
geoFourPrismPrimitive.show = true
四棱锥顶盖边框的是否显示
-
Default Value:
true
Example:
geoFourPrismPrimitive.topOutline = true
四棱锥顶盖是否显示
-
Default Value:
true
Example:
geoFourPrismPrimitive.topShow = true
trackedEntity : Entity
跟踪实体
-
Default Value:
undefined
Example:
geoFourPrismPrimitive.trackedEntity = new Cesium.Entity()