Mercurial > hg > orthanc-stone
annotate Framework/Layers/DicomStructureSetRendererFactory.h @ 284:38b0ac8055b9 am-2
Qt: catch and forward keyboard events
author | am@osimis.io |
---|---|
date | Tue, 28 Aug 2018 11:09:37 +0200 |
parents | 192e6e349e69 |
children | 19bd222283ae |
rev | line source |
---|---|
0 | 1 /** |
2 * Stone of Orthanc | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
134
4cff7b1ed31d
upgrade to year 2018
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
47
diff
changeset
|
5 * Copyright (C) 2017-2018 Osimis S.A., Belgium |
0 | 6 * |
7 * This program is free software: you can redistribute it and/or | |
47 | 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. | |
0 | 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 | |
47 | 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 | |
0 | 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 **/ | |
20 | |
21 | |
22 #pragma once | |
23 | |
121
e66b2c757790
displaying rt-struct
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
47
diff
changeset
|
24 #include "LayerSourceBase.h" |
130 | 25 #include "../Volumes/StructureSetLoader.h" |
0 | 26 |
27 namespace OrthancStone | |
28 { | |
129
a823122db53d
removal of useless class
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
128
diff
changeset
|
29 class DicomStructureSetRendererFactory : |
a823122db53d
removal of useless class
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
128
diff
changeset
|
30 public LayerSourceBase, |
130 | 31 private IVolumeLoader::IObserver |
0 | 32 { |
33 private: | |
34 class Renderer; | |
35 | |
130 | 36 virtual void NotifyGeometryReady(const IVolumeLoader& loader) |
37 { | |
38 LayerSourceBase::NotifyGeometryReady(); | |
39 } | |
251
192e6e349e69
first usage of new message system (in SDL only)
am@osimis.io
parents:
196
diff
changeset
|
40 |
130 | 41 virtual void NotifyGeometryError(const IVolumeLoader& loader) |
42 { | |
43 LayerSourceBase::NotifyGeometryError(); | |
44 } | |
251
192e6e349e69
first usage of new message system (in SDL only)
am@osimis.io
parents:
196
diff
changeset
|
45 |
130 | 46 virtual void NotifyContentChange(const IVolumeLoader& loader) |
47 { | |
48 LayerSourceBase::NotifyContentChange(); | |
49 } | |
251
192e6e349e69
first usage of new message system (in SDL only)
am@osimis.io
parents:
196
diff
changeset
|
50 |
130 | 51 StructureSetLoader& loader_; |
0 | 52 |
53 public: | |
251
192e6e349e69
first usage of new message system (in SDL only)
am@osimis.io
parents:
196
diff
changeset
|
54 DicomStructureSetRendererFactory(MessageBroker& broker, StructureSetLoader& loader) : |
192e6e349e69
first usage of new message system (in SDL only)
am@osimis.io
parents:
196
diff
changeset
|
55 LayerSourceBase(broker), |
130 | 56 loader_(loader) |
0 | 57 { |
130 | 58 loader_.Register(*this); |
0 | 59 } |
60 | |
121
e66b2c757790
displaying rt-struct
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
47
diff
changeset
|
61 virtual bool GetExtent(std::vector<Vector>& points, |
e66b2c757790
displaying rt-struct
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
47
diff
changeset
|
62 const CoordinateSystem3D& viewportSlice) |
0 | 63 { |
64 return false; | |
65 } | |
66 | |
121
e66b2c757790
displaying rt-struct
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
47
diff
changeset
|
67 virtual void ScheduleLayerCreation(const CoordinateSystem3D& viewportSlice); |
0 | 68 }; |
69 } |