1 #ifndef LIBR2C2_PROFILE_H_
2 #define LIBR2C2_PROFILE_H_
5 #include <msp/datafile/objectloader.h>
13 class Loader: public Msp::DataFile::ObjectLoader<Profile>
18 void point(float, float);
19 void smooth_point(float, float);
30 std::vector<Vertex> vertices;
35 void append_vertex(const Vector &, bool);
36 unsigned get_n_vertices() const { return vertices.size(); }
37 const Vertex &get_vertex(unsigned) const;
38 const Vector &get_min_coords() const { return min_coords; }
39 const Vector &get_max_coords() const { return max_coords; }
40 float get_width() const { return max_coords.x-min_coords.x; }
41 float get_height() const { return max_coords.y-min_coords.y; }