]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/tracktype.h
New approach for displaying track state
[r2c2.git] / source / 3d / tracktype.h
index 952e8986b17365ee52112fd25a03b9b02e4f0c86..27bf7fe97723ec8e9e0c39d2f4b63ade8bcd0c89 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef R2C2_3D_TRACKTYPE_H_
 #define R2C2_3D_TRACKTYPE_H_
 
+#include <map>
 #include <msp/gl/mesh.h>
 #include <msp/gl/meshbuilder.h>
 #include <msp/gl/object.h>
@@ -18,14 +19,14 @@ private:
        Msp::GL::Mesh *mesh;
        Msp::GL::Object *object;
        bool own_data;
-       std::vector<Msp::GL::Mesh *> path_meshes;
+       std::map<unsigned, Msp::GL::Mesh *> path_meshes;
 
 public:
        TrackType3D(Catalogue3D &, const TrackType &);
        ~TrackType3D();
 
        const Msp::GL::Object &get_object() const { return *object; }
-       const Msp::GL::Mesh &get_path_mesh(unsigned) const;
+       const Msp::GL::Mesh &get_path_mesh(int, int) const;
 
 private:
        void build_part(const TrackPart &, const Profile &, const Vector &, bool, Msp::GL::MeshBuilder &, unsigned &);