17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-19 02:39:19 +02:00

feat(editor): tracks drawn without a design get digitized: the route design keeps the line it opens in the scenery when no design is kept for it, or says why it can't (straights meeting with no curve, the curves read leaving a path by how much), trying the other transition shape before giving up; Digitize all the tracks in the route design does it for every line of the scenery and reports the count; a kept design counts as departed only where no path lies along it any more, so a parallel track or a diverging one beside a digitized line no longer shows it as left by metres; self-test command digitizeall

This commit is contained in:
maj00r
2026-10-12 03:24:23 +02:00
parent 696168a132
commit f5895abfa8
6 changed files with 250 additions and 46 deletions

View File

@@ -836,7 +836,8 @@ class editor_mode : public application_mode, private editor_track::observer
void render_switch_record(TTrack const &Track) const;
void route_store();
bool digitize_drawn(std::vector<TTrack *> const &Created, bool const Alone = true);
bool digitize_chain(editor_track::chain const &Chain);
bool digitize_chain(editor_track::chain const &Chain, std::string *Reason = nullptr);
void digitize_all();
void render_route_stored();
void route_update()
{