Mercurial > hg > orthanc-stone
comparison Framework/Deprecated/Loaders/OrthancSeriesVolumeProgressiveLoader.h @ 1320:7702ad9b7011 broker
OrthancSeriesVolumeProgressiveLoader : PNG quality only!
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 17 Mar 2020 19:21:01 +0100 |
parents | cbfdba08e039 |
children | 4f8db2d202c8 |
comparison
equal
deleted
inserted
replaced
1319:0290b7060167 | 1320:7702ad9b7011 |
---|---|
36 #include "../Volumes/IGeometryProvider.h" | 36 #include "../Volumes/IGeometryProvider.h" |
37 | 37 |
38 | 38 |
39 #include <boost/shared_ptr.hpp> | 39 #include <boost/shared_ptr.hpp> |
40 | 40 |
41 #define USE_SINGLE_QUALITY 1 | |
42 | |
43 | |
41 namespace OrthancStone | 44 namespace OrthancStone |
42 { | 45 { |
43 class ILoadersContext; | 46 class ILoadersContext; |
44 } | 47 } |
45 | 48 |
54 public OrthancStone::IObservable, | 57 public OrthancStone::IObservable, |
55 public OrthancStone::IVolumeSlicer, | 58 public OrthancStone::IVolumeSlicer, |
56 public IGeometryProvider | 59 public IGeometryProvider |
57 { | 60 { |
58 private: | 61 private: |
62 #if USE_SINGLE_QUALITY | |
63 static const unsigned int SINGLE_QUALITY = 0; | |
64 #else | |
59 static const unsigned int LOW_QUALITY = 0; | 65 static const unsigned int LOW_QUALITY = 0; |
60 static const unsigned int MIDDLE_QUALITY = 1; | 66 static const unsigned int MIDDLE_QUALITY = 1; |
61 static const unsigned int BEST_QUALITY = 2; | 67 static const unsigned int BEST_QUALITY = 2; |
68 #endif | |
69 | |
62 | 70 |
63 class ExtractedSlice; | 71 class ExtractedSlice; |
64 | 72 |
65 /** Helper class internal to OrthancSeriesVolumeProgressiveLoader */ | 73 /** Helper class internal to OrthancSeriesVolumeProgressiveLoader */ |
66 class SeriesGeometry : public boost::noncopyable | 74 class SeriesGeometry : public boost::noncopyable |
109 const Orthanc::ImageAccessor& image, | 117 const Orthanc::ImageAccessor& image, |
110 unsigned int quality); | 118 unsigned int quality); |
111 | 119 |
112 void LoadBestQualitySliceContent(const OrthancStone::GetOrthancImageCommand::SuccessMessage& message); | 120 void LoadBestQualitySliceContent(const OrthancStone::GetOrthancImageCommand::SuccessMessage& message); |
113 | 121 |
122 #if USE_SINGLE_QUALITY | |
123 #else | |
114 void LoadJpegSliceContent(const OrthancStone::GetOrthancWebViewerJpegCommand::SuccessMessage& message); | 124 void LoadJpegSliceContent(const OrthancStone::GetOrthancWebViewerJpegCommand::SuccessMessage& message); |
125 #endif | |
115 | 126 |
116 OrthancStone::ILoadersContext& loadersContext_; | 127 OrthancStone::ILoadersContext& loadersContext_; |
117 bool active_; | 128 bool active_; |
118 unsigned int simultaneousDownloads_; | 129 unsigned int simultaneousDownloads_; |
119 SeriesGeometry seriesGeometry_; | 130 SeriesGeometry seriesGeometry_; |