]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/layout.h
Generate loco events from the Dummy driver
[r2c2.git] / source / 3d / layout.h
index 2e56ea63bd0195ea8ede83b3219f6f8dde1392f3..8fcd713a2c7be76c3b7a9ef247075f7d2f08feae 100644 (file)
@@ -8,6 +8,7 @@ Distributed under the GPL
 #ifndef MARKLIN3D_LAYOUT_H_
 #define MARKLIN3D_LAYOUT_H_
 
+#include <sigc++/trackable.h>
 #include <msp/gl/scene.h>
 #include "libmarklin/layout.h"
 #include "catalogue.h"
@@ -16,7 +17,7 @@ Distributed under the GPL
 
 namespace Marklin {
 
-class Layout3D
+class Layout3D: public sigc::trackable
 {
 private:
        Layout &layout;
@@ -25,6 +26,7 @@ private:
        std::list<Train3D *> trains;
        Msp::GL::Scene scene;
        Msp::GL::Scene ep_scene;
+       Msp::GL::Scene path_scene;
 
 public:
        Layout3D(Layout &);
@@ -38,13 +40,13 @@ public:
        Track3D &get_track(const Track &) const;
        Track3D *pick_track(float, float, float) const;
 
-       void set_traffic_manager(TrafficManager &);
        void add_train(Train3D &);
        void remove_train(Train3D &);
        Train3D &get_train(const Train &) const;
 
        Msp::GL::Scene &get_scene() { return scene; }
        Msp::GL::Scene &get_endpoint_scene() { return ep_scene; }
+       Msp::GL::Scene &get_path_scene() { return path_scene; }
 
 private:
        void track_added(Track &);