MeVisLab Toolbox Reference
mlDcmDRTFractionGroupSummarySequenceInterface.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 __mlDcmDRTFractionGroupSummarySequenceInterface_H
24#define __mlDcmDRTFractionGroupSummarySequenceInterface_H
25
26// Local includes
27#include "mlDcmtkAccessories.h"
28
29// Dcmtk includes
30//#include "mlDcmDRTFractionGroupSummarySequenceInterface.h" //DRTFractionGroupSummarySequence
31#include "mlDcmDRTFractionStatusSummarySequenceInterface.h" //DRTFractionStatusSummarySequence
32
33
34// ML includes
35#ifndef __mlModuleIncludes_H
36#include "mlModuleIncludes.h"
37#endif
38
40
41// ------------------------------------------------------------------
43// ------------------------------------------------------------------
45{
46 public:
47
49 {
50 public:
51
52 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
53
55
56 Item(const Item &copyDcmItem) : _dcmItem(copyDcmItem.getTreePtr()) {}
57
58 Item &operator=(const Item &copyDcmItem){ _dcmItem = copyDcmItem.getTreePtr(); return *this; }
59
60 virtual ~Item() {}
61
62 DCMTree::TreePtr getTreePtr() const { return _dcmItem; }
63
64 bool isValid() const { return _dcmItem.get() != nullptr; }
65
66
67 // CumulativeDoseToDoseReference (3008,0052) vr=DS, vm=1, type=1C
68 bool getCumulativeDoseToDoseReference(std::string& parameter) const;
69 std::string getCumulativeDoseToDoseReferenceTag() const { return "(3008,0052)"; }
70 bool setCumulativeDoseToDoseReference(std::string parameter);
71
72 // DoseReferenceDescription (300a,0016) vr=LO, vm=1, type=3
73 bool getDoseReferenceDescription(std::string& parameter) const;
74 std::string getDoseReferenceDescriptionTag() const { return "(300a,0016)"; }
75 bool setDoseReferenceDescription(std::string parameter);
76
77 // FractionGroupType (3008,0224) vr=CS, vm=1, type=2C
78 bool getFractionGroupType(std::string& parameter) const;
79 std::string getFractionGroupTypeTag() const { return "(3008,0224)"; }
80 bool setFractionGroupType(std::string parameter);
81
82 // NumberOfFractionsDelivered (3008,005a) vr=IS, vm=1, type=2C
83 bool getNumberOfFractionsDelivered(std::string& parameter) const;
84 std::string getNumberOfFractionsDeliveredTag() const { return "(3008,005a)"; }
85 bool setNumberOfFractionsDelivered(std::string parameter);
86
87 // NumberOfFractionsPlanned (300a,0078) vr=IS, vm=1, type=2C
88 bool getNumberOfFractionsPlanned(std::string& parameter) const;
89 std::string getNumberOfFractionsPlannedTag() const { return "(300a,0078)"; }
90 bool setNumberOfFractionsPlanned(std::string parameter);
91
92 // ReferencedDoseReferenceNumber (300c,0051) vr=IS, vm=1, type=3
93 bool getReferencedDoseReferenceNumber(std::string& parameter) const;
94 std::string getReferencedDoseReferenceNumberTag() const { return "(300c,0051)"; }
95 bool setReferencedDoseReferenceNumber(std::string parameter);
96
97 // ReferencedFractionGroupNumber (300c,0022) vr=IS, vm=1, type=3
98 bool getReferencedFractionGroupNumber(std::string& parameter) const;
99 std::string getReferencedFractionGroupNumberTag() const { return "(300c,0022)"; }
100 bool setReferencedFractionGroupNumber(std::string parameter);
101
102 // FractionStatusSummarySequence (3008,0240) vr=SQ, vm=1, type=3
104 std::string getFractionStatusSummarySequenceTag() const { return std::string("(3008,0240)"); }
106
107
108 private:
109
110 DCMTree::TreePtr _dcmItem;
111
112 };
113
115
117 DcmDRTFractionGroupSummarySequenceInterface(std::vector<DcmDRTFractionGroupSummarySequenceInterface::Item> dcmSequence) : _itemVec(dcmSequence) {}
118
125
128 // CumulativeDoseToDoseReference (3008,0052) vr=DS, vm=1, type=1C
129 bool getCumulativeDoseToDoseReference(unsigned long idx, std::string& parameter) const;
130 bool getCumulativeDoseToDoseReference(DCMTree::TreePtr item, std::string& parameter) const;
131 std::string getCumulativeDoseToDoseReferenceTag() const { return "(3008,0052)"; }
132 bool setCumulativeDoseToDoseReference(unsigned long idx, std::string parameter);
133
134 // DoseReferenceDescription (300a,0016) vr=LO, vm=1, type=3
135 bool getDoseReferenceDescription(unsigned long idx, std::string& parameter) const;
136 bool getDoseReferenceDescription(DCMTree::TreePtr item, std::string& parameter) const;
137 std::string getDoseReferenceDescriptionTag() const { return "(300a,0016)"; }
138 bool setDoseReferenceDescription(unsigned long idx, std::string parameter);
139
140 // FractionGroupType (3008,0224) vr=CS, vm=1, type=2C
141 bool getFractionGroupType(unsigned long idx, std::string& parameter) const;
142 bool getFractionGroupType(DCMTree::TreePtr item, std::string& parameter) const;
143 std::string getFractionGroupTypeTag() const { return "(3008,0224)"; }
144 bool setFractionGroupType(unsigned long idx, std::string parameter);
145
146 // NumberOfFractionsDelivered (3008,005a) vr=IS, vm=1, type=2C
147 bool getNumberOfFractionsDelivered(unsigned long idx, std::string& parameter) const;
148 bool getNumberOfFractionsDelivered(DCMTree::TreePtr item, std::string& parameter) const;
149 std::string getNumberOfFractionsDeliveredTag() const { return "(3008,005a)"; }
150 bool setNumberOfFractionsDelivered(unsigned long idx, std::string parameter);
151
152 // NumberOfFractionsPlanned (300a,0078) vr=IS, vm=1, type=2C
153 bool getNumberOfFractionsPlanned(unsigned long idx, std::string& parameter) const;
154 bool getNumberOfFractionsPlanned(DCMTree::TreePtr item, std::string& parameter) const;
155 std::string getNumberOfFractionsPlannedTag() const { return "(300a,0078)"; }
156 bool setNumberOfFractionsPlanned(unsigned long idx, std::string parameter);
157
158 // ReferencedDoseReferenceNumber (300c,0051) vr=IS, vm=1, type=3
159 bool getReferencedDoseReferenceNumber(unsigned long idx, std::string& parameter) const;
160 bool getReferencedDoseReferenceNumber(DCMTree::TreePtr item, std::string& parameter) const;
161 std::string getReferencedDoseReferenceNumberTag() const { return "(300c,0051)"; }
162 bool setReferencedDoseReferenceNumber(unsigned long idx, std::string parameter);
163
164 // ReferencedFractionGroupNumber (300c,0022) vr=IS, vm=1, type=3
165 bool getReferencedFractionGroupNumber(unsigned long idx, std::string& parameter) const;
166 bool getReferencedFractionGroupNumber(DCMTree::TreePtr item, std::string& parameter) const;
167 std::string getReferencedFractionGroupNumberTag() const { return "(300c,0022)"; }
168 bool setReferencedFractionGroupNumber(unsigned long idx, std::string parameter);
169
170 // FractionStatusSummarySequence (3008,0240) vr=SQ, vm=1, type=3
172 std::string getFractionStatusSummarySequenceTag() const { return std::string("(3008,0240)"); }
174
175
178 void setSequence(std::vector<DcmDRTFractionGroupSummarySequenceInterface::Item> dcmSequence) {
179 _itemVec = dcmSequence;
180 }
181
184 std::vector<DcmDRTFractionGroupSummarySequenceInterface::Item> getSequence() const {
185 return _itemVec;
186 }
187
190 bool hasSequence() const {
191 return (_itemVec.size() != 0);
192 }
193
197 return static_cast<MLint>(_itemVec.size());
198 }
199
203 if (_itemVec.size() > idx) {
204 return _itemVec[idx];
205 }
207 }
208
213 return _itemVec[_itemVec.size()-1];
214 }
215
219
222 bool insertItem(const size_t idx) {
223 if (_itemVec.size() > idx) {
224 std::vector<DcmDRTFractionGroupSummarySequenceInterface::Item>::iterator it = _itemVec.begin();
225 std::advance(it, idx);
227 return true;
228 }
229 return false;
230 }
231
234 bool removeItem(const size_t idx) {
235 if ( _itemVec.size() > idx ) {
236 std::vector<DcmDRTFractionGroupSummarySequenceInterface::Item>::iterator it = _itemVec.begin();
237 std::advance(it, idx);
238 _itemVec.erase(it);
239 return true;
240 }
241 return false;
242 }
243
244 protected:
246 std::vector<DcmDRTFractionGroupSummarySequenceInterface::Item> _itemVec;
247};
248
250
251#endif // __mlDcmDRTFractionGroupSummarySequenceInterface_H
252
253/* MeVis-Hidden-Components-Start */
254/* MeVis-Hidden-Components-End */
#define MLDCMTKACCESSORIES_EXPORT
bool setReferencedDoseReferenceNumber(std::string parameter)
bool setNumberOfFractionsPlanned(std::string parameter)
DcmDRTFractionStatusSummarySequenceInterface getFractionStatusSummarySequence() const
bool setCumulativeDoseToDoseReference(std::string parameter)
bool getNumberOfFractionsPlanned(std::string &parameter) const
bool getReferencedFractionGroupNumber(std::string &parameter) const
bool getCumulativeDoseToDoseReference(std::string &parameter) const
bool setReferencedFractionGroupNumber(std::string parameter)
bool getFractionGroupType(std::string &parameter) const
bool getNumberOfFractionsDelivered(std::string &parameter) const
void setFractionStatusSummarySequence(DcmDRTFractionStatusSummarySequenceInterface seq)
bool getDoseReferenceDescription(std::string &parameter) const
bool getReferencedDoseReferenceNumber(std::string &parameter) const
bool setDoseReferenceDescription(std::string parameter)
bool setNumberOfFractionsDelivered(std::string parameter)
Class to provide access to DRTFractionGroupSummarySequence.
bool getFractionGroupType(DCMTree::TreePtr item, std::string &parameter) const
bool getDoseReferenceDescription(unsigned long idx, std::string &parameter) const
DcmDRTFractionGroupSummarySequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
DcmDRTFractionGroupSummarySequenceInterface(std::vector< DcmDRTFractionGroupSummarySequenceInterface::Item > dcmSequence)
Default Constructor.
DcmDRTFractionGroupSummarySequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool getNumberOfFractionsDelivered(DCMTree::TreePtr item, std::string &parameter) const
bool getFractionGroupType(unsigned long idx, std::string &parameter) const
bool getCumulativeDoseToDoseReference(unsigned long idx, std::string &parameter) const
bool getReferencedDoseReferenceNumber(DCMTree::TreePtr item, std::string &parameter) const
bool getNumberOfFractionsPlanned(DCMTree::TreePtr item, std::string &parameter) const
void addItem(DcmDRTFractionGroupSummarySequenceInterface::Item newItem)
bool getNumberOfFractionsDelivered(unsigned long idx, std::string &parameter) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getReferencedFractionGroupNumber(DCMTree::TreePtr item, std::string &parameter) const
bool getCumulativeDoseToDoseReference(DCMTree::TreePtr item, std::string &parameter) const
bool getNumberOfFractionsPlanned(unsigned long idx, std::string &parameter) const
bool getReferencedDoseReferenceNumber(unsigned long idx, std::string &parameter) const
void setFractionStatusSummarySequence(DcmDRTFractionStatusSummarySequenceInterface seq, unsigned long idx)
bool setCumulativeDoseToDoseReference(unsigned long idx, std::string parameter)
bool setNumberOfFractionsDelivered(unsigned long idx, std::string parameter)
bool setFractionGroupType(unsigned long idx, std::string parameter)
bool hasSequence() const
Check if the DRTFractionGroupSummarySequence is set.
void setSequence(std::vector< DcmDRTFractionGroupSummarySequenceInterface::Item > dcmSequence)
Set the DRTFractionGroupSummarySequence this interface class provides access to.
bool setNumberOfFractionsPlanned(unsigned long idx, std::string parameter)
bool setDoseReferenceDescription(unsigned long idx, std::string parameter)
std::vector< DcmDRTFractionGroupSummarySequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
std::vector< DcmDRTFractionGroupSummarySequenceInterface::Item > getSequence() const
Return the DRTFractionGroupSummarySequence this interface class provides access to.
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
DcmDRTFractionStatusSummarySequenceInterface getFractionStatusSummarySequence(unsigned long idx) const
bool setReferencedDoseReferenceNumber(unsigned long idx, std::string parameter)
bool getReferencedFractionGroupNumber(unsigned long idx, std::string &parameter) const
bool getDoseReferenceDescription(DCMTree::TreePtr item, std::string &parameter) const
bool setReferencedFractionGroupNumber(unsigned long idx, std::string parameter)
Class to provide access to DRTFractionStatusSummarySequence.
Class to provide access to DRTFractionStatusSummarySequence.
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