]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/layout.h
Split mesh generation from Track3D to TrackType3D
[r2c2.git] / source / 3d / layout.h
index 208ddacacba28254f267b6d121e44190f0f15d46..21686de5f9c8bbc4a19e1fdc21acffd2276b4267 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-2010 Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
 
@@ -9,6 +9,7 @@ Distributed under the GPL
 #define MARKLIN3D_LAYOUT_H_
 
 #include "libmarklin/layout.h"
+#include "catalogue.h"
 #include "track.h"
 
 namespace Marklin {
@@ -17,6 +18,7 @@ class Layout3D
 {
 private:
        Layout &layout;
+       Catalogue3D catalogue;
        std::list<Track3D *> tracks;
        unsigned quality;
 
@@ -24,6 +26,7 @@ public:
        Layout3D(Layout &);
        ~Layout3D();
 
+       const Catalogue3D &get_catalogue() const { return catalogue; }
        void set_quality(unsigned);
        const std::list<Track3D *> &get_tracks() const { return tracks; }
        void render(bool =false) const;