34 lines
1.0 KiB
TypeScript
34 lines
1.0 KiB
TypeScript
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;
|
|
}
|
|
export declare class Turnout extends JlGraphic {
|
|
static Type: string;
|
|
doRepaint(): void;
|
|
get datas(): ITurnoutData;
|
|
getGraphicOfPort(port: DevicePort): JlGraphic[];
|
|
getPortPoints(): IPointData[][];
|
|
}
|