X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Flayout.h;h=8fcd713a2c7be76c3b7a9ef247075f7d2f08feae;hb=43638fd7170c5c8290212c38c3eaf623b8c1b415;hp=2e56ea63bd0195ea8ede83b3219f6f8dde1392f3;hpb=bc8ac89bbe774bb133b758416182aa18e5e0a5a5;p=r2c2.git diff --git a/source/3d/layout.h b/source/3d/layout.h index 2e56ea6..8fcd713 100644 --- a/source/3d/layout.h +++ b/source/3d/layout.h @@ -8,6 +8,7 @@ Distributed under the GPL #ifndef MARKLIN3D_LAYOUT_H_ #define MARKLIN3D_LAYOUT_H_ +#include #include #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 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 &);