diff 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
line wrap: on
line diff
--- a/Framework/Deprecated/Loaders/OrthancSeriesVolumeProgressiveLoader.h	Tue Mar 17 08:57:45 2020 +0100
+++ b/Framework/Deprecated/Loaders/OrthancSeriesVolumeProgressiveLoader.h	Tue Mar 17 19:21:01 2020 +0100
@@ -38,6 +38,9 @@
 
 #include <boost/shared_ptr.hpp>
 
+#define USE_SINGLE_QUALITY 1
+
+
 namespace OrthancStone
 {
   class ILoadersContext;
@@ -56,9 +59,14 @@
     public IGeometryProvider
   {
   private:
+#if USE_SINGLE_QUALITY
+    static const unsigned int SINGLE_QUALITY = 0;
+#else
     static const unsigned int LOW_QUALITY = 0;
     static const unsigned int MIDDLE_QUALITY = 1;
     static const unsigned int BEST_QUALITY = 2;
+#endif
+
     
     class ExtractedSlice;
     
@@ -111,7 +119,10 @@
 
     void LoadBestQualitySliceContent(const OrthancStone::GetOrthancImageCommand::SuccessMessage& message);
 
+#if USE_SINGLE_QUALITY
+#else
     void LoadJpegSliceContent(const OrthancStone::GetOrthancWebViewerJpegCommand::SuccessMessage& message);
+#endif
 
     OrthancStone::ILoadersContext&                loadersContext_;
     bool                                          active_;