annotate Framework/SmartLoader.h @ 269:0dfa83535cd7 am-2

indentation
author am@osimis.io
date Wed, 22 Aug 2018 15:22:33 +0200
parents 5bd4161bf11b
children 2d64f4d39610
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
260
am@osimis.io
parents:
diff changeset
1 /**
am@osimis.io
parents:
diff changeset
2 * Stone of Orthanc
am@osimis.io
parents:
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
am@osimis.io
parents:
diff changeset
4 * Department, University Hospital of Liege, Belgium
am@osimis.io
parents:
diff changeset
5 * Copyright (C) 2017-2018 Osimis S.A., Belgium
am@osimis.io
parents:
diff changeset
6 *
am@osimis.io
parents:
diff changeset
7 * This program is free software: you can redistribute it and/or
am@osimis.io
parents:
diff changeset
8 * modify it under the terms of the GNU Affero General Public License
am@osimis.io
parents:
diff changeset
9 * as published by the Free Software Foundation, either version 3 of
am@osimis.io
parents:
diff changeset
10 * the License, or (at your option) any later version.
am@osimis.io
parents:
diff changeset
11 *
am@osimis.io
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful, but
am@osimis.io
parents:
diff changeset
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
am@osimis.io
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
am@osimis.io
parents:
diff changeset
15 * Affero General Public License for more details.
am@osimis.io
parents:
diff changeset
16 *
am@osimis.io
parents:
diff changeset
17 * You should have received a copy of the GNU Affero General Public License
am@osimis.io
parents:
diff changeset
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
am@osimis.io
parents:
diff changeset
19 **/
am@osimis.io
parents:
diff changeset
20
am@osimis.io
parents:
diff changeset
21
am@osimis.io
parents:
diff changeset
22 #pragma once
am@osimis.io
parents:
diff changeset
23
am@osimis.io
parents:
diff changeset
24 #include "Layers/ILayerSource.h"
am@osimis.io
parents:
diff changeset
25 #include "Messages/IObservable.h"
am@osimis.io
parents:
diff changeset
26 #include "../Platforms/Generic/OracleWebService.h"
am@osimis.io
parents:
diff changeset
27
am@osimis.io
parents:
diff changeset
28 namespace OrthancStone
am@osimis.io
parents:
diff changeset
29 {
am@osimis.io
parents:
diff changeset
30 class SmartLoader : public IObservable, IObserver
am@osimis.io
parents:
diff changeset
31 {
am@osimis.io
parents:
diff changeset
32 SliceImageQuality imageQuality_;
am@osimis.io
parents:
diff changeset
33 IWebService& webService_;
am@osimis.io
parents:
diff changeset
34
266
c9cf95b49a86 removed OrthancSlicesLoader::ISliceLoaderObserver; now using standard messages instead
am@osimis.io
parents: 260
diff changeset
35
260
am@osimis.io
parents:
diff changeset
36 public:
am@osimis.io
parents:
diff changeset
37 SmartLoader(MessageBroker& broker, IWebService& webService); // TODO: add maxPreloadStorageSizeInBytes
am@osimis.io
parents:
diff changeset
38
268
5bd4161bf11b removed constness of the observable when emitting a message
am@osimis.io
parents: 266
diff changeset
39 virtual void HandleMessage(IObservable& from, const IMessage& message);
260
am@osimis.io
parents:
diff changeset
40
266
c9cf95b49a86 removed OrthancSlicesLoader::ISliceLoaderObserver; now using standard messages instead
am@osimis.io
parents: 260
diff changeset
41 void PreloadStudy(const std::string studyId);
c9cf95b49a86 removed OrthancSlicesLoader::ISliceLoaderObserver; now using standard messages instead
am@osimis.io
parents: 260
diff changeset
42 void PreloadSeries(const std::string seriesId);
260
am@osimis.io
parents:
diff changeset
43
am@osimis.io
parents:
diff changeset
44 void SetImageQuality(SliceImageQuality imageQuality) { imageQuality_ = imageQuality; }
am@osimis.io
parents:
diff changeset
45
am@osimis.io
parents:
diff changeset
46 ILayerSource* GetFrame(const std::string& instanceId, unsigned int frame);
am@osimis.io
parents:
diff changeset
47
am@osimis.io
parents:
diff changeset
48 };
am@osimis.io
parents:
diff changeset
49
am@osimis.io
parents:
diff changeset
50 }