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

Structure gauge: map scan in slices over the frames with progress and cancel, skip the triangles far from the lines

This commit is contained in:
maj00r
2026-10-04 02:35:00 +02:00
parent 818fc60e21
commit ac82db8178
2 changed files with 133 additions and 47 deletions

View File

@@ -347,6 +347,7 @@ class editor_mode : public application_mode, private editor_track::observer
} spot; // tunnel around the hit the camera went to
int current{-1}; // hit the camera went to
bool published{false}; // overlay up to date
std::shared_ptr<struct gauge_scan> scan; // of the whole scenery, done in slices over the frames
} m_gauge;
void gauge_load();
// the chosen railway and road outlines
@@ -355,6 +356,8 @@ class editor_mode : public application_mode, private editor_track::observer
void update_gauge();
void scan_gauge(TTrack &Track);
void scan_gauge_map();
void step_gauge_map();
void finish_gauge_map();
void gauge_publish();
void gauge_focus(int Index);
void gauge_spot(gauge_hit const &Hit);