]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/overlay.h
Emit various signals from Train when it's loaded
[r2c2.git] / source / 3d / overlay.h
index 0a9a0223efad695ae266187cea6416e890673925..eac51bef810687807ade2e4784108e5d161bf961 100644 (file)
@@ -16,7 +16,7 @@ Distributed under the GPL
 
 namespace Marklin {
 
-class Track3D;
+class Object3D;
 
 class Overlay3D: public Msp::GL::Renderable
 {
@@ -35,22 +35,22 @@ private:
        const Msp::GL::Camera &camera;
        const Msp::GL::Font &font;
        std::map<std::string, Msp::GL::Mesh *> graphics;
-       std::map<const Track3D *, Icon *> icons;
+       std::map<const Object3D *, Icon *> icons;
 
 public:
        Overlay3D(const Msp::Graphics::Window &, const Msp::GL::Camera &, const Msp::GL::Font &);
        ~Overlay3D();
 
-       void set_label(const Track3D &, const std::string &);
-       void add_graphic(const Track3D &, const std::string &);
-       void remove_graphic(const Track3D &, const std::string &);
-       void clear_graphics(const Track3D &);
-       void clear(const Track3D &);
+       void set_label(const Object3D &, const std::string &);
+       void add_graphic(const Object3D &, const std::string &);
+       void remove_graphic(const Object3D &, const std::string &);
+       void clear_graphics(const Object3D &);
+       void clear(const Object3D &);
 
        virtual void render(const Msp::GL::Tag &) const;
 
 private:
-       Icon &get_icon(const Track3D &);
+       Icon &get_icon(const Object3D &);
        const Msp::GL::Mesh *get_graphic(const std::string &);
        void update_icon(Icon &);
 };