Abstract:
The principle of rotation matrix was used to process the lattice of the three-dimension model and get the two-dimension coordinates of various rotation angles in the screen. Besides, GDI + graphics operation technology was applied to draw the three-dimension models of the train and the track, the structure diagram of ZPW-2000A track circuit. The object-oriented method was adopted to encapsulate the figures including points, lines and planes into classes. The relationship between graphics and data was established, and the contents of the circuit diagram were compiled into Excel forms. The table reading and writing operation was implemented by C# programming language.Automatic drawing was implemented according to the information provided in the table. The software can show the three-dimension scene of the train occupied and cleared in different track segments, the state of the relays in the track circuit and the path of the current.