3 This file is part of the MSP Märklin suite
4 Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
8 #ifndef MARKLIN3D_LAYOUT_H_
9 #define MARKLIN3D_LAYOUT_H_
11 #include <msp/gl/scene.h>
12 #include "libmarklin/layout.h"
13 #include "catalogue.h"
22 Catalogue3D catalogue;
23 std::list<Track3D *> tracks;
25 Msp::GL::Scene ep_scene;
31 const Catalogue3D &get_catalogue() const { return catalogue; }
33 void add_track(Track3D &);
34 void remove_track(Track3D &);
35 const std::list<Track3D *> &get_tracks() const { return tracks; }
36 Track3D &get_track(const Track &) const;
37 Track3D *pick_track(float, float, float) const;
39 Msp::GL::Scene &get_scene() { return scene; }
40 Msp::GL::Scene &get_endpoint_scene() { return ep_scene; }
43 void track_added(Track &);
44 void track_removed(Track &);
47 } // namespace Marklin