comparison Framework/Loaders/LoaderCache.h @ 1415:998697c5ec74

Added useProgressiveQuality flag to LoaderCache ctor
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 11 May 2020 09:50:02 +0200
parents cde379b9d1d2
children 96044a18b98d
comparison
equal deleted inserted replaced
1414:4f2e14275b09 1415:998697c5ec74
42 { 42 {
43 public: 43 public:
44 44
45 virtual ~LoaderCache() {} 45 virtual ~LoaderCache() {}
46 46
47 LoaderCache(OrthancStone::ILoadersContext& loadersContext); 47 /**
48 By default, the CT loader in loader cache will only download the highest quality slices.
49 If you pass true for useCtProgressiveQuality, jpeg (50/100 quality), then jpeg (90/100 quality)
50 then eventually uncompressed 16-bit images will be loaded.
51 */
52 LoaderCache(OrthancStone::ILoadersContext& loadersContext, bool useCtProgressiveQuality = false);
48 53
49 boost::shared_ptr<OrthancSeriesVolumeProgressiveLoader> 54 boost::shared_ptr<OrthancSeriesVolumeProgressiveLoader>
50 GetSeriesVolumeProgressiveLoader (std::string seriesUuid); 55 GetSeriesVolumeProgressiveLoader (std::string seriesUuid);
51 56
52 boost::shared_ptr<OrthancStone::DicomVolumeImageMPRSlicer> 57 boost::shared_ptr<OrthancStone::DicomVolumeImageMPRSlicer>
70 protected: 75 protected:
71 76
72 void DebugDisplayObjRefCounts(); 77 void DebugDisplayObjRefCounts();
73 78
74 OrthancStone::ILoadersContext& loadersContext_; 79 OrthancStone::ILoadersContext& loadersContext_;
80 bool useCtProgressiveQuality_;
75 81
76 std::map<std::string, boost::shared_ptr<OrthancSeriesVolumeProgressiveLoader> > 82 std::map<std::string, boost::shared_ptr<OrthancSeriesVolumeProgressiveLoader> >
77 seriesVolumeProgressiveLoaders_; 83 seriesVolumeProgressiveLoaders_;
78 std::map<std::string, boost::shared_ptr<OrthancMultiframeVolumeLoader> > 84 std::map<std::string, boost::shared_ptr<OrthancMultiframeVolumeLoader> >
79 multiframeVolumeLoaders_; 85 multiframeVolumeLoaders_;