diff Framework/Layers/DicomStructureSetSlicer.cpp @ 726:4f2416d519b4

moving layers, widgets and loaders to Deprecated namespace
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 21 May 2019 11:43:25 +0200
parents 42dadae61fa9
children
line wrap: on
line diff
--- a/Framework/Layers/DicomStructureSetSlicer.cpp	Mon May 20 16:26:34 2019 +0200
+++ b/Framework/Layers/DicomStructureSetSlicer.cpp	Tue May 21 11:43:25 2019 +0200
@@ -21,7 +21,7 @@
 
 #include "DicomStructureSetSlicer.h"
 
-namespace OrthancStone
+namespace Deprecated
 {
   class DicomStructureSetSlicer::Renderer : public ILayerRenderer
   {
@@ -34,11 +34,11 @@
       uint8_t                                                      green_;
       uint8_t                                                      blue_;
       std::string                                                  name_;
-      std::vector< std::vector<DicomStructureSet::PolygonPoint> >  polygons_;
+      std::vector< std::vector<OrthancStone::DicomStructureSet::PolygonPoint> >  polygons_;
 
     public:
-      Structure(DicomStructureSet& structureSet,
-                const CoordinateSystem3D& plane,
+      Structure(OrthancStone::DicomStructureSet& structureSet,
+                const OrthancStone::CoordinateSystem3D& plane,
                 size_t index) :
         name_(structureSet.GetStructureName(index))
       {
@@ -46,7 +46,7 @@
         visible_ = structureSet.ProjectStructure(polygons_, index, plane);
       }
 
-      void Render(CairoContext& context)
+      void Render(OrthancStone::CairoContext& context)
       {
         if (visible_)
         {
@@ -72,12 +72,12 @@
 
     typedef std::list<Structure*>  Structures;
     
-    CoordinateSystem3D  plane_;
+    OrthancStone::CoordinateSystem3D  plane_;
     Structures          structures_;
     
   public:
-    Renderer(DicomStructureSet& structureSet,
-             const CoordinateSystem3D& plane) :
+    Renderer(OrthancStone::DicomStructureSet& structureSet,
+             const OrthancStone::CoordinateSystem3D& plane) :
       plane_(plane)
     {
       for (size_t k = 0; k < structureSet.GetStructureCount(); k++)
@@ -95,7 +95,7 @@
       }
     }
 
-    virtual bool RenderLayer(CairoContext& context,
+    virtual bool RenderLayer(OrthancStone::CairoContext& context,
                              const ViewportGeometry& view)
     {
       cairo_set_line_width(context.GetObject(), 2.0f / view.GetZoom());
@@ -110,7 +110,7 @@
       return true;
     }
 
-    virtual const CoordinateSystem3D& GetLayerPlane()
+    virtual const OrthancStone::CoordinateSystem3D& GetLayerPlane()
     {
       return plane_;
     }
@@ -129,12 +129,12 @@
   class DicomStructureSetSlicer::RendererFactory : public LayerReadyMessage::IRendererFactory
   {
   private:
-    DicomStructureSet&         structureSet_;
-    const CoordinateSystem3D&  plane_;
+    OrthancStone::DicomStructureSet&         structureSet_;
+    const OrthancStone::CoordinateSystem3D&  plane_;
 
   public:
-    RendererFactory(DicomStructureSet& structureSet,
-                    const CoordinateSystem3D&  plane) :
+    RendererFactory(OrthancStone::DicomStructureSet& structureSet,
+                    const OrthancStone::CoordinateSystem3D&  plane) :
       structureSet_(structureSet),
       plane_(plane)
     {
@@ -147,19 +147,19 @@
   };
   
 
-  DicomStructureSetSlicer::DicomStructureSetSlicer(MessageBroker& broker,
+  DicomStructureSetSlicer::DicomStructureSetSlicer(OrthancStone::MessageBroker& broker,
                                                    StructureSetLoader& loader) :
     IVolumeSlicer(broker),
     IObserver(broker),
     loader_(loader)
   {
     loader_.RegisterObserverCallback(
-      new Callable<DicomStructureSetSlicer, StructureSetLoader::ContentChangedMessage>
+      new OrthancStone::Callable<DicomStructureSetSlicer, StructureSetLoader::ContentChangedMessage>
       (*this, &DicomStructureSetSlicer::OnStructureSetLoaded));
   }
 
 
-  void DicomStructureSetSlicer::ScheduleLayerCreation(const CoordinateSystem3D& viewportPlane)
+  void DicomStructureSetSlicer::ScheduleLayerCreation(const OrthancStone::CoordinateSystem3D& viewportPlane)
   {
     if (loader_.HasStructureSet())
     {