]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/layout.h
Correctly handle slope when snapping tracks
[r2c2.git] / source / 3d / layout.h
index d469dc9aea9af1e2b2f04057912e927b0a767703..208ddacacba28254f267b6d121e44190f0f15d46 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of the MSP Märklin suite
+Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
 #ifndef MARKLIN3D_LAYOUT_H_
 #define MARKLIN3D_LAYOUT_H_
 
@@ -9,9 +16,9 @@ namespace Marklin {
 class Layout3D
 {
 private:
-       Layout     &layout;
+       Layout &layout;
        std::list<Track3D *> tracks;
-       unsigned   quality;
+       unsigned quality;
 
 public:
        Layout3D(Layout &);
@@ -19,7 +26,7 @@ public:
 
        void set_quality(unsigned);
        const std::list<Track3D *> &get_tracks() const { return tracks; }
-       void  render(bool =false) const;
+       void render(bool =false) const;
        Track3D &get_track(const Track &) const;
        Track3D *pick_track(float, float, float) const;
 private: