diff 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
line wrap: on
line diff
--- a/Framework/SmartLoader.h	Fri Oct 12 14:53:38 2018 +0200
+++ b/Framework/SmartLoader.h	Mon Oct 15 22:43:02 2018 +0200
@@ -38,17 +38,18 @@
     typedef std::map<std::string, boost::shared_ptr<SmartLoader::CachedSlice>> CachedSlices;
     CachedSlices cachedSlices_;
 
+    typedef std::map<std::string, boost::shared_ptr<ILayerSource>> PreloadingInstances;
+    PreloadingInstances preloadingInstances_;
+
     SliceImageQuality     imageQuality_;
     OrthancApiClient&     orthancApiClient_;
 
-    int studyListRequest_;
-
   public:
     SmartLoader(MessageBroker& broker, OrthancApiClient& orthancApiClient);  // TODO: add maxPreloadStorageSizeInBytes
 
-    void PreloadStudy(const std::string studyId);
-    void PreloadSeries(const std::string seriesId);
-    void LoadStudyList();
+//    void PreloadStudy(const std::string studyId);
+//    void PreloadSeries(const std::string seriesId);
+    void PreloadSlice(const std::string instanceId, unsigned int frame);
 
     void SetImageQuality(SliceImageQuality imageQuality) { imageQuality_ = imageQuality; }