X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Flibmarklin%2Fprofile.h;fp=source%2Flibmarklin%2Fprofile.h;h=0000000000000000000000000000000000000000;hb=1ff06c5bc46a677fa389ef86c6b26664368f1653;hp=b1082e8192e8be471810338988f287f679d9c1de;hpb=9b05c573a38639827697fe393d55b7c76f5bde45;p=r2c2.git diff --git a/source/libmarklin/profile.h b/source/libmarklin/profile.h deleted file mode 100644 index b1082e8..0000000 --- a/source/libmarklin/profile.h +++ /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 -#include -#include "geometry.h" - -namespace Marklin { - -class Profile -{ -public: - class Loader: public Msp::DataFile::ObjectLoader - { - public: - Loader(Profile &); - private: - void point(float, float); - }; - -private: - std::vector 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