Satellite

卫星类.

new Cesium.Satellite(options)

Name Type Description
options Object 对象具有以下属性:
Name Type Description
name String optional 卫星名
tleLine1 String 卫星轨道参数1
tleLine2 String 卫星轨道参数2
networking String optional 卫星组网名

Methods

clone()Satellite

克隆对象
Returns:
新的对象

fromGeoJson(jsonObj)

Json字符串转对象(接口废弃,请调用fromJson())
Name Type Description
jsonObj object JSON字符串

fromJson(jsonObj)

根据json字符串初始化相关参数(不包含TLE相关信息,信息通过TLE文件初始化时获取)
Name Type Description
jsonObj String json字符串

getExtendProperty(key)String

获取扩展属性值
Name Type Description
key String 属性名称
Returns:
扩展属性值

getllExtendProperty()map

获取所有的扩展属性
Returns:
{属性名:数据值,属性名:数据值,.....}

getName()String

获取卫星名
Returns:
卫星名

getNetworking()String

获取卫星组网名。
Returns:
卫星组网名

getOrbitColor()Color

获取轨道线色
Returns:
轨道线色

getOrbitPoints(utcTime)Array

获取某一时刻卫星运行一个周期的轨迹点串
Name Type Description
utcTime number UTC时间戳(毫秒)
Returns:
当前时刻后卫星一个周期点串(笛卡尔点串)

getOrbitWidth()Number

获取轨道线宽
Returns:
线宽

getPosition(utcTime)PlotPoint3D

获取某一时刻卫星的位置
Name Type Description
utcTime number UTC时间戳(毫秒)
Returns:
当前时刻卫星的位置(经纬度点)

getPositionEci(utcTime)Cartesian3

获取某一时刻卫星的位置
Name Type Description
utcTime number UTC时间戳(毫秒)
Returns:
当前时刻卫星的位置(笛卡尔点)

getPositionMatrix(utcTime)Matrix4

获取某一时刻卫星的位置矩阵(带旋转)
Name Type Description
utcTime number UTC时间戳(毫秒)
Returns:
当前时刻卫星的位置矩阵(带旋转)

getScale()double

获取缩放
Returns:
缩放

getUrlPath()String

获取资源路径
Returns:
资源路径

getUUID()String

卫星UUID(卫星的唯一标识)
Returns:
卫星唯一标识信息

isOrbitVisible()Boolean

获取轨道显隐
Returns:
轨道显隐

isVisible()Boolean

获取显隐
Returns:
轨道显隐

removeAllExtendProperty()

删除扩展属性值。

removeExtendProperty(key)

删除扩展属性值。
Name Type Description
key String 属性名

setExtendProperty(key, value)

设置扩展属性值。
Name Type Description
key String
value String

setName(name)

设置卫星名
Name Type Description
name String 卫星名

setNetworking(networking)

设置卫星组网名
Name Type Description
networking String 卫星组网名

setOrbitColor(orbitColor)

设置轨道线色
Name Type Description
orbitColor Color 轨道线色

setOrbitVisible(orbitVisible)

设置轨道显隐
Name Type Description
orbitVisible Boolean 轨道显隐

setOrbitWidth(orbitWidth)

设置轨道线宽
Name Type Description
orbitWidth Number 线宽

setScale(scale)

设置缩放
Name Type Description
scale double 缩放

setUrlPath(urlPath)

设置资源路径
Name Type Description
urlPath Boolean 资源路径

setVisible(visible)

设置显隐
Name Type Description
visible Boolean 显隐

toGeoJson()String

对象转Json字符串(接口废弃,请调用toJson())
Returns:
Json字符串

toJson()

对象的相关参数转化为json字符串(不包含TLE相关信息,信息通过TLE文件初始化时获取)
Returns:
json字符串