Mercurial > hg > orthanc-stone
annotate Framework/Volumes/StructureSetLoader.h @ 277:a38465cc909f am-2
Qt: refresh ok + mouse interaction ok
author | am@osimis.io |
---|---|
date | Mon, 27 Aug 2018 14:41:49 +0200 |
parents | 192e6e349e69 |
children | b4abaeb783b1 |
rev | line source |
---|---|
130 | 1 /** |
2 * Stone of Orthanc | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
135
e2fe9352f240
upgrade to year 2018
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
130
diff
changeset
|
5 * Copyright (C) 2017-2018 Osimis S.A., Belgium |
130 | 6 * |
7 * This program is free software: you can redistribute it and/or | |
8 * modify it under the terms of the GNU Affero General Public License | |
9 * as published by the Free Software Foundation, either version 3 of | |
10 * the License, or (at your option) any later version. | |
11 * | |
12 * This program is distributed in the hope that it will be useful, but | |
13 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 * Affero General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU Affero General Public License | |
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 **/ | |
20 | |
21 | |
22 #pragma once | |
23 | |
24 #include "../Toolbox/DicomStructureSet.h" | |
25 #include "../Toolbox/IWebService.h" | |
26 #include "VolumeLoaderBase.h" | |
27 | |
28 namespace OrthancStone | |
29 { | |
30 class StructureSetLoader : | |
31 public VolumeLoaderBase, | |
32 private IWebService::ICallback | |
33 { | |
34 private: | |
35 class Operation; | |
36 | |
251
192e6e349e69
first usage of new message system (in SDL only)
am@osimis.io
parents:
135
diff
changeset
|
37 virtual void OnHttpRequestError(const std::string& uri, |
130 | 38 Orthanc::IDynamicObject* payload); |
39 | |
251
192e6e349e69
first usage of new message system (in SDL only)
am@osimis.io
parents:
135
diff
changeset
|
40 virtual void OnHttpRequestSuccess(const std::string& uri, |
130 | 41 const void* answer, |
42 size_t answerSize, | |
43 Orthanc::IDynamicObject* payload); | |
44 | |
45 IWebService& orthanc_; | |
46 std::auto_ptr<DicomStructureSet> structureSet_; | |
47 | |
48 public: | |
251
192e6e349e69
first usage of new message system (in SDL only)
am@osimis.io
parents:
135
diff
changeset
|
49 StructureSetLoader(MessageBroker& broker, IWebService& orthanc); |
130 | 50 |
51 void ScheduleLoadInstance(const std::string& instance); | |
52 | |
53 bool HasStructureSet() const | |
54 { | |
55 return structureSet_.get() != NULL; | |
56 } | |
57 | |
58 DicomStructureSet& GetStructureSet(); | |
59 }; | |
60 } |