Mercurial > hg > orthanc-stone
annotate Framework/Layers/DicomStructureSetRendererFactory.h @ 212:5412adf19980
resort to OrthancFramework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 01 Jun 2018 17:48:47 +0200 |
parents | fccffbf99ba1 |
children | 192e6e349e69 |
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 } | |
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) | |
0 | 56 { |
130 | 57 loader_.Register(*this); |
0 | 58 } |
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 } |