]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/catalogue.cpp
Reserve two ids for double-address turnouts
[r2c2.git] / source / libmarklin / catalogue.cpp
index fca6045fc38da36c5613758fd205f95c1a5f791a..beab69a62ae387cf37b54745518472ac14ee0ef9 100644 (file)
@@ -30,6 +30,11 @@ Catalogue::~Catalogue()
                delete i->second;
 }
 
+float Catalogue::get_rail_elevation() const
+{
+       return ballast_profile.get_height()+rail_profile.get_height();
+}
+
 void Catalogue::add_track(TrackType &track)
 {
        if(tracks.count(track.get_article_number()))