1 #ifndef R2C2_3D_TRACK_H_
2 #define R2C2_3D_TRACK_H_
5 #include <sigc++/trackable.h>
6 #include <msp/gl/matrix.h>
7 #include <msp/gl/objectinstance.h>
8 #include "libr2c2/track.h"
9 #include "libr2c2/trackpart.h"
19 class Track3D: public Object3D, public Msp::GL::ObjectInstance, public sigc::trackable
24 const TrackType3D &type;
25 std::vector<Endpoint3D *> endpoints;
29 Track3D(Layout3D &, Track &);
32 Layout3D &get_layout() const { return layout; }
33 Track &get_track() const { return track; }
34 const TrackType3D &get_type() const { return type; }
35 void get_bounds(float, Vector &, Vector &) const;
36 Path3D &get_path() { return *path; }
38 virtual Vector get_node() const;
39 virtual bool is_visible() const { return true; }
41 Msp::GL::Matrix create_matrix() const;
42 virtual void setup_render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
44 void link_changed(unsigned, Track *);