comparison Framework/SmartLoader.h @ 279:8f5d7495076d am-2

SimpleViewer sample working in SDL, Qt and WASM
author am@osimis.io
date Mon, 27 Aug 2018 15:40:13 +0200
parents 2d64f4d39610
children b4abaeb783b1
comparison
equal deleted inserted replaced
278:8a86695fcbc3 279:8f5d7495076d
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 **/ 19 **/
20 20
21 21
22 #pragma once 22 #pragma once
23 #include <map>
23 24
24 #include "Layers/ILayerSource.h" 25 #include "Layers/ILayerSource.h"
25 #include "Messages/IObservable.h" 26 #include "Messages/IObservable.h"
26 #include "../Platforms/Generic/OracleWebService.h" 27 #include "../Platforms/Generic/OracleWebService.h"
27 #include "Toolbox/OrthancApiClient.h" 28 #include "Toolbox/OrthancApiClient.h"
33 SliceImageQuality imageQuality_; 34 SliceImageQuality imageQuality_;
34 IWebService& webService_; 35 IWebService& webService_;
35 OrthancApiClient orthancApiClient_; 36 OrthancApiClient orthancApiClient_;
36 37
37 int studyListRequest_; 38 int studyListRequest_;
39
38 public: 40 public:
39 SmartLoader(MessageBroker& broker, IWebService& webService); // TODO: add maxPreloadStorageSizeInBytes 41 SmartLoader(MessageBroker& broker, IWebService& webService); // TODO: add maxPreloadStorageSizeInBytes
40 42
41 virtual void HandleMessage(IObservable& from, const IMessage& message); 43 virtual void HandleMessage(IObservable& from, const IMessage& message);
42 44
46 48
47 void SetImageQuality(SliceImageQuality imageQuality) { imageQuality_ = imageQuality; } 49 void SetImageQuality(SliceImageQuality imageQuality) { imageQuality_ = imageQuality; }
48 50
49 ILayerSource* GetFrame(const std::string& instanceId, unsigned int frame); 51 ILayerSource* GetFrame(const std::string& instanceId, unsigned int frame);
50 52
53 void GetFirstInstanceIdForSeries(std::string& output, const std::string& seriesId);
54
51 }; 55 };
52 56
53 } 57 }