comparison Framework/Radiography/RadiographySceneReader.h @ 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 d2c0e347ddc2
children c35e98d22764
comparison
equal deleted inserted replaced
714:d2c0e347ddc2 726:4f2416d519b4
24 #include "RadiographyScene.h" 24 #include "RadiographyScene.h"
25 #include "RadiographyAlphaLayer.h" 25 #include "RadiographyAlphaLayer.h"
26 #include "RadiographyDicomLayer.h" 26 #include "RadiographyDicomLayer.h"
27 #include "RadiographyMaskLayer.h" 27 #include "RadiographyMaskLayer.h"
28 #include "RadiographyTextLayer.h" 28 #include "RadiographyTextLayer.h"
29 #include "../Toolbox/OrthancApiClient.h"
30
29 #include <json/value.h> 31 #include <json/value.h>
30 #include <Core/Images/FontRegistry.h> 32 #include <Core/Images/FontRegistry.h>
31 33
32 namespace OrthancStone 34 namespace OrthancStone
33 { 35 {
34 class OrthancApiClient;
35
36 // HACK: I had to introduce this builder class in order to be able to recreate a RadiographyScene 36 // HACK: I had to introduce this builder class in order to be able to recreate a RadiographyScene
37 // from a serialized scene that is passed to web-workers. 37 // from a serialized scene that is passed to web-workers.
38 // It needs some architecturing... 38 // It needs some architecturing...
39 class RadiographySceneBuilder : public boost::noncopyable 39 class RadiographySceneBuilder : public boost::noncopyable
40 { 40 {
70 }; 70 };
71 71
72 72
73 class RadiographySceneReader : public RadiographySceneBuilder 73 class RadiographySceneReader : public RadiographySceneBuilder
74 { 74 {
75 OrthancApiClient& orthancApiClient_; 75 Deprecated::OrthancApiClient& orthancApiClient_;
76 76
77 public: 77 public:
78 RadiographySceneReader(RadiographyScene& scene, OrthancApiClient& orthancApiClient) : 78 RadiographySceneReader(RadiographyScene& scene, Deprecated::OrthancApiClient& orthancApiClient) :
79 RadiographySceneBuilder(scene), 79 RadiographySceneBuilder(scene),
80 orthancApiClient_(orthancApiClient) 80 orthancApiClient_(orthancApiClient)
81 { 81 {
82 } 82 }
83 83