comparison Framework/SmartLoader.h @ 270:2d64f4d39610 am-2

backup (work in progress)
author am@osimis.io
date Thu, 23 Aug 2018 14:45:04 +0200
parents 5bd4161bf11b
children 8f5d7495076d
comparison
equal deleted inserted replaced
269:0dfa83535cd7 270:2d64f4d39610
22 #pragma once 22 #pragma once
23 23
24 #include "Layers/ILayerSource.h" 24 #include "Layers/ILayerSource.h"
25 #include "Messages/IObservable.h" 25 #include "Messages/IObservable.h"
26 #include "../Platforms/Generic/OracleWebService.h" 26 #include "../Platforms/Generic/OracleWebService.h"
27 #include "Toolbox/OrthancApiClient.h"
27 28
28 namespace OrthancStone 29 namespace OrthancStone
29 { 30 {
30 class SmartLoader : public IObservable, IObserver 31 class SmartLoader : public IObservable, IObserver
31 { 32 {
32 SliceImageQuality imageQuality_; 33 SliceImageQuality imageQuality_;
33 IWebService& webService_; 34 IWebService& webService_;
35 OrthancApiClient orthancApiClient_;
34 36
35 37 int studyListRequest_;
36 public: 38 public:
37 SmartLoader(MessageBroker& broker, IWebService& webService); // TODO: add maxPreloadStorageSizeInBytes 39 SmartLoader(MessageBroker& broker, IWebService& webService); // TODO: add maxPreloadStorageSizeInBytes
38 40
39 virtual void HandleMessage(IObservable& from, const IMessage& message); 41 virtual void HandleMessage(IObservable& from, const IMessage& message);
40 42
41 void PreloadStudy(const std::string studyId); 43 void PreloadStudy(const std::string studyId);
42 void PreloadSeries(const std::string seriesId); 44 void PreloadSeries(const std::string seriesId);
45 void LoadStudyList();
43 46
44 void SetImageQuality(SliceImageQuality imageQuality) { imageQuality_ = imageQuality; } 47 void SetImageQuality(SliceImageQuality imageQuality) { imageQuality_ = imageQuality; }
45 48
46 ILayerSource* GetFrame(const std::string& instanceId, unsigned int frame); 49 ILayerSource* GetFrame(const std::string& instanceId, unsigned int frame);
47 50