]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/tracktype.h
Set correct Z coordinate to vehicle position
[r2c2.git] / source / libmarklin / tracktype.h
index ba1b95ff6aee5148d5335f47648e9c2e5de84b00..582f77ae25b1a506bbd49b28c6fec8cfea3f57e7 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of the MSP Märklin suite
-Copyright © 2006-2009  Mikkosoft Productions, Mikko Rasa
+Copyright © 2006-2010  Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
 
@@ -28,10 +28,11 @@ public:
        };
 
 private:
-       unsigned     art_nr;
-       std::string  description;
+       unsigned art_nr;
+       std::string description;
        std::vector<TrackPart> parts;
        std::vector<Endpoint> endpoints;
+       bool double_address;
 
 public:
        TrackType(unsigned);
@@ -39,13 +40,17 @@ public:
        unsigned get_article_number() const { return art_nr; }
        const std::string &get_description() const { return description; }
        float get_total_length() const;
-       float get_route_length(int) const;
-       unsigned get_n_routes() const;
+       float get_path_length(int) const;
+       unsigned get_paths() const;
+       unsigned get_n_paths() const;
+       bool is_turnout() const;
+       bool is_double_address() const { return double_address; }
        const std::vector<TrackPart> &get_parts() const { return parts; }
-       const std::vector<Endpoint>  &get_endpoints() const { return endpoints; }
+       const std::vector<Endpoint> &get_endpoints() const { return endpoints; }
+       TrackPoint get_point(unsigned, unsigned, float) const;
 
 private:
-       void  collect_endpoints();
+       void collect_endpoints();
 };
 
 } // namespace Marklin