Mercurial > hg > orthanc-stone
comparison OrthancStone/Resources/Graveyard/RTStructTentativeReimplementation-BGO/DicomStructureSet2.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/Toolbox/DicomStructureSet2.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 #pragma once | |
24 | |
25 #ifdef BGO_ENABLE_DICOMSTRUCTURESETLOADER2 | |
26 | |
27 #include "../Scene2D/Color.h" | |
28 #include "CoordinateSystem3D.h" | |
29 #include "DicomStructure2.h" | |
30 #include "Extent2D.h" | |
31 #include "OrthancDatasets/FullOrthancDataset.h" | |
32 | |
33 #include <list> | |
34 | |
35 namespace OrthancStone | |
36 { | |
37 class DicomStructureSet2 : public boost::noncopyable | |
38 { | |
39 public: | |
40 DicomStructureSet2(); | |
41 ~DicomStructureSet2(); | |
42 | |
43 void SetContents(const FullOrthancDataset& tags); | |
44 | |
45 size_t GetStructuresCount() const | |
46 { | |
47 return structures_.size(); | |
48 } | |
49 | |
50 void Clear(); | |
51 | |
52 const DicomStructure2& GetStructure(size_t i) const | |
53 { | |
54 // at() is like []() but with range check | |
55 return structures_.at(i); | |
56 } | |
57 | |
58 /** Internal use only */ | |
59 void FillStructuresFromDataset(const FullOrthancDataset& tags); | |
60 | |
61 /** Internal use only */ | |
62 void ComputeDependentProperties(); | |
63 | |
64 /** Internal use only */ | |
65 std::vector<DicomStructure2> structures_; | |
66 }; | |
67 } | |
68 | |
69 #endif | |
70 // BGO_ENABLE_DICOMSTRUCTURESETLOADER2 | |
71 | |
72 |