X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Ftrackpart.h;h=de449b3a59e05e5d4c6c873b9ff8400a3db66396;hb=3df8cb5c78fbb0b919bcb79677c6c788b8028482;hp=5aa4b0c8b0a487084ba310c37341a21ed34b0c6c;hpb=3e9c210ddc036cd015228504cc0803c909e27f84;p=r2c2.git diff --git a/source/libmarklin/trackpart.h b/source/libmarklin/trackpart.h index 5aa4b0c..de449b3 100644 --- a/source/libmarklin/trackpart.h +++ b/source/libmarklin/trackpart.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of the MSP Märklin suite -Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa +Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -10,26 +10,22 @@ Distributed under the GPL #include #include "endpoint.h" +#include "geometry.h" namespace Marklin { struct TrackPart { - class Loader: public Msp::DataFile::Loader + class Loader: public Msp::DataFile::BasicLoader { - private: - TrackPart ∂ - public: Loader(TrackPart &); - TrackPart &get_object() { return part; } private: virtual void finish(); - void start(float, float, float); }; - float x, y; + Point pos; float dir; float length; float radius; @@ -38,7 +34,8 @@ struct TrackPart TrackPart(); - void collect_endpoints(std::vector &); + void collect_endpoints(std::vector &) const; + Point get_point(float) const; }; } // namespace Marklin