17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-03 16:40:21 +01:00

feat(editor): the download area drawn on the topo map: a polygon is the boundary of what the editor downloads, the orthophoto and the terrain model alike. Drawn from the settings of the orthophoto (Download area, Draw on the map, the top view on): a click puts a point, a point dragged moves, Shift+click removes it, Backspace takes the last one back, Enter closes the area, Esc gives up; it's kept in the scenery as //$a lines in PUWG 1992, so it stays on the ground when the origin moves. Inside it everything the settings ask for, the standard imagery, the 4K one where it's ticked and covers the place, the squares of the terrain model where the scenery has its terrain, goes to the disk cache in the background, nothing decoded nor uploaded, only while no tile around the camera waits and not while the scenery is driven, with its progress, Pause and Retry under it; outside it nothing is asked for, around the camera, along the tracks or ahead of the laying, nor shown. The workers of the orthophoto are 8, at most 3 of them on the tiles around the camera, each holding an image decoded, the rest downloading the area. The 4K tiles: an image the tile no longer wants once it comes, as a 4K one asked for before the camera moved on, isn't uploaded (the 64 MB and the mipmaps of it), nor decoded where a newer job of the tile waits; no two jobs of one tile run at once; a standard tile coming blank twice is remembered by a .blank file, not downloaded again on each return; a 4K tile is uploaded only in a frame with no other upload. Selftests orthoarea, orthostats, orthohires, orthoareapause; unit tests of the tiles a triangle, a concave polygon, a thin band and a polygon about a corner touch (geometry::squares_in, square_touches)

This commit is contained in:
maj00r
2026-10-26 18:58:09 +01:00
parent 9b596e7ffa
commit d6df785b78
13 changed files with 922 additions and 39 deletions

View File

@@ -12248,3 +12248,40 @@ msgstr "Łuk %d %s"
msgid "Vertex %zu: the transition curve between the curve of the adjoining track and R %.0f m is shorter than the required %.0f m"
msgstr "Wierzchołek %zu: krzywa przejściowa między łukiem przylegającego toru a R %.0f m jest krótsza niż wymagane %.0f m"
msgid "Download area"
msgstr "Obszar pobierania"
msgid "A polygon drawn on the map: what the settings ask for inside it, the orthophoto and the terrain model,
goes to the disk cache in the background, and nothing outside it is downloaded, also around the camera"
msgstr "Wielokąt narysowany na mapie: to, co wybrano w ustawieniach, ortofotomapa i model terenu, pobiera się w nim w tle
do pamięci podręcznej na dysku, a poza nim nic się nie pobiera, także wokół kamery"
msgid "Click the points of the area on the map. Enter closes it, Backspace takes the last point back, Esc gives up;
a point dragged moves, Shift+click removes it"
msgstr "Klikaj na mapie punkty obszaru. Enter go zamyka, Backspace cofa ostatni punkt, Esc rezygnuje;
przeciągnięty punkt się przesuwa, Shift+klik go usuwa"
msgid "%zu points"
msgstr "punktów: %zu"
msgid "Draw on the map"
msgstr "Narysuj na mapie"
msgid "Draw again"
msgstr "Narysuj od nowa"
msgid "none: the tiles around the camera, wherever it is"
msgstr "brak: kafle wokół kamery, gdziekolwiek jest"
msgid "Area: %d of %d tiles in the cache, %d failed"
msgstr "Obszar: %d z %d kafli w pamięci podręcznej, nieudanych %d"
msgid "Resume"
msgstr "Wznów"
msgid "Pause"
msgstr "Wstrzymaj"
msgid "Terrain model: %d of %d squares in the cache, %d failed"
msgstr "Model terenu: %d z %d kwadratów w pamięci podręcznej, nieudanych %d"