rt-graphic-component/components/packages/Turnout/THTurnout.d.ts
joylink_zhaoerwei f87f2178fb 道岔测试
2024-01-19 13:52:29 +08:00

43 lines
1.6 KiB
TypeScript

import { Graphics, IPointData } from 'pixi.js';
import { JlTurnout } from './common/JlTurnout';
import { GraphicAnimation, GraphicState } from 'jl-graphic';
export interface ITHTurnoutState extends GraphicState {
ipSingleSwitchStusCiOccupied: boolean;
ipSingleSwitchStusCbtcOccupied: boolean;
ipSingleSwitchStusLocked: boolean;
ipSingleSwitchStusFailLocked: boolean;
ipSingleSwitchStusNormal: boolean;
ipSingleSwitchStusReverse: boolean;
ipSingleSwitchStusBlocked1: boolean;
ipSingleSwitchStusJammed: boolean;
ipSingleSwitchStusCut: boolean;
ipSingleSwitchStusAtcInvalid: boolean;
ipSingleSwitchStusOverlap: boolean;
ipSingleSwitchStusTsrCbtcMain: boolean;
ipSingleSwitchStusTsrCbtcNormal: boolean;
ipSingleSwitchStusTsrCbtcReverse: boolean;
ipSingleSwitchStusTsrBmMain: boolean;
ipSingleSwitchStusTsrBmNormal: boolean;
ipSingleSwitchStusTsrBmReverse: boolean;
ipSingleSwitchStusBlocked2: boolean;
ipSingleSwitchStusLostIndication: boolean;
id: string;
speedLimit: number;
rtuId: number;
}
export declare class THTurnout extends JlTurnout {
labelRect: Graphics;
speedLimit: Graphics;
lostIndicationSquare: Graphics;
deltaTime: number;
constructor();
get states(): ITHTurnoutState;
doRepaint(): void;
setLineColor(color: string): void;
getSpeedLimitLinePoints(conf: 'normal' | 'reverse' | 'main'): IPointData[][];
bindFlashAnimation(gList: Graphics[], name: string): GraphicAnimation;
buildRelation(): void;
saveRelations(): void;
loadRelations(): void;
}