comparison Framework/SmartLoader.h @ 322:a902a07769d4 am-2

wip: preload slice
author am@osimis.io
date Mon, 15 Oct 2018 22:43:02 +0200
parents 3a4ca166fafa
children 7a364e44fbb4
comparison
equal deleted inserted replaced
321:56b2e47d3c0c 322:a902a07769d4
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<ILayerSource>> PreloadingInstances;
42 PreloadingInstances preloadingInstances_;
43
41 SliceImageQuality imageQuality_; 44 SliceImageQuality imageQuality_;
42 OrthancApiClient& orthancApiClient_; 45 OrthancApiClient& orthancApiClient_;
43
44 int studyListRequest_;
45 46
46 public: 47 public:
47 SmartLoader(MessageBroker& broker, OrthancApiClient& orthancApiClient); // TODO: add maxPreloadStorageSizeInBytes 48 SmartLoader(MessageBroker& broker, OrthancApiClient& orthancApiClient); // TODO: add maxPreloadStorageSizeInBytes
48 49
49 void PreloadStudy(const std::string studyId); 50 // void PreloadStudy(const std::string studyId);
50 void PreloadSeries(const std::string seriesId); 51 // void PreloadSeries(const std::string seriesId);
51 void LoadStudyList(); 52 void PreloadSlice(const std::string instanceId, unsigned int frame);
52 53
53 void SetImageQuality(SliceImageQuality imageQuality) { imageQuality_ = imageQuality; } 54 void SetImageQuality(SliceImageQuality imageQuality) { imageQuality_ = imageQuality; }
54 55
55 void SetFrameInWidget(LayerWidget& layerWidget, size_t layerIndex, const std::string& instanceId, unsigned int frame); 56 void SetFrameInWidget(LayerWidget& layerWidget, size_t layerIndex, const std::string& instanceId, unsigned int frame);
56 57