To be useful, TrafficControl needs to present the stations on an interactive map. The program logic is currently implemented in C++ with some Qt Graphical User interfaces using model-view relations.
|
The original presentation of the stations and tracks, that were imported from a KML file.
A part of the user interface will be based on QML, that imports a map from OpenStreet maps. QML is a design language where one can add graphical elements easily. I will describe a simple QML demo program later and publish it on my github account.
The challenge for me has been to add components in QML dynamically from C++, when stations or tracks are found. The placemarks below are from Google Earth/KML.
|
The yellow placemarks are representing stations. |
|
The stations has been identified and their coordinate has been sent to the QML part of the program,
|
The stations has been identified by trafficControl and dynamically added as circles |
Some of the next steps will be:
- Modifying the different stations individually
- Adding tracks
- Adding trains
- Showing status when hovering the mouse pointer over the items
- Modifying the components regarding their statuses
- Investigating model/view for QML map items
No comments:
Post a Comment