]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/track.h
Don't crash if a train has no router
[r2c2.git] / source / 3d / track.h
index 66382bce3794cc91fddcb895e7bbe40072b34ffc..9b70b630a5fd1f0a7e88bf418b21a66629901b1e 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2006-2011 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #ifndef R2C2_3D_TRACK_H_
 #define R2C2_3D_TRACK_H_
 
@@ -19,18 +12,15 @@ Distributed under the GPL
 namespace R2C2 {
 
 class Endpoint3D;
-class Layout3D;
 class Path3D;
 class TrackType3D;
 
-class Track3D: public Object3D, public Msp::GL::ObjectInstance, public sigc::trackable
+class Track3D: public Object3D, public Msp::GL::ObjectInstance
 {
 private:
-       Layout3D &layout;
        Track &track;
        const TrackType3D &type;
        std::vector<Endpoint3D *> endpoints;
-       Path3D *path;
 
 public:
        Track3D(Layout3D &, Track &);
@@ -39,13 +29,10 @@ public:
        Layout3D &get_layout() const { return layout; }
        Track &get_track() const { return track; }
        const TrackType3D &get_type() const { return type; }
-       void get_bounds(float, Vector &, Vector &) const;
-       Path3D &get_path() { return *path; }
 
        virtual Vector get_node() const;
        virtual bool is_visible() const { return true; }
 
-       Msp::GL::Matrix get_matrix() const;
        virtual void setup_render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
 private:
        void link_changed(unsigned, Track *);