3 This file is part of R²C²
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
8 #ifndef LIBR2C2_PROFILE_H_
9 #define LIBR2C2_PROFILE_H_
12 #include <msp/datafile/objectloader.h>
20 class Loader: public Msp::DataFile::ObjectLoader<Profile>
25 void point(float, float);
26 void smooth_point(float, float);
37 std::vector<Vertex> vertices;
42 void append_vertex(const Point &, bool);
43 unsigned get_n_vertices() const { return vertices.size(); }
44 const Vertex &get_vertex(unsigned) const;
45 const Point &get_min_coords() const { return min_coords; }
46 const Point &get_max_coords() const { return max_coords; }
47 float get_width() const { return max_coords.x-min_coords.x; }
48 float get_height() const { return max_coords.y-min_coords.y; }