雷达跟踪圆锥体
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
参数选项:
|
Example:
var radarCone = new Cesium.GeoConeProbingPrimitive({
show:true,
topRadius:0,
origin: Cesium.Cartesian3.fromDegrees(118.5632, 31.263, 100),
target: Cesium.Cartesian3.fromDegrees(117.131, 31.95, 0),
target: Cesium.Cartesian3.fromDegrees(-117.131, 31.96, 1000),
heading:0,
roll:0,
pitch: -Math.PI / 2 - Math.PI / 4,
shadows:Cesium.ShadowMode.ENABLED,
offset:100,
mode: 2,
length:3000,
repeat: 50,
thickness: 0.3,
slices:100,
outline: true,
outlineColor:Cesium.Color.DARKORANGE,
bottomRadius: 400,
color: Cesium.Color.DARKORANGE
});
viewer.scene.primitives.add(radarCone);
Demo:
Members
圆锥底部半径
-
Default Value:
100
Example:
geoConeProbingPrimitive.bottomRadius = 400
圆锥颜色
-
Default Value:
Cesium.Color.YELLOW.withAlpha(0.8)
Example:
geoConeProbingPrimitive.color = Cesium.Color.YELLOW
圆锥方向角
-
Default Value:
0
Example:
geoConeProbingPrimitive.heading = 20
圆锥长度
-
Default Value:
500
Example:
geoConeProbingPrimitive.length = 300
圆锥指向坐标的数目
-
Default Value:
0
Example:
geoConeProbingPrimitive.mode = 1
开始绘制图案的位置的数字
-
Default Value:
0
Example:
geoConeProbingPrimitive.offset = 0
origin : Cartesian3
圆锥起始坐标
Example:
geoConeProbingPrimitive.origin = Cesium.Cartesian3.fromDegrees(117.131, 31.95, 0),
圆锥外边框的可见性
-
Default Value:
false
Example:
geoConeProbingPrimitive.outline = false
圆锥外边框颜色
-
Default Value:
Cesium.Color.WHITE
Example:
geoConeProbingPrimitive.outlineColor = Cesium.Color.DARKORANGE
圆锥俯仰角
-
Default Value:
0
Example:
geoConeProbingPrimitive.pitch = 20
重复次数
-
Default Value:
30
Example:
geoConeProbingPrimitive.repeat = 50
圆锥翻滚角
-
Default Value:
0
Example:
geoConeProbingPrimitive.roll = 10
阴影模式
-
Default Value:
Cesium.ShadowMode.DISABLED
Example:
geoConeProbingPrimitive.shadows = Cesium.ShadowMode.ENABLED
圆锥可见性
-
Default Value:
true
Example:
geoConeProbingPrimitive.show = true
圆锥外边框切割的数目
-
Default Value:
128
Example:
geoConeProbingPrimitive.slices = 100
target : Cartesian3
圆锥指向坐标
-
Default Value:
undefined
Example:
geoConeProbingPrimitive.target = Cesium.Cartesian3.fromDegrees(117.131, 31.96, 1000)
条纹的粗细
-
Default Value:
0.3
Example:
geoConeProbingPrimitive.thickness = 0.2
圆锥顶部半径
-
Default Value:
0
Example:
geoConeProbingPrimitive.topRadius = 0