]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/track.h
Make use of the mspmath library
[r2c2.git] / source / 3d / track.h
index e1dd29196e3146b36462c7a9bd271d135bb0572f..641f234e232f4b926fa07936d85bd996ab092cd1 100644 (file)
@@ -1,14 +1,8 @@
-/* $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_
 
 #include <list>
+#include <sigc++/trackable.h>
 #include <msp/gl/matrix.h>
 #include <msp/gl/objectinstance.h>
 #include "libr2c2/track.h"
@@ -22,7 +16,7 @@ class Layout3D;
 class Path3D;
 class TrackType3D;
 
-class Track3D: public Object3D, public Msp::GL::ObjectInstance
+class Track3D: public Object3D, public Msp::GL::ObjectInstance, public sigc::trackable
 {
 private:
        Layout3D &layout;
@@ -38,15 +32,16 @@ public:
        Layout3D &get_layout() const { return layout; }
        Track &get_track() const { return track; }
        const TrackType3D &get_type() const { return type; }
-       void get_bounds(float, Point &, Point &) const;
+       void get_bounds(const Angle &, Vector &, Vector &) const;
        Path3D &get_path() { return *path; }
 
-       virtual Point get_node() const;
+       virtual Vector get_node() const;
        virtual bool is_visible() const { return true; }
 
-       Msp::GL::Matrix get_matrix() const;
+       Msp::GL::Matrix create_matrix() const;
        virtual void setup_render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
-       virtual void finish_render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
+private:
+       void link_changed(unsigned, Track *);
 };
 
 } // namespace R2C2