MeVisLab Toolbox Reference
mlDcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface.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 __mlDcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface_H
24#define __mlDcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface_H
25
26// Local includes
27#include "mlDcmtkAccessories.h"
28
29// Dcmtk includes
30//#include "mlDcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface.h" //DRTReferencedBeamSequenceInRTFractionSchemeModule
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 // BeamDose (300a,0084) vr=DS, vm=1, type=3
67 bool getBeamDose(std::string& parameter) const;
68 std::string getBeamDoseTag() const { return "(300a,0084)"; }
69 bool setBeamDose(std::string parameter);
70
71 // BeamDosePointDepth (300a,0088) vr=FL, vm=1, type=3
72 bool getBeamDosePointDepth(float& parameter) const;
73 std::string getBeamDosePointDepthTag() const { return "(300a,0088)"; }
74 bool setBeamDosePointDepth(float parameter);
75
76 // BeamDosePointEquivalentDepth (300a,0089) vr=FL, vm=1, type=3
77 bool getBeamDosePointEquivalentDepth(float& parameter) const;
78 std::string getBeamDosePointEquivalentDepthTag() const { return "(300a,0089)"; }
79 bool setBeamDosePointEquivalentDepth(float parameter);
80
81 // BeamDosePointSSD (300a,008a) vr=FL, vm=1, type=3
82 bool getBeamDosePointSSD(float& parameter) const;
83 std::string getBeamDosePointSSDTag() const { return "(300a,008a)"; }
84 bool setBeamDosePointSSD(float parameter);
85
86 // BeamDoseSpecificationPoint (300a,0082) vr=DS, vm=3, type=3
87 bool getBeamDoseSpecificationPoint(std::string& parameter) const;
88 std::string getBeamDoseSpecificationPointTag() const { return "(300a,0082)"; }
89 bool setBeamDoseSpecificationPoint(std::string parameter);
90
91 // BeamMeterset (300a,0086) vr=DS, vm=1, type=3
92 bool getBeamMeterset(std::string& parameter) const;
93 std::string getBeamMetersetTag() const { return "(300a,0086)"; }
94 bool setBeamMeterset(std::string parameter);
95
96 // ReferencedBeamNumber (300c,0006) vr=IS, vm=1, type=1C
97 bool getReferencedBeamNumber(std::string& parameter) const;
98 std::string getReferencedBeamNumberTag() const { return "(300c,0006)"; }
99 bool setReferencedBeamNumber(std::string parameter);
100
101
102 private:
103
104 DCMTree::TreePtr _dcmItem;
105
106 };
107
109
111 DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface(std::vector<DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item> dcmSequence) : _itemVec(dcmSequence) {}
112
119
122 // BeamDose (300a,0084) vr=DS, vm=1, type=3
123 bool getBeamDose(unsigned long idx, std::string& parameter) const;
124 bool getBeamDose(DCMTree::TreePtr item, std::string& parameter) const;
125 std::string getBeamDoseTag() const { return "(300a,0084)"; }
126 bool setBeamDose(unsigned long idx, std::string parameter);
127
128 // BeamDosePointDepth (300a,0088) vr=FL, vm=1, type=3
129 bool getBeamDosePointDepth(unsigned long idx, float& parameter) const;
130 bool getBeamDosePointDepth(DCMTree::TreePtr item, float& parameter) const;
131 std::string getBeamDosePointDepthTag() const { return "(300a,0088)"; }
132 bool setBeamDosePointDepth(unsigned long idx, float parameter);
133
134 // BeamDosePointEquivalentDepth (300a,0089) vr=FL, vm=1, type=3
135 bool getBeamDosePointEquivalentDepth(unsigned long idx, float& parameter) const;
137 std::string getBeamDosePointEquivalentDepthTag() const { return "(300a,0089)"; }
138 bool setBeamDosePointEquivalentDepth(unsigned long idx, float parameter);
139
140 // BeamDosePointSSD (300a,008a) vr=FL, vm=1, type=3
141 bool getBeamDosePointSSD(unsigned long idx, float& parameter) const;
142 bool getBeamDosePointSSD(DCMTree::TreePtr item, float& parameter) const;
143 std::string getBeamDosePointSSDTag() const { return "(300a,008a)"; }
144 bool setBeamDosePointSSD(unsigned long idx, float parameter);
145
146 // BeamDoseSpecificationPoint (300a,0082) vr=DS, vm=3, type=3
147 bool getBeamDoseSpecificationPoint(unsigned long idx, std::string& parameter) const;
148 bool getBeamDoseSpecificationPoint(DCMTree::TreePtr item, std::string& parameter) const;
149 std::string getBeamDoseSpecificationPointTag() const { return "(300a,0082)"; }
150 bool setBeamDoseSpecificationPoint(unsigned long idx, std::string parameter);
151
152 // BeamMeterset (300a,0086) vr=DS, vm=1, type=3
153 bool getBeamMeterset(unsigned long idx, std::string& parameter) const;
154 bool getBeamMeterset(DCMTree::TreePtr item, std::string& parameter) const;
155 std::string getBeamMetersetTag() const { return "(300a,0086)"; }
156 bool setBeamMeterset(unsigned long idx, std::string parameter);
157
158 // ReferencedBeamNumber (300c,0006) vr=IS, vm=1, type=1C
159 bool getReferencedBeamNumber(unsigned long idx, std::string& parameter) const;
160 bool getReferencedBeamNumber(DCMTree::TreePtr item, std::string& parameter) const;
161 std::string getReferencedBeamNumberTag() const { return "(300c,0006)"; }
162 bool setReferencedBeamNumber(unsigned long idx, std::string parameter);
163
164
167 void setSequence(std::vector<DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item> dcmSequence) {
168 _itemVec = dcmSequence;
169 }
170
173 std::vector<DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item> getSequence() const {
174 return _itemVec;
175 }
176
179 bool hasSequence() const {
180 return (_itemVec.size() != 0);
181 }
182
186 return static_cast<MLint>(_itemVec.size());
187 }
188
192 if (_itemVec.size() > idx) {
193 return _itemVec[idx];
194 }
196 }
197
204
208
211 bool insertItem(const size_t idx) {
212 if (_itemVec.size() > idx) {
213 std::vector<DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item>::iterator it = _itemVec.begin();
214 std::advance(it, idx);
216 return true;
217 }
218 return false;
219 }
220
223 bool removeItem(const size_t idx) {
224 if ( _itemVec.size() > idx ) {
225 std::vector<DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item>::iterator it = _itemVec.begin();
226 std::advance(it, idx);
227 _itemVec.erase(it);
228 return true;
229 }
230 return false;
231 }
232
233 protected:
235 std::vector<DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item> _itemVec;
236};
237
239
240#endif // __mlDcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface_H
241
242/* MeVis-Hidden-Components-Start */
243/* MeVis-Hidden-Components-End */
#define MLDCMTKACCESSORIES_EXPORT
bool getBeamDose(DCMTree::TreePtr item, std::string &parameter) const
std::vector< DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
void addItem(DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item newItem)
bool setBeamMeterset(unsigned long idx, std::string parameter)
bool setReferencedBeamNumber(unsigned long idx, std::string parameter)
bool getBeamDosePointEquivalentDepth(unsigned long idx, float &parameter) const
bool getBeamDosePointSSD(DCMTree::TreePtr item, float &parameter) const
bool getBeamMeterset(DCMTree::TreePtr item, std::string &parameter) const
bool getBeamDose(unsigned long idx, std::string &parameter) const
bool hasSequence() const
Check if the DRTReferencedBeamSequenceInRTFractionSchemeModule is set.
bool getBeamMeterset(unsigned long idx, std::string &parameter) const
bool setBeamDosePointSSD(unsigned long idx, float parameter)
bool getBeamDosePointEquivalentDepth(DCMTree::TreePtr item, float &parameter) const
void setSequence(std::vector< DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item > dcmSequence)
Set the DRTReferencedBeamSequenceInRTFractionSchemeModule this interface class provides access to.
bool getBeamDoseSpecificationPoint(DCMTree::TreePtr item, std::string &parameter) const
bool getBeamDosePointSSD(unsigned long idx, float &parameter) const
bool getBeamDosePointDepth(DCMTree::TreePtr item, float &parameter) const
std::vector< DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item > getSequence() const
Return the DRTReferencedBeamSequenceInRTFractionSchemeModule this interface class provides access to.
bool getBeamDoseSpecificationPoint(unsigned long idx, std::string &parameter) const
DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item & addItem()
Adds a new item to the sequence.
bool setBeamDosePointDepth(unsigned long idx, float parameter)
bool getReferencedBeamNumber(DCMTree::TreePtr item, std::string &parameter) const
bool getReferencedBeamNumber(unsigned long idx, std::string &parameter) const
DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getBeamDosePointDepth(unsigned long idx, float &parameter) const
bool setBeamDosePointEquivalentDepth(unsigned long idx, float parameter)
DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface(std::vector< DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item > dcmSequence)
Default Constructor.
bool setBeamDose(unsigned long idx, std::string parameter)
bool setBeamDoseSpecificationPoint(unsigned long idx, std::string parameter)
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