MeVisLab Toolbox Reference
mlDcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3//----------------------------------------------------------------------------------
4//
5// NOTE:
6// This file has been generated automatically by
7// FMEwork/ReleaseMeVis/Configuration/CodeGenerators/dcmtkToMLConverter/convertDcmtkToML.py
8// using the template file
9// FMEwork/ReleaseMeVis/Configuration/CodeGenerators/dcmtkToMLConverter/MLDcmtkAccessoriesNew/templates/DcmSequenceInterface.h
10//
11// Destination project:
12// FMEwork/ReleaseMeVis/Sources/Shared/MLDcmtkAccessoriesNew/DcmSequenceInterfaces
13//
14//----------------------------------------------------------------------------------
16
21//----------------------------------------------------------------------------------
22
23#ifndef __mlDcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface_H
24#define __mlDcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface_H
25
26// Local includes
27#include "mlDcmtkAccessories.h"
28
29// Dcmtk includes
30//#include "mlDcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface.h" //DRTReferencedDoseReferenceSequenceInRTFractionSchemeModule
31
32
33// ML includes
34#ifndef __mlModuleIncludes_H
35#include "mlModuleIncludes.h"
36#endif
37
39
40// ------------------------------------------------------------------
42// ------------------------------------------------------------------
44{
45 public:
46
48 {
49 public:
50
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
52
54
55 Item(const Item &copyDcmItem) : _dcmItem(copyDcmItem.getTreePtr()) {}
56
57 Item &operator=(const Item &copyDcmItem){ _dcmItem = copyDcmItem.getTreePtr(); return *this; }
58
59 virtual ~Item() {}
60
61 DCMTree::TreePtr getTreePtr() const { return _dcmItem; }
62
63 bool isValid() const { return _dcmItem.get() != nullptr; }
64
65
66 // ConstraintWeight (300a,0021) vr=DS, vm=1, type=3
67 bool getConstraintWeight(std::string& parameter) const;
68 std::string getConstraintWeightTag() const { return "(300a,0021)"; }
69 bool setConstraintWeight(std::string parameter);
70
71 // DeliveryMaximumDose (300a,0023) vr=DS, vm=1, type=3
72 bool getDeliveryMaximumDose(std::string& parameter) const;
73 std::string getDeliveryMaximumDoseTag() const { return "(300a,0023)"; }
74 bool setDeliveryMaximumDose(std::string parameter);
75
76 // DeliveryWarningDose (300a,0022) vr=DS, vm=1, type=3
77 bool getDeliveryWarningDose(std::string& parameter) const;
78 std::string getDeliveryWarningDoseTag() const { return "(300a,0022)"; }
79 bool setDeliveryWarningDose(std::string parameter);
80
81 // OrganAtRiskFullVolumeDose (300a,002a) vr=DS, vm=1, type=3
82 bool getOrganAtRiskFullVolumeDose(std::string& parameter) const;
83 std::string getOrganAtRiskFullVolumeDoseTag() const { return "(300a,002a)"; }
84 bool setOrganAtRiskFullVolumeDose(std::string parameter);
85
86 // OrganAtRiskLimitDose (300a,002b) vr=DS, vm=1, type=3
87 bool getOrganAtRiskLimitDose(std::string& parameter) const;
88 std::string getOrganAtRiskLimitDoseTag() const { return "(300a,002b)"; }
89 bool setOrganAtRiskLimitDose(std::string parameter);
90
91 // OrganAtRiskMaximumDose (300a,002c) vr=DS, vm=1, type=3
92 bool getOrganAtRiskMaximumDose(std::string& parameter) const;
93 std::string getOrganAtRiskMaximumDoseTag() const { return "(300a,002c)"; }
94 bool setOrganAtRiskMaximumDose(std::string parameter);
95
96 // OrganAtRiskOverdoseVolumeFraction (300a,002d) vr=DS, vm=1, type=3
97 bool getOrganAtRiskOverdoseVolumeFraction(std::string& parameter) const;
98 std::string getOrganAtRiskOverdoseVolumeFractionTag() const { return "(300a,002d)"; }
99 bool setOrganAtRiskOverdoseVolumeFraction(std::string parameter);
100
101 // ReferencedDoseReferenceNumber (300c,0051) vr=IS, vm=1, type=1C
102 bool getReferencedDoseReferenceNumber(std::string& parameter) const;
103 std::string getReferencedDoseReferenceNumberTag() const { return "(300c,0051)"; }
104 bool setReferencedDoseReferenceNumber(std::string parameter);
105
106 // TargetMaximumDose (300a,0027) vr=DS, vm=1, type=3
107 bool getTargetMaximumDose(std::string& parameter) const;
108 std::string getTargetMaximumDoseTag() const { return "(300a,0027)"; }
109 bool setTargetMaximumDose(std::string parameter);
110
111 // TargetMinimumDose (300a,0025) vr=DS, vm=1, type=3
112 bool getTargetMinimumDose(std::string& parameter) const;
113 std::string getTargetMinimumDoseTag() const { return "(300a,0025)"; }
114 bool setTargetMinimumDose(std::string parameter);
115
116 // TargetPrescriptionDose (300a,0026) vr=DS, vm=1, type=3
117 bool getTargetPrescriptionDose(std::string& parameter) const;
118 std::string getTargetPrescriptionDoseTag() const { return "(300a,0026)"; }
119 bool setTargetPrescriptionDose(std::string parameter);
120
121 // TargetUnderdoseVolumeFraction (300a,0028) vr=DS, vm=1, type=3
122 bool getTargetUnderdoseVolumeFraction(std::string& parameter) const;
123 std::string getTargetUnderdoseVolumeFractionTag() const { return "(300a,0028)"; }
124 bool setTargetUnderdoseVolumeFraction(std::string parameter);
125
126
127 private:
128
129 DCMTree::TreePtr _dcmItem;
130
131 };
132
134
136 DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface(std::vector<DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface::Item> dcmSequence) : _itemVec(dcmSequence) {}
137
144
147 // ConstraintWeight (300a,0021) vr=DS, vm=1, type=3
148 bool getConstraintWeight(unsigned long idx, std::string& parameter) const;
149 bool getConstraintWeight(DCMTree::TreePtr item, std::string& parameter) const;
150 std::string getConstraintWeightTag() const { return "(300a,0021)"; }
151 bool setConstraintWeight(unsigned long idx, std::string parameter);
152
153 // DeliveryMaximumDose (300a,0023) vr=DS, vm=1, type=3
154 bool getDeliveryMaximumDose(unsigned long idx, std::string& parameter) const;
155 bool getDeliveryMaximumDose(DCMTree::TreePtr item, std::string& parameter) const;
156 std::string getDeliveryMaximumDoseTag() const { return "(300a,0023)"; }
157 bool setDeliveryMaximumDose(unsigned long idx, std::string parameter);
158
159 // DeliveryWarningDose (300a,0022) vr=DS, vm=1, type=3
160 bool getDeliveryWarningDose(unsigned long idx, std::string& parameter) const;
161 bool getDeliveryWarningDose(DCMTree::TreePtr item, std::string& parameter) const;
162 std::string getDeliveryWarningDoseTag() const { return "(300a,0022)"; }
163 bool setDeliveryWarningDose(unsigned long idx, std::string parameter);
164
165 // OrganAtRiskFullVolumeDose (300a,002a) vr=DS, vm=1, type=3
166 bool getOrganAtRiskFullVolumeDose(unsigned long idx, std::string& parameter) const;
167 bool getOrganAtRiskFullVolumeDose(DCMTree::TreePtr item, std::string& parameter) const;
168 std::string getOrganAtRiskFullVolumeDoseTag() const { return "(300a,002a)"; }
169 bool setOrganAtRiskFullVolumeDose(unsigned long idx, std::string parameter);
170
171 // OrganAtRiskLimitDose (300a,002b) vr=DS, vm=1, type=3
172 bool getOrganAtRiskLimitDose(unsigned long idx, std::string& parameter) const;
173 bool getOrganAtRiskLimitDose(DCMTree::TreePtr item, std::string& parameter) const;
174 std::string getOrganAtRiskLimitDoseTag() const { return "(300a,002b)"; }
175 bool setOrganAtRiskLimitDose(unsigned long idx, std::string parameter);
176
177 // OrganAtRiskMaximumDose (300a,002c) vr=DS, vm=1, type=3
178 bool getOrganAtRiskMaximumDose(unsigned long idx, std::string& parameter) const;
179 bool getOrganAtRiskMaximumDose(DCMTree::TreePtr item, std::string& parameter) const;
180 std::string getOrganAtRiskMaximumDoseTag() const { return "(300a,002c)"; }
181 bool setOrganAtRiskMaximumDose(unsigned long idx, std::string parameter);
182
183 // OrganAtRiskOverdoseVolumeFraction (300a,002d) vr=DS, vm=1, type=3
184 bool getOrganAtRiskOverdoseVolumeFraction(unsigned long idx, std::string& parameter) const;
185 bool getOrganAtRiskOverdoseVolumeFraction(DCMTree::TreePtr item, std::string& parameter) const;
186 std::string getOrganAtRiskOverdoseVolumeFractionTag() const { return "(300a,002d)"; }
187 bool setOrganAtRiskOverdoseVolumeFraction(unsigned long idx, std::string parameter);
188
189 // ReferencedDoseReferenceNumber (300c,0051) vr=IS, vm=1, type=1C
190 bool getReferencedDoseReferenceNumber(unsigned long idx, std::string& parameter) const;
191 bool getReferencedDoseReferenceNumber(DCMTree::TreePtr item, std::string& parameter) const;
192 std::string getReferencedDoseReferenceNumberTag() const { return "(300c,0051)"; }
193 bool setReferencedDoseReferenceNumber(unsigned long idx, std::string parameter);
194
195 // TargetMaximumDose (300a,0027) vr=DS, vm=1, type=3
196 bool getTargetMaximumDose(unsigned long idx, std::string& parameter) const;
197 bool getTargetMaximumDose(DCMTree::TreePtr item, std::string& parameter) const;
198 std::string getTargetMaximumDoseTag() const { return "(300a,0027)"; }
199 bool setTargetMaximumDose(unsigned long idx, std::string parameter);
200
201 // TargetMinimumDose (300a,0025) vr=DS, vm=1, type=3
202 bool getTargetMinimumDose(unsigned long idx, std::string& parameter) const;
203 bool getTargetMinimumDose(DCMTree::TreePtr item, std::string& parameter) const;
204 std::string getTargetMinimumDoseTag() const { return "(300a,0025)"; }
205 bool setTargetMinimumDose(unsigned long idx, std::string parameter);
206
207 // TargetPrescriptionDose (300a,0026) vr=DS, vm=1, type=3
208 bool getTargetPrescriptionDose(unsigned long idx, std::string& parameter) const;
209 bool getTargetPrescriptionDose(DCMTree::TreePtr item, std::string& parameter) const;
210 std::string getTargetPrescriptionDoseTag() const { return "(300a,0026)"; }
211 bool setTargetPrescriptionDose(unsigned long idx, std::string parameter);
212
213 // TargetUnderdoseVolumeFraction (300a,0028) vr=DS, vm=1, type=3
214 bool getTargetUnderdoseVolumeFraction(unsigned long idx, std::string& parameter) const;
215 bool getTargetUnderdoseVolumeFraction(DCMTree::TreePtr item, std::string& parameter) const;
216 std::string getTargetUnderdoseVolumeFractionTag() const { return "(300a,0028)"; }
217 bool setTargetUnderdoseVolumeFraction(unsigned long idx, std::string parameter);
218
219
222 void setSequence(std::vector<DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface::Item> dcmSequence) {
223 _itemVec = dcmSequence;
224 }
225
228 std::vector<DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface::Item> getSequence() const {
229 return _itemVec;
230 }
231
234 bool hasSequence() const {
235 return (_itemVec.size() != 0);
236 }
237
241 return static_cast<MLint>(_itemVec.size());
242 }
243
252
259
263
266 bool insertItem(const size_t idx) {
267 if (_itemVec.size() > idx) {
268 std::vector<DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface::Item>::iterator it = _itemVec.begin();
269 std::advance(it, idx);
271 return true;
272 }
273 return false;
274 }
275
278 bool removeItem(const size_t idx) {
279 if ( _itemVec.size() > idx ) {
280 std::vector<DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface::Item>::iterator it = _itemVec.begin();
281 std::advance(it, idx);
282 _itemVec.erase(it);
283 return true;
284 }
285 return false;
286 }
287
288 protected:
290 std::vector<DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface::Item> _itemVec;
291};
292
294
295#endif // __mlDcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface_H
296
297/* MeVis-Hidden-Components-Start */
298/* MeVis-Hidden-Components-End */
#define MLDCMTKACCESSORIES_EXPORT
bool setDeliveryWarningDose(unsigned long idx, std::string parameter)
bool getConstraintWeight(DCMTree::TreePtr item, std::string &parameter) const
bool getOrganAtRiskOverdoseVolumeFraction(DCMTree::TreePtr item, std::string &parameter) const
bool hasSequence() const
Check if the DRTReferencedDoseReferenceSequenceInRTFractionSchemeModule is set.
bool getConstraintWeight(unsigned long idx, std::string &parameter) const
bool setReferencedDoseReferenceNumber(unsigned long idx, std::string parameter)
bool getOrganAtRiskLimitDose(DCMTree::TreePtr item, std::string &parameter) const
bool getTargetMinimumDose(DCMTree::TreePtr item, std::string &parameter) const
bool getOrganAtRiskFullVolumeDose(DCMTree::TreePtr item, std::string &parameter) const
bool setTargetUnderdoseVolumeFraction(unsigned long idx, std::string parameter)
bool getDeliveryMaximumDose(DCMTree::TreePtr item, std::string &parameter) const
void addItem(DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface::Item newItem)
bool getTargetUnderdoseVolumeFraction(DCMTree::TreePtr item, std::string &parameter) const
bool setOrganAtRiskFullVolumeDose(unsigned long idx, std::string parameter)
bool setTargetMaximumDose(unsigned long idx, std::string parameter)
bool getReferencedDoseReferenceNumber(unsigned long idx, std::string &parameter) const
bool getDeliveryWarningDose(DCMTree::TreePtr item, std::string &parameter) const
DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getTargetPrescriptionDose(unsigned long idx, std::string &parameter) const
bool getOrganAtRiskMaximumDose(unsigned long idx, std::string &parameter) const
std::vector< DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface::Item > getSequence() const
Return the DRTReferencedDoseReferenceSequenceInRTFractionSchemeModule this interface class provides a...
bool getOrganAtRiskOverdoseVolumeFraction(unsigned long idx, std::string &parameter) const
bool getTargetMaximumDose(unsigned long idx, std::string &parameter) const
bool getTargetPrescriptionDose(DCMTree::TreePtr item, std::string &parameter) const
void setSequence(std::vector< DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface::Item > dcmSequence)
Set the DRTReferencedDoseReferenceSequenceInRTFractionSchemeModule this interface class provides acce...
bool getDeliveryMaximumDose(unsigned long idx, std::string &parameter) const
bool setDeliveryMaximumDose(unsigned long idx, std::string parameter)
bool setOrganAtRiskLimitDose(unsigned long idx, std::string parameter)
bool getOrganAtRiskMaximumDose(DCMTree::TreePtr item, std::string &parameter) const
bool setOrganAtRiskOverdoseVolumeFraction(unsigned long idx, std::string parameter)
bool setConstraintWeight(unsigned long idx, std::string parameter)
bool getOrganAtRiskFullVolumeDose(unsigned long idx, std::string &parameter) const
bool getTargetUnderdoseVolumeFraction(unsigned long idx, std::string &parameter) const
bool setTargetMinimumDose(unsigned long idx, std::string parameter)
DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface(std::vector< DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface::Item > dcmSequence)
Default Constructor.
bool getReferencedDoseReferenceNumber(DCMTree::TreePtr item, std::string &parameter) const
DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface::Item & addItem()
Adds a new item to the sequence.
bool setTargetPrescriptionDose(unsigned long idx, std::string parameter)
bool getOrganAtRiskLimitDose(unsigned long idx, std::string &parameter) const
bool getDeliveryWarningDose(unsigned long idx, std::string &parameter) const
bool getTargetMaximumDose(DCMTree::TreePtr item, std::string &parameter) const
std::vector< DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool setOrganAtRiskMaximumDose(unsigned long idx, std::string parameter)
bool getTargetMinimumDose(unsigned long idx, std::string &parameter) const
Class collecting some DICOM helper functionality explicitly for dcmtk.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
Definition mlTypeDefs.h:490
std::vector< TreePtr > TreePtrVector
a vector of TreePtr - used for sequences
Definition DCMTree_Lib.h:85
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree
Definition DCMTree_Lib.h:72