MeVisLab Toolbox Reference
mlDcmDRTPlannedVerificationImageSequenceInterface.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 __mlDcmDRTPlannedVerificationImageSequenceInterface_H
24#define __mlDcmDRTPlannedVerificationImageSequenceInterface_H
25
26// Local includes
27#include "mlDcmtkAccessories.h"
28
29// Dcmtk includes
30//#include "mlDcmDRTPlannedVerificationImageSequenceInterface.h" //DRTPlannedVerificationImageSequence
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 // EndCumulativeMetersetWeight (300c,0009) vr=DS, vm=1, type=3
67 bool getEndCumulativeMetersetWeight(std::string& parameter) const;
68 std::string getEndCumulativeMetersetWeightTag() const { return "(300c,0009)"; }
69 bool setEndCumulativeMetersetWeight(std::string parameter);
70
71 // ImagingDeviceSpecificAcquisitionParameters (300a,00cc) vr=LO, vm=1-n, type=3
72 bool getImagingDeviceSpecificAcquisitionParameters(std::string& parameter) const;
73 std::string getImagingDeviceSpecificAcquisitionParametersTag() const { return "(300a,00cc)"; }
75
76 // MetersetExposure (3002,0032) vr=DS, vm=1, type=3
77 bool getMetersetExposure(std::string& parameter) const;
78 std::string getMetersetExposureTag() const { return "(3002,0032)"; }
79 bool setMetersetExposure(std::string parameter);
80
81 // RTImageOrientation (3002,0010) vr=DS, vm=6, type=3
82 bool getRTImageOrientation(std::string& parameter) const;
83 std::string getRTImageOrientationTag() const { return "(3002,0010)"; }
84 bool setRTImageOrientation(std::string parameter);
85
86 // RTImagePlane (3002,000c) vr=CS, vm=1, type=3
87 bool getRTImagePlane(std::string& parameter) const;
88 std::string getRTImagePlaneTag() const { return "(3002,000c)"; }
89 bool setRTImagePlane(std::string parameter);
90
91 // RTImagePosition (3002,0012) vr=DS, vm=2, type=3
92 bool getRTImagePosition(std::string& parameter) const;
93 std::string getRTImagePositionTag() const { return "(3002,0012)"; }
94 bool setRTImagePosition(std::string parameter);
95
96 // RTImageSID (3002,0026) vr=DS, vm=1, type=3
97 bool getRTImageSID(std::string& parameter) const;
98 std::string getRTImageSIDTag() const { return "(3002,0026)"; }
99 bool setRTImageSID(std::string parameter);
100
101 // ReferencedReferenceImageNumber (300c,0007) vr=IS, vm=1, type=3
102 bool getReferencedReferenceImageNumber(std::string& parameter) const;
103 std::string getReferencedReferenceImageNumberTag() const { return "(300c,0007)"; }
104 bool setReferencedReferenceImageNumber(std::string parameter);
105
106 // StartCumulativeMetersetWeight (300c,0008) vr=DS, vm=1, type=3
107 bool getStartCumulativeMetersetWeight(std::string& parameter) const;
108 std::string getStartCumulativeMetersetWeightTag() const { return "(300c,0008)"; }
109 bool setStartCumulativeMetersetWeight(std::string parameter);
110
111 // XRayImageReceptorAngle (3002,000e) vr=DS, vm=1, type=3
112 bool getXRayImageReceptorAngle(std::string& parameter) const;
113 std::string getXRayImageReceptorAngleTag() const { return "(3002,000e)"; }
114 bool setXRayImageReceptorAngle(std::string parameter);
115
116
117 private:
118
119 DCMTree::TreePtr _dcmItem;
120
121 };
122
124
126 DcmDRTPlannedVerificationImageSequenceInterface(std::vector<DcmDRTPlannedVerificationImageSequenceInterface::Item> dcmSequence) : _itemVec(dcmSequence) {}
127
134
137 // EndCumulativeMetersetWeight (300c,0009) vr=DS, vm=1, type=3
138 bool getEndCumulativeMetersetWeight(unsigned long idx, std::string& parameter) const;
139 bool getEndCumulativeMetersetWeight(DCMTree::TreePtr item, std::string& parameter) const;
140 std::string getEndCumulativeMetersetWeightTag() const { return "(300c,0009)"; }
141 bool setEndCumulativeMetersetWeight(unsigned long idx, std::string parameter);
142
143 // ImagingDeviceSpecificAcquisitionParameters (300a,00cc) vr=LO, vm=1-n, type=3
144 bool getImagingDeviceSpecificAcquisitionParameters(unsigned long idx, std::string& parameter) const;
146 std::string getImagingDeviceSpecificAcquisitionParametersTag() const { return "(300a,00cc)"; }
147 bool setImagingDeviceSpecificAcquisitionParameters(unsigned long idx, std::string parameter);
148
149 // MetersetExposure (3002,0032) vr=DS, vm=1, type=3
150 bool getMetersetExposure(unsigned long idx, std::string& parameter) const;
151 bool getMetersetExposure(DCMTree::TreePtr item, std::string& parameter) const;
152 std::string getMetersetExposureTag() const { return "(3002,0032)"; }
153 bool setMetersetExposure(unsigned long idx, std::string parameter);
154
155 // RTImageOrientation (3002,0010) vr=DS, vm=6, type=3
156 bool getRTImageOrientation(unsigned long idx, std::string& parameter) const;
157 bool getRTImageOrientation(DCMTree::TreePtr item, std::string& parameter) const;
158 std::string getRTImageOrientationTag() const { return "(3002,0010)"; }
159 bool setRTImageOrientation(unsigned long idx, std::string parameter);
160
161 // RTImagePlane (3002,000c) vr=CS, vm=1, type=3
162 bool getRTImagePlane(unsigned long idx, std::string& parameter) const;
163 bool getRTImagePlane(DCMTree::TreePtr item, std::string& parameter) const;
164 std::string getRTImagePlaneTag() const { return "(3002,000c)"; }
165 bool setRTImagePlane(unsigned long idx, std::string parameter);
166
167 // RTImagePosition (3002,0012) vr=DS, vm=2, type=3
168 bool getRTImagePosition(unsigned long idx, std::string& parameter) const;
169 bool getRTImagePosition(DCMTree::TreePtr item, std::string& parameter) const;
170 std::string getRTImagePositionTag() const { return "(3002,0012)"; }
171 bool setRTImagePosition(unsigned long idx, std::string parameter);
172
173 // RTImageSID (3002,0026) vr=DS, vm=1, type=3
174 bool getRTImageSID(unsigned long idx, std::string& parameter) const;
175 bool getRTImageSID(DCMTree::TreePtr item, std::string& parameter) const;
176 std::string getRTImageSIDTag() const { return "(3002,0026)"; }
177 bool setRTImageSID(unsigned long idx, std::string parameter);
178
179 // ReferencedReferenceImageNumber (300c,0007) vr=IS, vm=1, type=3
180 bool getReferencedReferenceImageNumber(unsigned long idx, std::string& parameter) const;
181 bool getReferencedReferenceImageNumber(DCMTree::TreePtr item, std::string& parameter) const;
182 std::string getReferencedReferenceImageNumberTag() const { return "(300c,0007)"; }
183 bool setReferencedReferenceImageNumber(unsigned long idx, std::string parameter);
184
185 // StartCumulativeMetersetWeight (300c,0008) vr=DS, vm=1, type=3
186 bool getStartCumulativeMetersetWeight(unsigned long idx, std::string& parameter) const;
187 bool getStartCumulativeMetersetWeight(DCMTree::TreePtr item, std::string& parameter) const;
188 std::string getStartCumulativeMetersetWeightTag() const { return "(300c,0008)"; }
189 bool setStartCumulativeMetersetWeight(unsigned long idx, std::string parameter);
190
191 // XRayImageReceptorAngle (3002,000e) vr=DS, vm=1, type=3
192 bool getXRayImageReceptorAngle(unsigned long idx, std::string& parameter) const;
193 bool getXRayImageReceptorAngle(DCMTree::TreePtr item, std::string& parameter) const;
194 std::string getXRayImageReceptorAngleTag() const { return "(3002,000e)"; }
195 bool setXRayImageReceptorAngle(unsigned long idx, std::string parameter);
196
197
200 void setSequence(std::vector<DcmDRTPlannedVerificationImageSequenceInterface::Item> dcmSequence) {
201 _itemVec = dcmSequence;
202 }
203
206 std::vector<DcmDRTPlannedVerificationImageSequenceInterface::Item> getSequence() const {
207 return _itemVec;
208 }
209
212 bool hasSequence() const {
213 return (_itemVec.size() != 0);
214 }
215
219 return static_cast<MLint>(_itemVec.size());
220 }
221
225 if (_itemVec.size() > idx) {
226 return _itemVec[idx];
227 }
229 }
230
235 return _itemVec[_itemVec.size()-1];
236 }
237
241
244 bool insertItem(const size_t idx) {
245 if (_itemVec.size() > idx) {
246 std::vector<DcmDRTPlannedVerificationImageSequenceInterface::Item>::iterator it = _itemVec.begin();
247 std::advance(it, idx);
249 return true;
250 }
251 return false;
252 }
253
256 bool removeItem(const size_t idx) {
257 if ( _itemVec.size() > idx ) {
258 std::vector<DcmDRTPlannedVerificationImageSequenceInterface::Item>::iterator it = _itemVec.begin();
259 std::advance(it, idx);
260 _itemVec.erase(it);
261 return true;
262 }
263 return false;
264 }
265
266 protected:
268 std::vector<DcmDRTPlannedVerificationImageSequenceInterface::Item> _itemVec;
269};
270
272
273#endif // __mlDcmDRTPlannedVerificationImageSequenceInterface_H
274
275/* MeVis-Hidden-Components-Start */
276/* MeVis-Hidden-Components-End */
#define MLDCMTKACCESSORIES_EXPORT
bool getStartCumulativeMetersetWeight(std::string &parameter) const
bool getEndCumulativeMetersetWeight(std::string &parameter) const
bool getRTImageOrientation(std::string &parameter) const
bool getMetersetExposure(std::string &parameter) const
bool getReferencedReferenceImageNumber(std::string &parameter) const
bool getImagingDeviceSpecificAcquisitionParameters(std::string &parameter) const
bool setImagingDeviceSpecificAcquisitionParameters(std::string parameter)
bool getXRayImageReceptorAngle(std::string &parameter) const
bool getRTImageSID(std::string &parameter) const
bool getRTImagePosition(std::string &parameter) const
bool getRTImagePlane(std::string &parameter) const
Class to provide access to DRTPlannedVerificationImageSequence.
bool setRTImagePosition(unsigned long idx, std::string parameter)
bool getReferencedReferenceImageNumber(DCMTree::TreePtr item, std::string &parameter) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getImagingDeviceSpecificAcquisitionParameters(DCMTree::TreePtr item, std::string &parameter) const
bool getEndCumulativeMetersetWeight(unsigned long idx, std::string &parameter) const
bool getRTImagePlane(unsigned long idx, std::string &parameter) const
bool getStartCumulativeMetersetWeight(DCMTree::TreePtr item, std::string &parameter) const
bool getMetersetExposure(DCMTree::TreePtr item, std::string &parameter) const
bool getRTImageSID(unsigned long idx, std::string &parameter) const
bool getRTImageOrientation(DCMTree::TreePtr item, std::string &parameter) const
bool getRTImagePosition(unsigned long idx, std::string &parameter) const
bool getMetersetExposure(unsigned long idx, std::string &parameter) const
bool setRTImageOrientation(unsigned long idx, std::string parameter)
bool getStartCumulativeMetersetWeight(unsigned long idx, std::string &parameter) const
bool setRTImageSID(unsigned long idx, std::string parameter)
bool setReferencedReferenceImageNumber(unsigned long idx, std::string parameter)
bool getImagingDeviceSpecificAcquisitionParameters(unsigned long idx, std::string &parameter) const
DcmDRTPlannedVerificationImageSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getRTImagePlane(DCMTree::TreePtr item, std::string &parameter) const
bool setImagingDeviceSpecificAcquisitionParameters(unsigned long idx, std::string parameter)
void setSequence(std::vector< DcmDRTPlannedVerificationImageSequenceInterface::Item > dcmSequence)
Set the DRTPlannedVerificationImageSequence this interface class provides access to.
bool getEndCumulativeMetersetWeight(DCMTree::TreePtr item, std::string &parameter) const
bool setStartCumulativeMetersetWeight(unsigned long idx, std::string parameter)
bool setMetersetExposure(unsigned long idx, std::string parameter)
std::vector< DcmDRTPlannedVerificationImageSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool hasSequence() const
Check if the DRTPlannedVerificationImageSequence is set.
DcmDRTPlannedVerificationImageSequenceInterface(std::vector< DcmDRTPlannedVerificationImageSequenceInterface::Item > dcmSequence)
Default Constructor.
bool setEndCumulativeMetersetWeight(unsigned long idx, std::string parameter)
std::vector< DcmDRTPlannedVerificationImageSequenceInterface::Item > getSequence() const
Return the DRTPlannedVerificationImageSequence this interface class provides access to.
void addItem(DcmDRTPlannedVerificationImageSequenceInterface::Item newItem)
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool getXRayImageReceptorAngle(unsigned long idx, std::string &parameter) const
bool setRTImagePlane(unsigned long idx, std::string parameter)
bool getRTImagePosition(DCMTree::TreePtr item, std::string &parameter) const
bool getReferencedReferenceImageNumber(unsigned long idx, std::string &parameter) const
bool getRTImageOrientation(unsigned long idx, std::string &parameter) const
bool setXRayImageReceptorAngle(unsigned long idx, std::string parameter)
bool getXRayImageReceptorAngle(DCMTree::TreePtr item, std::string &parameter) const
bool getRTImageSID(DCMTree::TreePtr item, std::string &parameter) const
DcmDRTPlannedVerificationImageSequenceInterface::Item & addItem()
Adds a new item to the sequence.
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
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