]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/path.h
Reimplement path display
[r2c2.git] / source / 3d / path.h
diff --git a/source/3d/path.h b/source/3d/path.h
new file mode 100644 (file)
index 0000000..56e7a2f
--- /dev/null
@@ -0,0 +1,41 @@
+/* $Id$
+
+This file is part of the MSP Märklin suite
+Copyright © 2010 Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
+#ifndef MARKLIN3D_PATH_H_
+#define MARKLIN3D_PATH_H_
+
+#include <msp/gl/color.h>
+#include <msp/gl/mesh.h>
+#include <msp/gl/renderable.h>
+
+namespace Marklin {
+
+class Track3D;
+
+class Path3D: public Msp::GL::Renderable
+{
+private:
+       const Track3D &track;
+       unsigned paths;
+       bool automatic;
+       Msp::GL::Color color;
+
+public:
+       Path3D(const Track3D &);
+       ~Path3D();
+
+       void set_automatic();
+       void set_path(unsigned);
+       void set_mask(unsigned);
+       void set_color(const Msp::GL::Color &);
+
+       virtual void render(const Msp::GL::Tag &) const;
+};
+
+} // namespace Marklin
+
+#endif