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;
32 const Catalogue3D &get_catalogue() const { return catalogue; }
33 void set_quality(unsigned);
35 void add_track(Track3D &);
36 void remove_track(Track3D &);
37 const std::list<Track3D *> &get_tracks() const { return tracks; }
38 Track3D &get_track(const Track &) const;
39 Track3D *pick_track(float, float, float) const;
41 Msp::GL::Scene &get_scene() { return scene; }
42 Msp::GL::Scene &get_endpoint_scene() { return ep_scene; }
45 void track_added(Track &);
46 void track_removed(Track &);
49 } // namespace Marklin