You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
GCSGUI/src/types/entityoptions.ts

63 lines
1.5 KiB
TypeScript

/*
* @Author: cbwu 504-wuchengbo@htsdfp.com
* @Date: 2024-04-13 10:36:06
* @LastEditors: cbwu
* @LastEditTime: 2024-04-16 13:47:55
* @Description:
*/
import { Color, Cartesian2, HeightReference } from 'cesium'
export interface EntityOptions {
id?: string
name?: string
show?: boolean
pixelSize?: number //点大小
outlineColor?: Color //轮廓线颜色
color?: Color //点颜色
fillColor?: Color //填充颜色
fill?: boolean //是否填充
width?: number //线宽
outlineWidth?: number
text?: string //标注内容
font?: string //字体
pixelOffset?: Cartesian2 //偏移量
image?: string //图片url
imageWidth?: number //图片宽
imageHeight?: number //图片高
heightReference?: HeightReference
}
export type UavDynamicInfo = {
uavId: string,
uavType: string,
uavFlightControlSn?: string,
heading:number,
pitch:number,
lon:number,
lat:number,
alt:number,
groundSpeed:number, //地速单位km/h精确到小数点后三位
}
export type AirlinePoint = {
lon:number,
lat:number,
alt:number,
ch2:number,
ch1:number, //任务特征字, 2为闭合航线 0为开航线
speed:number, //航点特征字
nPt:number, //航点号
}
export type Airline = {
name: string,
code: number, //航线编号
PtNum: number,
isClose: boolean,
totalDistance: number,
points: AirlinePoint[],
}
export type routeTerrain = {
routeID: number,
distanceArray: number[],
elevationArray: number[],
}