]> git.tdb.fi Git - r2c2.git/blob - source/3d/layout.h
Add Id tags and copyright notices to files
[r2c2.git] / source / 3d / layout.h
1 /* $Id$
2
3 This file is part of the MSP Märklin suite
4 Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef MARKLIN3D_LAYOUT_H_
9 #define MARKLIN3D_LAYOUT_H_
10
11 #include "libmarklin/layout.h"
12 #include "track.h"
13
14 namespace Marklin {
15
16 class Layout3D
17 {
18 private:
19         Layout     &layout;
20         std::list<Track3D *> tracks;
21         unsigned   quality;
22
23 public:
24         Layout3D(Layout &);
25         ~Layout3D();
26
27         void set_quality(unsigned);
28         const std::list<Track3D *> &get_tracks() const { return tracks; }
29         void  render(bool =false) const;
30         Track3D &get_track(const Track &) const;
31         Track3D *pick_track(float, float, float) const;
32 private:
33         void track_added(Track &);
34         void track_removed(Track &);
35 };
36
37 } // namespace Marklin
38
39 #endif
40