X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Ftrack.h;h=94865cfdf4afcf96837d84a552cebd2471cf26af;hb=47bff0c8939de3ae20b5ced1ee2f6a264397dcee;hp=fb662bf890cfd8fb1f90923bfdcdcda06869fe66;hpb=a861c2729a356173059177a0b800de2b31c9b49c;p=r2c2.git diff --git a/source/3d/track.h b/source/3d/track.h index fb662bf..94865cf 100644 --- a/source/3d/track.h +++ b/source/3d/track.h @@ -9,12 +9,12 @@ Distributed under the GPL #define MARKLIN3D_TRACK_H_ #include -#include #include #include #include #include "libmarklin/track.h" #include "libmarklin/trackpart.h" +#include "object.h" namespace Marklin { @@ -22,7 +22,7 @@ class Endpoint3D; class Layout3D; class TrackType3D; -class Track3D: public Msp::GL::Renderable +class Track3D: public Object3D, public Msp::GL::Renderable { private: Layout3D &layout; @@ -37,9 +37,10 @@ public: Layout3D &get_layout() const { return layout; } Track &get_track() const { return track; } const TrackType3D &get_type() const { return type; } - void set_color(const Msp::GL::Color &) { } void get_bounds(float, Point &, Point &) const; + virtual Point get_node() const; + virtual void render(const Msp::GL::Tag &) const; };