17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-02 20:56:27 +01:00

Catenary editor: save the catenary by the active layer

This commit is contained in:
2026-10-26 18:56:28 +01:00
parent 2321180051
commit 5f93c7c20d
8 changed files with 137 additions and 9 deletions

View File

@@ -164,9 +164,12 @@ struct catenary_editor
float span_length{60.0f};
bool show_staggers{true}; // the staggers written at the poles of the selected chain
std::optional<int> bend_user; // "cards for" as the user had it before a pole was selected (the pole's own while it is)
bool file_own{false}; // the catenary file was given by the user: it doesn't follow the active layer
};
catenary_tool m_catenary;
void catenary_scan();
// the catenary file of the new poles follows the active layer of the scenery
void catenary_file_follow();
// Placing: the spot of a new pole, which takes the zigzag proposed after the last pole and the step of the span
bool catenary_spot_at(TTrack &Track, int const Path, glm::dvec3 const &Point, glm::dvec3 const &Cursor, int const Side, catenary_spot &Spot, bool const Placing = false) const;
// the zigzag (Iet-107): the largest staggers allowed for the speed of the line, and those the next poles get