import { Cartesian3, CesiumWidget, Entity, JulianDate } from '@cesium/engine'; import { default as XViewer } from '../core/XViewer.ts'; /** * 对飞机模型的加载和配置 * 统一管理工具 */ declare class ViewerEntityHelper { private static _viewer; private static _entity; private static _pathEntity; private static _pathWallEntity; private static _pathPositions; private static _isDisposed; /** * 获得当前实体模型 * @returns */ static getEntity(): Entity; static init(viewer: CesiumWidget | XViewer): void; /** * 返回当前Viewer视图对象 * @returns */ static getViewer(): CesiumWidget | XViewer; /** * 获得飞行的航线轨迹Entity * @returns */ static getPathEntity(): Entity; /** * 获取 轨迹墙 实体对象 * @returns */ static getPathWallEntity(): Entity; /** * 设置当前模型 * @param entity */ static bindEntity(entity: Entity): void; /** * 加载飞机模型 * @param modelUrl * @param options */ static bindModelEntity(modelUrl: string, options?: Entity.ConstructorOptions): void; /** * 绘制中获取 飞行当前点 */ static getFlightPostionCallback(time: JulianDate, result: Cartesian3): Cartesian3[]; /** * 绑定轨迹线 * @returns */ static followPath(): Entity; /** * 加载轨迹墙实体 * @returns */ static followPathWall(): Entity; /** * 清理飞行航迹点集合 */ static clearPathPositions(): void; /** * 清理 当前模型 */ static clearEntity(): void; /** * 是否显示轨迹 * @param isShow 是否显示 */ static showPath(isShow: boolean): void; /** * 是否显示轨迹墙 * @param isShow */ static showPathWall(isShow: boolean): void; } export default ViewerEntityHelper;