SatelliteSimulation

SatelliteSimulation

卫星模拟

Constructor

new SatelliteSimulation(viewer, options)

创建卫星模拟对象 使用此效果必须先引入zz3d-space库 否则无效

Parameters:
Name Type Description
viewer Viewer

场景对象

options Object

带有以下属性的对象:

Properties
Name Type Attributes Default Description
radarPos Array

雷达位置,经纬高的形式 eg:[109.266201, 34.328747, 1213.46]

radarURL String

雷达模型的URL

radarCoverRadius Number <optional>
2000000

雷达覆盖区域半径 单位米 默认值

radarMinPixelSize Number <optional>
30

雷达模型的最小像素大小

radarCoverAreaColor Array <optional>
[1,0,0,0.2]

雷达覆盖区域颜色rgba 范围0~1

radarPopup String <optional>
'地面站'

雷达模型显示名称

satelliteListURL String | Array

卫星列表文件地址 文件必须是json格式 也可直接传入卫星列表数组

satelliteModelURL String

卫星模型URL

linePicURL String

卫星和雷达之间连接线所用的材质纹理贴图路径

satellitePathColor String <optional>
[0.88,0.88,0.88,1]

卫星轨道颜色rgba 范围0~1

pickSatelliteCallback function <optional>

选中卫星或者其轨道时调用的回调函数,函数会传入卫星对象

satelliteEnterCallback function <optional>

卫星进入雷达覆盖区域时执行的操作,函数会传入卫星对象

satelliteLeaveCallback function <optional>

卫星离开雷达覆盖区域时执行的操作,函数会传入卫星对象

onEnd function <optional>

卫星模型完成回调

Classes

SatelliteSimulation

Methods

clearSatellitePickStatus()

清除卫星选中效果

destroy()

销毁分析对象

getEntityByID(satelliteID) → {Entity}

根据卫星ID来获取对应的实体 通常用来定位或追踪

Parameters:
Name Type Description
satelliteID String

卫星ID

Returns:

返回对应的实体

Type
Entity

highlightSatellite(satelliteID, pathColoropt)

根据卫星ID来高亮对应的卫星和轨道

Parameters:
Name Type Attributes Default Description
satelliteID String

卫星ID

pathColor Array <optional>
[1,1,0]

轨道高亮颜色rgb 范围0~1