]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/tracktype.cpp
Add a shortcut for getting the gauge of a TrackType
[r2c2.git] / source / libr2c2 / tracktype.cpp
index 59b8f9ca275b4fe508b94fe77c32ec220ab83472..3c6876b0cc8b5bd72a7e0f476f45b6d631f2aa6a 100644 (file)
@@ -1,5 +1,6 @@
 #include <cmath>
 #include <msp/geometry/union.h>
+#include "trackappearance.h"
 #include "tracktype.h"
 
 using namespace std;
@@ -14,6 +15,11 @@ TrackType::TrackType(const ArticleNumber &an, const TrackAppearance &ta):
        autofit_preference(1)
 { }
 
+float TrackType::get_gauge() const
+{
+       return appearance.get_gauge();
+}
+
 float TrackType::get_total_length() const
 {
        return get_path_length(-1);