]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/profile.h
Rename the project to R²C²
[r2c2.git] / source / libmarklin / profile.h
diff --git a/source/libmarklin/profile.h b/source/libmarklin/profile.h
deleted file mode 100644 (file)
index b1082e8..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/* $Id$
-
-This file is part of the MSP Märklin suite
-Copyright © 2010 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
-#ifndef LIBMARKLIN_PROFILE_H_
-#define LIBMARKLIN_PROFILE_H_
-
-#include <vector>
-#include <msp/datafile/objectloader.h>
-#include "geometry.h"
-
-namespace Marklin {
-
-class Profile
-{
-public:
-       class Loader: public Msp::DataFile::ObjectLoader<Profile>
-       {
-       public:
-               Loader(Profile &);
-       private:
-               void point(float, float);
-       };
-
-private:
-       std::vector<Point> points;
-       Point min_coords;
-       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;
-};
-
-} // namespace Marklin
-
-#endif