1 #ifndef LIBR2C2_TRACKPART_H_
2 #define LIBR2C2_TRACKPART_H_
4 #include <msp/datafile/objectloader.h>
12 class Loader: public Msp::DataFile::ObjectLoader<TrackPart>
17 virtual void finish();
18 void start(float, float, float);
36 float get_length() const;
37 bool is_curved() const { return radius; }
38 OrientedPoint get_point(float) const;
39 OrientedPoint get_nearest_point(const Vector &) const;
40 unsigned get_path() const { return path; }
41 bool is_dead_end() const { return dead_end; }
42 void check_link(TrackPart &);
43 TrackPart *get_link(unsigned) const;
45 const Shape &get_shape() const { return *shape; }