Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
对象具有以下属性:
|
Methods
-
clone() → Satellite
-
克隆对象
Returns:
新的对象 -
Json字符串转对象(接口废弃,请调用fromJson())
Name Type Description jsonObj
object JSON字符串 -
根据json字符串初始化相关参数(不包含TLE相关信息,信息通过TLE文件初始化时获取)
Name Type Description jsonObj
String json字符串 -
获取扩展属性值
Name Type Description key
String 属性名称 Returns:
扩展属性值 -
获取所有的扩展属性
Returns:
{属性名:数据值,属性名:数据值,.....} -
获取卫星名
Returns:
卫星名 -
获取卫星组网名。
Returns:
卫星组网名 -
getOrbitColor() → Color
-
获取轨道线色
Returns:
轨道线色 -
获取某一时刻卫星运行一个周期的轨迹点串
Name Type Description utcTime
number UTC时间戳(毫秒) Returns:
当前时刻后卫星一个周期点串(笛卡尔点串) -
获取轨道线宽
Returns:
线宽 -
getPosition(utcTime) → MPoint3D
-
获取某一时刻卫星的位置
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:
当前时刻卫星的位置矩阵(带旋转) -
getRotation(utcTime) → HeadingPitchRoll
-
获取某一时刻卫星的旋转
Name Type Description utcTime
number UTC时间戳(毫秒) Returns:
卫星的旋转 -
获取缩放
Returns:
缩放 -
获取资源路径
Returns:
资源路径 -
卫星UUID(卫星的唯一标识)
Returns:
卫星唯一标识信息 -
获取轨道显隐
Returns:
轨道显隐 -
获取显隐
Returns:
轨道显隐 -
删除扩展属性值。
-
删除扩展属性值。
Name Type Description key
String 属性名 -
设置扩展属性值。
Name Type Description key
String value
String -
设置卫星名
Name Type Description name
String 卫星名 -
设置卫星组网名
Name Type Description networking
String 卫星组网名 -
设置轨道线色
Name Type Description orbitColor
Color 轨道线色 -
设置轨道显隐
Name Type Description orbitVisible
Boolean 轨道显隐 -
设置轨道线宽
Name Type Description orbitWidth
Number 线宽 -
设置缩放
Name Type Description scale
double 缩放 -
设置资源路径
Name Type Description urlPath
Boolean 资源路径 -
设置显隐
Name Type Description visible
Boolean 显隐 -
对象转Json字符串(接口废弃,请调用toJson())
Returns:
Json字符串 -
对象的相关参数转化为json字符串(不包含TLE相关信息,信息通过TLE文件初始化时获取)
Returns:
json字符串