comparison Applications/BasicApplicationContext.h @ 81:8677d95753f8 wasm

switching to Oracle in SDL samples
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 24 May 2017 22:54:09 +0200
parents 1553b67b24e5
children cee8f308a4bc
comparison
equal deleted inserted replaced
80:f40a78cc7070 81:8677d95753f8
24 #include "../../Framework/Volumes/VolumeImage.h" 24 #include "../../Framework/Volumes/VolumeImage.h"
25 #include "../../Framework/Viewport/WidgetViewport.h" 25 #include "../../Framework/Viewport/WidgetViewport.h"
26 #include "../../Framework/Widgets/IWorldSceneInteractor.h" 26 #include "../../Framework/Widgets/IWorldSceneInteractor.h"
27 #include "../../Framework/Toolbox/DicomStructureSet.h" 27 #include "../../Framework/Toolbox/DicomStructureSet.h"
28 #include "../../Framework/Toolbox/OrthancSynchronousWebService.h" 28 #include "../../Framework/Toolbox/OrthancSynchronousWebService.h"
29 #include "../../Platforms/Generic/OracleWebService.h"
29 30
30 #include <list> 31 #include <list>
31 #include <boost/thread.hpp> 32 #include <boost/thread.hpp>
32 33
33 namespace OrthancStone 34 namespace OrthancStone
39 typedef std::list<IWorldSceneInteractor*> Interactors; 40 typedef std::list<IWorldSceneInteractor*> Interactors;
40 typedef std::list<DicomStructureSet*> StructureSets; 41 typedef std::list<DicomStructureSet*> StructureSets;
41 42
42 static void UpdateThread(BasicApplicationContext* that); 43 static void UpdateThread(BasicApplicationContext* that);
43 44
44 OrthancSynchronousWebService& orthanc_; 45 Oracle oracle_;
46 OracleWebService webService_;
45 boost::mutex viewportMutex_; 47 boost::mutex viewportMutex_;
46 WidgetViewport viewport_; 48 WidgetViewport viewport_;
47 Volumes volumes_; 49 Volumes volumes_;
48 Interactors interactors_; 50 Interactors interactors_;
49 StructureSets structureSets_; 51 StructureSets structureSets_;
70 return viewport_; 72 return viewport_;
71 } 73 }
72 }; 74 };
73 75
74 76
75 BasicApplicationContext(OrthancSynchronousWebService& orthanc); 77 BasicApplicationContext(Orthanc::WebServiceParameters& orthanc);
76 78
77 ~BasicApplicationContext(); 79 ~BasicApplicationContext();
78 80
79 IWidget& SetCentralWidget(IWidget* widget); // Takes ownership 81 IWidget& SetCentralWidget(IWidget* widget); // Takes ownership
80 82
81 OrthancSynchronousWebService& GetWebService() 83 IWebService& GetWebService()
82 { 84 {
83 return orthanc_; 85 return webService_;
84 } 86 }
85 87
86 VolumeImage& AddSeriesVolume(const std::string& series, 88 VolumeImage& AddSeriesVolume(const std::string& series,
87 bool isProgressiveDownload, 89 bool isProgressiveDownload,
88 size_t downloadThreadCount); 90 size_t downloadThreadCount);