Mercurial > hg > orthanc-stone
comparison OrthancStone/Resources/Graveyard/RTStructTentativeReimplementation-BGO/DicomStructureSetSlicer2.h @ 1908:affde38b84de
moved tentative bgo reimplementation of rt-struct into graveyard
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 01 Feb 2022 08:38:32 +0100 |
parents | OrthancStone/Sources/Volumes/DicomStructureSetSlicer2.h@7053b8a0aaec |
children | 07964689cb0b |
comparison
equal
deleted
inserted
replaced
1907:0208f99b8bde | 1908:affde38b84de |
---|---|
1 /** | |
2 * Stone of Orthanc | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
5 * Copyright (C) 2017-2022 Osimis S.A., Belgium | |
6 * Copyright (C) 2021-2022 Sebastien Jodogne, ICTEAM UCLouvain, Belgium | |
7 * | |
8 * This program is free software: you can redistribute it and/or | |
9 * modify it under the terms of the GNU Lesser General Public License | |
10 * as published by the Free Software Foundation, either version 3 of | |
11 * the License, or (at your option) any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, but | |
14 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 * Lesser General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU Lesser General Public | |
19 * License along with this program. If not, see | |
20 * <http://www.gnu.org/licenses/>. | |
21 **/ | |
22 | |
23 | |
24 #pragma once | |
25 | |
26 #ifdef BGO_ENABLE_DICOMSTRUCTURESETLOADER2 | |
27 | |
28 #include "../Toolbox/DicomStructureSet2.h" | |
29 #include "../Volumes/IVolumeSlicer.h" | |
30 | |
31 #include <boost/shared_ptr.hpp> | |
32 #include <boost/weak_ptr.hpp> | |
33 | |
34 namespace OrthancStone | |
35 { | |
36 class DicomStructureSetSlice2 : public IVolumeSlicer::IExtractedSlice | |
37 { | |
38 public: | |
39 DicomStructureSetSlice2( | |
40 boost::weak_ptr<DicomStructureSet2> structureSet, | |
41 uint64_t revision, | |
42 const CoordinateSystem3D& cuttingPlane); | |
43 | |
44 virtual bool IsValid() ORTHANC_OVERRIDE | |
45 { | |
46 return isValid_; | |
47 } | |
48 | |
49 virtual uint64_t GetRevision() ORTHANC_OVERRIDE | |
50 { | |
51 return revision_; | |
52 } | |
53 | |
54 virtual ISceneLayer* CreateSceneLayer( | |
55 const ILayerStyleConfigurator* configurator, // possibly absent | |
56 const CoordinateSystem3D& cuttingPlane) ORTHANC_OVERRIDE; | |
57 | |
58 private: | |
59 boost::shared_ptr<DicomStructureSet2> structureSet_; | |
60 bool isValid_; | |
61 uint64_t revision_; | |
62 }; | |
63 | |
64 class DicomStructureSetSlicer2 : public IVolumeSlicer | |
65 { | |
66 public: | |
67 DicomStructureSetSlicer2(boost::shared_ptr<DicomStructureSet2> structureSet); | |
68 | |
69 /** IVolumeSlicer impl */ | |
70 virtual IExtractedSlice* ExtractSlice(const CoordinateSystem3D& cuttingPlane) ORTHANC_OVERRIDE; | |
71 private: | |
72 boost::weak_ptr<DicomStructureSet2> structureSet_; | |
73 }; | |
74 } | |
75 | |
76 #endif | |
77 // BGO_ENABLE_DICOMSTRUCTURESETLOADER2 | |
78 |