Mercurial > hg > orthanc-stone
annotate Framework/Layers/DicomStructureSetRendererFactory.h @ 166:4f661e2f7b6c wasm
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 22 Feb 2018 19:36:23 +0100 |
parents | e2fe9352f240 |
children | fccffbf99ba1 |
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 | |
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 |
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; | |
130 | 35 |
36 virtual void NotifyGeometryReady(const IVolumeLoader& loader) | |
37 { | |
38 LayerSourceBase::NotifyGeometryReady(); | |
39 } | |
40 | |
41 virtual void NotifyGeometryError(const IVolumeLoader& loader) | |
42 { | |
43 LayerSourceBase::NotifyGeometryError(); | |
44 } | |
45 | |
46 virtual void NotifyContentChange(const IVolumeLoader& loader) | |
47 { | |
48 LayerSourceBase::NotifyContentChange(); | |
49 } | |
128 | 50 |
130 | 51 StructureSetLoader& loader_; |
0 | 52 |
53 public: | |
130 | 54 DicomStructureSetRendererFactory(StructureSetLoader& loader) : |
55 loader_(loader) | |
56 { | |
57 loader_.Register(*this); | |
58 } | |
0 | 59 |
121
e66b2c757790
displaying rt-struct
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
47
diff
changeset
|
60 virtual bool GetExtent(std::vector<Vector>& points, |
e66b2c757790
displaying rt-struct
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
47
diff
changeset
|
61 const CoordinateSystem3D& viewportSlice) |
0 | 62 { |
63 return false; | |
64 } | |
65 | |
121
e66b2c757790
displaying rt-struct
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
47
diff
changeset
|
66 virtual void ScheduleLayerCreation(const CoordinateSystem3D& viewportSlice); |
0 | 67 }; |
68 } |