]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/trackpart.h
Attempt to estimate the exact positions of trains from measured speed data
[r2c2.git] / source / libmarklin / trackpart.h
index 5aa4b0c8b0a487084ba310c37341a21ed34b0c6c..05fa0ba9dabd594cd2d882c99f579f1bdf165e50 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of the MSP Märklin suite
-Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
 
@@ -10,6 +10,7 @@ Distributed under the GPL
 
 #include <msp/datafile/loader.h>
 #include "endpoint.h"
+#include "geometry.h"
 
 namespace Marklin {
 
@@ -29,7 +30,7 @@ struct TrackPart
                void start(float, float, float);
        };
 
-       float    x, y;
+       Point    pos;
        float    dir;
        float    length;
        float    radius;
@@ -38,7 +39,8 @@ struct TrackPart
 
        TrackPart();
 
-       void collect_endpoints(std::vector<Endpoint> &);
+       void collect_endpoints(std::vector<Endpoint> &) const;
+       Point get_point(float) const;
 };
 
 } // namespace Marklin