3 This file is part of the MSP Märklin suite
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
8 #ifndef LIBMARKLIN_PROFILE_H_
9 #define LIBMARKLIN_PROFILE_H_
12 #include <msp/datafile/objectloader.h>
20 class Loader: public Msp::DataFile::ObjectLoader<Profile>
25 virtual void finish();
26 void point(float, float);
30 std::vector<Point> points;
35 unsigned get_n_points() const { return points.size(); }
36 const Point &get_point(unsigned) const;
37 const Point &get_min_coords() const { return min_coords; }
38 const Point &get_max_coords() const { return max_coords; }
39 Point get_edge_normal(unsigned) const;
42 } // namespace Marklin