]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/profile.h
Make LCD output selectable at runtime through an extra I/O pin
[r2c2.git] / source / libmarklin / profile.h
index 3b194c8d39870650529d210b75ff05c31aa7c5b7..b1082e8192e8be471810338988f287f679d9c1de 100644 (file)
@@ -22,7 +22,6 @@ public:
        public:
                Loader(Profile &);
        private:
-               virtual void finish();
                void point(float, float);
        };
 
@@ -32,10 +31,13 @@ private:
        Point max_coords;
 
 public:
+       void append_point(const Point &);
        unsigned get_n_points() const { return points.size(); }
        const Point &get_point(unsigned) const;
        const Point &get_min_coords() const { return min_coords; }
        const Point &get_max_coords() const { return max_coords; }
+       float get_width() const { return max_coords.x-min_coords.x; }
+       float get_height() const { return max_coords.y-min_coords.y; }
        Point get_edge_normal(unsigned) const;
 };