2024-01-09 14:11:27 +08:00
|
|
|
import { DevicePort, IRelatedRef, KilometerSystem } from 'common/common';
|
|
|
|
import { GraphicData, JlGraphic } from 'jl-graphic';
|
|
|
|
import { IPointData } from 'pixi.js';
|
|
|
|
export declare enum SwitchMachineType {
|
|
|
|
Unknown = 0,
|
|
|
|
ZDJ9_Single = 1,
|
|
|
|
ZDJ9_Double = 2
|
|
|
|
}
|
|
|
|
export interface ITurnoutData extends GraphicData {
|
|
|
|
code: string;
|
|
|
|
pointA: IPointData[];
|
|
|
|
pointB: IPointData[];
|
|
|
|
pointC: IPointData[];
|
|
|
|
paRef?: IRelatedRef;
|
|
|
|
pbRef?: IRelatedRef;
|
|
|
|
pcRef?: IRelatedRef;
|
|
|
|
kilometerSystem: KilometerSystem;
|
|
|
|
paTrackSectionId?: number;
|
|
|
|
pbTrackSectionId?: number;
|
|
|
|
pcTrackSectionId?: number;
|
|
|
|
switchMachineType?: SwitchMachineType;
|
|
|
|
centralizedStations?: number[];
|
|
|
|
clone(): ITurnoutData;
|
|
|
|
copyFrom(data: ITurnoutData): void;
|
|
|
|
eq(other: ITurnoutData): boolean;
|
|
|
|
}
|
2024-01-04 10:40:55 +08:00
|
|
|
export declare class Turnout extends JlGraphic {
|
2024-01-09 14:11:27 +08:00
|
|
|
static Type: string;
|
2024-01-04 10:40:55 +08:00
|
|
|
doRepaint(): void;
|
2024-01-09 14:11:27 +08:00
|
|
|
get datas(): ITurnoutData;
|
|
|
|
getGraphicOfPort(port: DevicePort): JlGraphic[];
|
|
|
|
getPortPoints(): IPointData[][];
|
2024-01-04 10:40:55 +08:00
|
|
|
}
|