MeVisLab Toolbox Reference
mlDcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface.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 __mlDcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface_H
24#define __mlDcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface_H
25
26// Local includes
27#include "mlDcmtkAccessories.h"
28
29// Dcmtk includes
30//#include "mlDcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface.h" //DRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModule
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 // IsocenterToLateralSpreadingDeviceDistance (300a,0374) vr=FL, vm=1, type=3
68 std::string getIsocenterToLateralSpreadingDeviceDistanceTag() const { return "(300a,0374)"; }
70
71 // LateralSpreadingDeviceSetting (300a,0372) vr=LO, vm=1, type=1
72 bool getLateralSpreadingDeviceSetting(std::string& parameter) const;
73 std::string getLateralSpreadingDeviceSettingTag() const { return "(300a,0372)"; }
74 bool setLateralSpreadingDeviceSetting(std::string parameter);
75
76 // LateralSpreadingDeviceWaterEquivalentThickness (300a,033c) vr=FL, vm=1, type=3
78 std::string getLateralSpreadingDeviceWaterEquivalentThicknessTag() const { return "(300a,033c)"; }
80
81 // ReferencedLateralSpreadingDeviceNumber (300c,0102) vr=IS, vm=1, type=1
82 bool getReferencedLateralSpreadingDeviceNumber(std::string& parameter) const;
83 std::string getReferencedLateralSpreadingDeviceNumberTag() const { return "(300c,0102)"; }
84 bool setReferencedLateralSpreadingDeviceNumber(std::string parameter);
85
86
87 private:
88
89 DCMTree::TreePtr _dcmItem;
90
91 };
92
94
96 DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface(std::vector<DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item> dcmSequence) : _itemVec(dcmSequence) {}
97
104
107 // IsocenterToLateralSpreadingDeviceDistance (300a,0374) vr=FL, vm=1, type=3
108 bool getIsocenterToLateralSpreadingDeviceDistance(unsigned long idx, float& parameter) const;
110 std::string getIsocenterToLateralSpreadingDeviceDistanceTag() const { return "(300a,0374)"; }
111 bool setIsocenterToLateralSpreadingDeviceDistance(unsigned long idx, float parameter);
112
113 // LateralSpreadingDeviceSetting (300a,0372) vr=LO, vm=1, type=1
114 bool getLateralSpreadingDeviceSetting(unsigned long idx, std::string& parameter) const;
115 bool getLateralSpreadingDeviceSetting(DCMTree::TreePtr item, std::string& parameter) const;
116 std::string getLateralSpreadingDeviceSettingTag() const { return "(300a,0372)"; }
117 bool setLateralSpreadingDeviceSetting(unsigned long idx, std::string parameter);
118
119 // LateralSpreadingDeviceWaterEquivalentThickness (300a,033c) vr=FL, vm=1, type=3
120 bool getLateralSpreadingDeviceWaterEquivalentThickness(unsigned long idx, float& parameter) const;
122 std::string getLateralSpreadingDeviceWaterEquivalentThicknessTag() const { return "(300a,033c)"; }
123 bool setLateralSpreadingDeviceWaterEquivalentThickness(unsigned long idx, float parameter);
124
125 // ReferencedLateralSpreadingDeviceNumber (300c,0102) vr=IS, vm=1, type=1
126 bool getReferencedLateralSpreadingDeviceNumber(unsigned long idx, std::string& parameter) const;
128 std::string getReferencedLateralSpreadingDeviceNumberTag() const { return "(300c,0102)"; }
129 bool setReferencedLateralSpreadingDeviceNumber(unsigned long idx, std::string parameter);
130
131
134 void setSequence(std::vector<DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item> dcmSequence) {
135 _itemVec = dcmSequence;
136 }
137
140 std::vector<DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item> getSequence() const {
141 return _itemVec;
142 }
143
146 bool hasSequence() const {
147 return (_itemVec.size() != 0);
148 }
149
153 return static_cast<MLint>(_itemVec.size());
154 }
155
164
171
175
178 bool insertItem(const size_t idx) {
179 if (_itemVec.size() > idx) {
180 std::vector<DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item>::iterator it = _itemVec.begin();
181 std::advance(it, idx);
183 return true;
184 }
185 return false;
186 }
187
190 bool removeItem(const size_t idx) {
191 if ( _itemVec.size() > idx ) {
192 std::vector<DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item>::iterator it = _itemVec.begin();
193 std::advance(it, idx);
194 _itemVec.erase(it);
195 return true;
196 }
197 return false;
198 }
199
200 protected:
202 std::vector<DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item> _itemVec;
203};
204
206
207#endif // __mlDcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface_H
208
209/* MeVis-Hidden-Components-Start */
210/* MeVis-Hidden-Components-End */
#define MLDCMTKACCESSORIES_EXPORT
bool hasSequence() const
Check if the DRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModule is set.
void addItem(DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item newItem)
bool getReferencedLateralSpreadingDeviceNumber(unsigned long idx, std::string &parameter) const
bool setLateralSpreadingDeviceSetting(unsigned long idx, std::string parameter)
bool getLateralSpreadingDeviceWaterEquivalentThickness(unsigned long idx, float &parameter) const
DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface(std::vector< DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item > dcmSequence)
Default Constructor.
bool setLateralSpreadingDeviceWaterEquivalentThickness(unsigned long idx, float parameter)
bool getIsocenterToLateralSpreadingDeviceDistance(unsigned long idx, float &parameter) const
std::vector< DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item > getSequence() const
Return the DRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModule this interface class provides ...
bool getReferencedLateralSpreadingDeviceNumber(DCMTree::TreePtr item, std::string &parameter) const
void setSequence(std::vector< DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item > dcmSequence)
Set the DRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModule this interface class provides acc...
DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool setIsocenterToLateralSpreadingDeviceDistance(unsigned long idx, float parameter)
std::vector< DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getLateralSpreadingDeviceSetting(unsigned long idx, std::string &parameter) const
bool setReferencedLateralSpreadingDeviceNumber(unsigned long idx, std::string parameter)
bool getIsocenterToLateralSpreadingDeviceDistance(DCMTree::TreePtr item, float &parameter) const
bool getLateralSpreadingDeviceSetting(DCMTree::TreePtr item, std::string &parameter) const
bool getLateralSpreadingDeviceWaterEquivalentThickness(DCMTree::TreePtr item, float &parameter) const
DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item & addItem()
Adds a new item to the sequence.
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