]> git.tdb.fi Git - r2c2.git/blob - source/3d/path.h
Reimplement path display
[r2c2.git] / source / 3d / path.h
1 /* $Id$
2
3 This file is part of the MSP Märklin suite
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef MARKLIN3D_PATH_H_
9 #define MARKLIN3D_PATH_H_
10
11 #include <msp/gl/color.h>
12 #include <msp/gl/mesh.h>
13 #include <msp/gl/renderable.h>
14
15 namespace Marklin {
16
17 class Track3D;
18
19 class Path3D: public Msp::GL::Renderable
20 {
21 private:
22         const Track3D &track;
23         unsigned paths;
24         bool automatic;
25         Msp::GL::Color color;
26
27 public:
28         Path3D(const Track3D &);
29         ~Path3D();
30
31         void set_automatic();
32         void set_path(unsigned);
33         void set_mask(unsigned);
34         void set_color(const Msp::GL::Color &);
35
36         virtual void render(const Msp::GL::Tag &) const;
37 };
38
39 } // namespace Marklin
40
41 #endif