GeoConeProbingPrimitive

new Cesium.GeoConeProbingPrimitive(options)

雷达跟踪圆锥体
Name Type Description
options Object optional 参数选项:
Name Type Description
show Boolean optional 圆锥是否可见
color Color optional 圆锥颜色
outline Boolean optional 圆锥外边框是否可见
outlineColor Color optional 圆锥外边框的颜色
origin Cartesian3 optional 圆锥起始位置
target Cartesian3 optional 圆锥指向位置
heading Number optional 圆锥的方向角
roll Number optional 圆锥的翻滚角
pitch Number optional 圆锥的俯仰角
shadows Number optional 阴影模式,指定启用阴影时对象是投射还是接收光源的阴影
offset Number optional 控制开始绘制图案的位置的数字;其中0.0是偶数颜色的开始,1.0是奇数颜色的开始,2.0再次是偶数颜色,并且介于两者之间的任何倍数或小数值
mode Number optional 圆锥指向位置数目,决定圆锥指向方向
length Number optional 圆锥长度
repeat Number optional 条纹总数
topRadius Number optional 圆锥顶部半径
bottomRadius Number optional 圆锥底部半径
thickness Number optional 条纹的粗细(以像素为单位)
slices Number 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

bottomRadius : Number

圆锥底部半径
Default Value: 100
Example:
geoConeProbingPrimitive.bottomRadius = 400

color : Color

圆锥颜色
Default Value: Cesium.Color.YELLOW.withAlpha(0.8)
Example:
geoConeProbingPrimitive.color = Cesium.Color.YELLOW

heading : Number

圆锥方向角
Default Value: 0
Example:
geoConeProbingPrimitive.heading = 20

length : Number

圆锥长度
Default Value: 500
Example:
geoConeProbingPrimitive.length = 300

mode : Number

圆锥指向坐标的数目
Default Value: 0
Example:
geoConeProbingPrimitive.mode = 1

offset : Number

开始绘制图案的位置的数字
Default Value: 0
Example:
geoConeProbingPrimitive.offset = 0

origin : Cartesian3

圆锥起始坐标
Example:
geoConeProbingPrimitive.origin = Cesium.Cartesian3.fromDegrees(117.131, 31.95, 0),

outline : Boolean

圆锥外边框的可见性
Default Value: false
Example:
geoConeProbingPrimitive.outline = false

outlineColor : Color

圆锥外边框颜色
Default Value: Cesium.Color.WHITE
Example:
geoConeProbingPrimitive.outlineColor = Cesium.Color.DARKORANGE

pitch : Number

圆锥俯仰角
Default Value: 0
Example:
geoConeProbingPrimitive.pitch = 20

repeat : Number

重复次数
Default Value: 30
Example:
geoConeProbingPrimitive.repeat = 50

roll : Number

圆锥翻滚角
Default Value: 0
Example:
geoConeProbingPrimitive.roll = 10

shadows : Boolean

阴影模式
Default Value: Cesium.ShadowMode.DISABLED
Example:
geoConeProbingPrimitive.shadows = Cesium.ShadowMode.ENABLED

show : Boolean

圆锥可见性
Default Value: true
Example:
geoConeProbingPrimitive.show = true

slices : Number

圆锥外边框切割的数目
Default Value: 128
Example:
geoConeProbingPrimitive.slices = 100

target : Cartesian3

圆锥指向坐标
Default Value: undefined
Example:
geoConeProbingPrimitive.target = Cesium.Cartesian3.fromDegrees(117.131, 31.96, 1000)

thickness : Number

条纹的粗细
Default Value: 0.3
Example:
geoConeProbingPrimitive.thickness = 0.2

topRadius : Number

圆锥顶部半径
Default Value: 0
Example:
geoConeProbingPrimitive.topRadius = 0