mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 08:39:19 +02:00
feat(editor): platform edge put 1.725, 1.675 or 1.650 m from the axis of the track as chosen, kept in the editor settings; models along a track set back by the gauge of the other path of each switch whose points their line passes, also when they stand by the plain track ahead of the switch or by its straight path, the widening led in from the tracks beyond the diverging path; the line beyond the ends of a sweep goes on along the straightest path
This commit is contained in:
@@ -92,6 +92,8 @@ bool editorSettings::load()
|
||||
parse(value, m_orthophoto.lift);
|
||||
else if (key == "ortho_in_scene")
|
||||
m_orthophoto.in_scene = (value == "1");
|
||||
else if (key == "platform_edge")
|
||||
parse(value, m_platform_edge);
|
||||
else if (key.rfind(origin_prefix, 0) == 0)
|
||||
{
|
||||
// northing;easting
|
||||
@@ -130,6 +132,7 @@ bool editorSettings::save()
|
||||
stream << "ortho_drape " << (m_orthophoto.drape ? 1 : 0) << "\n";
|
||||
stream << "ortho_lift " << m_orthophoto.lift << "\n";
|
||||
stream << "ortho_in_scene " << (m_orthophoto.in_scene ? 1 : 0) << "\n";
|
||||
stream << "platform_edge " << m_platform_edge << "\n";
|
||||
stream << std::fixed << std::setprecision(3);
|
||||
for (auto const &origin : m_orthophoto_origins)
|
||||
stream << origin.first << " " << origin.second.first << ";" << origin.second.second << "\n";
|
||||
|
||||
Reference in New Issue
Block a user