Mercurial > hg > orthanc-stone
comparison Framework/SmartLoader.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 | b70e9be013e4 |
children |
comparison
equal
deleted
inserted
replaced
714:d2c0e347ddc2 | 726:4f2416d519b4 |
---|---|
24 | 24 |
25 #include "Layers/DicomSeriesVolumeSlicer.h" | 25 #include "Layers/DicomSeriesVolumeSlicer.h" |
26 #include "Messages/IObservable.h" | 26 #include "Messages/IObservable.h" |
27 #include "Toolbox/OrthancApiClient.h" | 27 #include "Toolbox/OrthancApiClient.h" |
28 | 28 |
29 namespace OrthancStone | 29 namespace Deprecated |
30 { | 30 { |
31 class SliceViewerWidget; | 31 class SliceViewerWidget; |
32 | 32 |
33 class SmartLoader : public IObservable, public IObserver | 33 class SmartLoader : public OrthancStone::IObservable, public OrthancStone::IObserver |
34 { | 34 { |
35 class CachedSlice; | 35 class CachedSlice; |
36 | 36 |
37 protected: | 37 protected: |
38 typedef std::map<std::string, boost::shared_ptr<SmartLoader::CachedSlice> > CachedSlices; | 38 typedef std::map<std::string, boost::shared_ptr<SmartLoader::CachedSlice> > CachedSlices; |
39 CachedSlices cachedSlices_; | 39 CachedSlices cachedSlices_; |
40 | 40 |
41 typedef std::map<std::string, boost::shared_ptr<IVolumeSlicer> > PreloadingInstances; | 41 typedef std::map<std::string, boost::shared_ptr<IVolumeSlicer> > PreloadingInstances; |
42 PreloadingInstances preloadingInstances_; | 42 PreloadingInstances preloadingInstances_; |
43 | 43 |
44 SliceImageQuality imageQuality_; | 44 OrthancStone::SliceImageQuality imageQuality_; |
45 OrthancApiClient& orthancApiClient_; | 45 OrthancApiClient& orthancApiClient_; |
46 | 46 |
47 public: | 47 public: |
48 SmartLoader(MessageBroker& broker, OrthancApiClient& orthancApiClient); // TODO: add maxPreloadStorageSizeInBytes | 48 SmartLoader(OrthancStone::MessageBroker& broker, OrthancApiClient& orthancApiClient); // TODO: add maxPreloadStorageSizeInBytes |
49 | 49 |
50 // void PreloadStudy(const std::string studyId); | 50 // void PreloadStudy(const std::string studyId); |
51 // void PreloadSeries(const std::string seriesId); | 51 // void PreloadSeries(const std::string seriesId); |
52 void PreloadSlice(const std::string instanceId, unsigned int frame); | 52 void PreloadSlice(const std::string instanceId, unsigned int frame); |
53 | 53 |
54 void SetImageQuality(SliceImageQuality imageQuality) { imageQuality_ = imageQuality; } | 54 void SetImageQuality(OrthancStone::SliceImageQuality imageQuality) { imageQuality_ = imageQuality; } |
55 | 55 |
56 void SetFrameInWidget(SliceViewerWidget& sliceViewer, size_t layerIndex, const std::string& instanceId, unsigned int frame); | 56 void SetFrameInWidget(SliceViewerWidget& sliceViewer, size_t layerIndex, const std::string& instanceId, unsigned int frame); |
57 | 57 |
58 void GetFirstInstanceIdForSeries(std::string& output, const std::string& seriesId); | 58 void GetFirstInstanceIdForSeries(std::string& output, const std::string& seriesId); |
59 | 59 |