SatelliteGroup

卫星组(外部不允许new).

new Cesium.SatelliteGroup(Options)

Name Type Description
Options Object optional 对象具有以下属性:
Name Type Default Description
goupName String 卫星组名
modelPath String 模型路径
modelScale Number 10000 optional 模型比例尺
visible boolean true optional 组下所有卫星的显隐
orbitsVisible boolean true optional 组下所有卫星轨道的显隐
orbitsWidth Number 1.0 optional 组下所有卫星轨道的宽(像素)
orbitsColor boolean new Color(0.8, 0.8, 0.2, 0.39) optional 组下所有卫星轨道的颜色
tleFilePaths Array [] optional 组下卫星TLE文件路径信息集合

Methods

destory()

销毁对象

fromJson(jsonObj)

根据json字符串初始化组
Name Type Description
jsonObj String json字符串

getAllSatelliteScale()number

获取卫星组中卫星的大小 (接口废弃)
Returns:
卫星(模型或图片)的大小

getGroupModelPath()String

获取模型(图片)的路径
Returns:
模型(图片)的路径

getGroupModelScale()Number

获取模型(图片)的缩放
Returns:
缩放值

getGroupName()String

获取组名称
Returns:
组名

getOrbitsColor()

获取轨道线色
Returns:

getOrbitsWidth()number

获取轨道线宽
Returns:
线宽

getSatelliteByUUID(UUID)Satellite

通过卫星UUID获取卫星
Name Type Description
UUID String 卫星唯一标识
Returns:
satellite 卫星对象

getSatelliteFileNames()Array

获取所有的子组名(TLE文件名)
Returns:
子组名集合

getSatellitePos(satelliteUuid)PlotPoint3D

获取卫星当前的位置
Name Type Description
satelliteUuid String 卫星uuid
Returns:
返回经纬度点

getSatellites(satelliteFileName)Array

获取所有子组下的所有卫星
Name Type Description
satelliteFileName String
Returns:
子组(TLE文件名)下的卫星对象。

getSatelliteZRotation(satelliteUuid)PlotPoint3D

获取卫星当前的旋转
Name Type Description
satelliteUuid String 卫星uuid
Returns:
返回xyz旋转

initGroup()

根据卫星组参数初始化卫星组(对象构造完成后或fromJson()后, 此方法用于解析传入的tle文件)

isModel()Boolean

是否为模型
Returns:
ture为模型,false为图片

isOrbitsVisible()

获取轨道显隐
Returns:

isVisible()boolean

获取卫星组显隐
Returns:
visible 卫星显隐

setAllSatelliteScale(modelScale)

设置卫星组中卫星的大小 (接口废弃)
Name Type Description
modelScale number 卫星(模型或图片)的大小

setGroupModelPath(modelPath)

设置模型(图片)的路径
Name Type Description
modelPath String 模型(图片)的路径

setGroupModelScale(modelScale)

设置模型(图片)的缩放
Name Type Description
modelScale Number 缩放值

setOrbitsColor(color)

设置轨道线色
Name Type Description
color Color

setOrbitsVisible(visible)

设置轨道显隐
Name Type Description
visible boolean 轨道显隐

setOrbitsWidth(width)

设置轨道线宽
Name Type Description
width number 线宽

setScene(场景)

设置绑定的场景
Name Type Description
场景 scene

setVisible(visible)

设置卫星组的显隐
Name Type Description
visible boolean 卫星显隐

toJson()

对象转化为json字符串
Returns:
json字符串

updateAllOrbitPosition(time)

批量更新卫星轨道的位置
Name Type Description
time number 卫星某一时刻时间戳(毫秒)

updateAllSatellitePosition(time)

批量更新卫星位置
Name Type Description
time number 卫星某一时刻时间戳(毫秒)