X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=source%2F3d%2Fpath.h;fp=source%2F3d%2Fpath.h;h=56e7a2f1be60279ae941aa9d55405cc312be7596;hb=90790c9a28793d31b9ea38eea2f55652a0e9297b;hp=0000000000000000000000000000000000000000;hpb=ea06222ad70b8a627b11055677d961aa5f8cf9d1;p=r2c2.git diff --git a/source/3d/path.h b/source/3d/path.h new file mode 100644 index 0000000..56e7a2f --- /dev/null +++ b/source/3d/path.h @@ -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 +#include +#include + +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