diff Framework/Widgets/LayerWidget.cpp @ 110:53025eecbc95 wasm

renamed SliceGeometry as CoordinateSystem3D
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Jun 2017 15:50:38 +0200
parents 53bd9277b025
children 7665ccbf33db
line wrap: on
line diff
--- a/Framework/Widgets/LayerWidget.cpp	Wed Jun 14 15:34:08 2017 +0200
+++ b/Framework/Widgets/LayerWidget.cpp	Wed Jun 14 15:50:38 2017 +0200
@@ -31,7 +31,7 @@
   class LayerWidget::Scene : public boost::noncopyable
   {
   private:
-    SliceGeometry                 slice_;
+    CoordinateSystem3D            slice_;
     size_t                        countMissing_;
     std::vector<ILayerRenderer*>  renderers_;
 
@@ -54,7 +54,7 @@
     }
       
   public:
-    Scene(const SliceGeometry& slice,
+    Scene(const CoordinateSystem3D& slice,
           size_t countLayers) :
       slice_(slice),
       countMissing_(countLayers),
@@ -84,7 +84,7 @@
       countMissing_--;
     }
 
-    const SliceGeometry& GetSlice() const
+    const CoordinateSystem3D& GetSlice() const
     {
       return slice_;
     }
@@ -106,7 +106,7 @@
 
     bool RenderScene(CairoContext& context,
                      const ViewportGeometry& view,
-                     const SliceGeometry& viewportSlice)
+                     const CoordinateSystem3D& viewportSlice)
     {
       bool fullQuality = true;
       cairo_t *cr = context.GetObject();
@@ -115,7 +115,7 @@
       {
         if (renderers_[i] != NULL)
         {
-          const SliceGeometry& frameSlice = renderers_[i]->GetLayerSlice();
+          const CoordinateSystem3D& frameSlice = renderers_[i]->GetLayerSlice();
           
           double x0, y0, x1, y1, x2, y2;
           viewportSlice.ProjectPoint(x0, y0, frameSlice.GetOrigin());
@@ -374,7 +374,7 @@
   }
   
 
-  void LayerWidget::SetSlice(const SliceGeometry& slice)
+  void LayerWidget::SetSlice(const CoordinateSystem3D& slice)
   {
     LOG(INFO) << "Setting slice origin: (" << slice.GetOrigin()[0]
               << "," << slice.GetOrigin()[1]