3 This file is part of R²C²
4 Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
8 #ifndef R2C2_3D_TRACK_H_
9 #define R2C2_3D_TRACK_H_
12 #include <msp/gl/matrix.h>
13 #include <msp/gl/objectinstance.h>
14 #include "libr2c2/track.h"
15 #include "libr2c2/trackpart.h"
25 class Track3D: public Object3D, public Msp::GL::ObjectInstance
30 const TrackType3D &type;
31 std::vector<Endpoint3D *> endpoints;
35 Track3D(Layout3D &, Track &);
38 Layout3D &get_layout() const { return layout; }
39 Track &get_track() const { return track; }
40 const TrackType3D &get_type() const { return type; }
41 void get_bounds(float, Point &, Point &) const;
42 Path3D &get_path() { return *path; }
44 virtual Point get_node() const;
45 virtual bool is_visible() const { return true; }
47 Msp::GL::Matrix get_matrix() const;
48 virtual void setup_render(const Msp::GL::Tag &) const;
49 virtual void finish_render(const Msp::GL::Tag &) const;