]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/layout.h
Add View3D class to bundle Layout3D with a camera and a pipeline
[r2c2.git] / source / 3d / layout.h
index bb9d4277d775babf066c8e3b3ccecf64eaa414ec..6dbdb7bcb62ebd760c970a35c7b0a376d0d4b289 100644 (file)
@@ -10,12 +10,15 @@ Distributed under the GPL
 
 #include <sigc++/trackable.h>
 #include <msp/gl/instancescene.h>
+#include <msp/gl/light.h>
+#include <msp/gl/lighting.h>
 #include <msp/gl/simplescene.h>
 #include "libr2c2/layout.h"
 #include "catalogue.h"
 
 namespace R2C2 {
 
+class Object3D;
 class Track3D;
 class Vehicle3D;
 
@@ -33,12 +36,16 @@ private:
        Msp::GL::InstanceScene scene;
        Msp::GL::SimpleScene ep_scene;
        Msp::GL::InstanceScene path_scene;
+       Msp::GL::Light sun;
+       Msp::GL::Lighting lighting;
 
 public:
        Layout3D(Layout &);
        ~Layout3D();
 
+       Layout &get_layout() const { return layout; }
        const Catalogue3D &get_catalogue() const { return catalogue; }
+       void get_bounds(Vector &, Vector &) const;
 
        void add_track(Track3D &);
        void remove_track(Track3D &);
@@ -52,6 +59,7 @@ public:
        Msp::GL::Scene &get_scene() { return scene; }
        Msp::GL::Scene &get_endpoint_scene() { return ep_scene; }
        Msp::GL::Scene &get_path_scene() { return path_scene; }
+       const Msp::GL::Lighting &get_lighting() const { return lighting; }
 
 private:
        void track_added(Track &);