23#ifndef __mlDcmDRTTreatmentSummaryCalculatedDoseReferenceSequenceInterface_H
24#define __mlDcmDRTTreatmentSummaryCalculatedDoseReferenceSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
129 std::vector<DcmDRTTreatmentSummaryCalculatedDoseReferenceSequenceInterface::Item>
getSequence()
const {
136 return (_itemVec.size() != 0);
142 return static_cast<MLint>(_itemVec.size());
148 if (_itemVec.size() >
idx) {
149 return _itemVec[
idx];
158 return _itemVec[_itemVec.size()-1];
168 if (_itemVec.size() >
idx) {
169 std::vector<DcmDRTTreatmentSummaryCalculatedDoseReferenceSequenceInterface::Item>::iterator
it = _itemVec.begin();
170 std::advance(
it,
idx);
180 if ( _itemVec.size() >
idx ) {
181 std::vector<DcmDRTTreatmentSummaryCalculatedDoseReferenceSequenceInterface::Item>::iterator
it = _itemVec.begin();
182 std::advance(
it,
idx);
191 std::vector<DcmDRTTreatmentSummaryCalculatedDoseReferenceSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getCumulativeDoseToDoseReferenceTag() const
bool setReferencedDoseReferenceNumber(std::string parameter)
std::string getReferencedDoseReferenceNumberTag() const
bool getCumulativeDoseToDoseReference(std::string ¶meter) const
bool getReferencedDoseReferenceNumber(std::string ¶meter) const
DCMTree::TreePtr getTreePtr() const
Item & operator=(const Item ©DcmItem)
std::string getDoseReferenceDescriptionTag() const
bool setDoseReferenceDescription(std::string parameter)
bool getDoseReferenceDescription(std::string ¶meter) const
Item(DCMTree::TreePtr dcmItem)
bool setCumulativeDoseToDoseReference(std::string parameter)
Item(const Item ©DcmItem)
Class to provide access to DRTTreatmentSummaryCalculatedDoseReferenceSequence.
DcmDRTTreatmentSummaryCalculatedDoseReferenceSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getDoseReferenceDescription(DCMTree::TreePtr item, std::string ¶meter) const
bool getReferencedDoseReferenceNumber(unsigned long idx, std::string ¶meter) const
virtual ~DcmDRTTreatmentSummaryCalculatedDoseReferenceSequenceInterface()
Default virtual Destructor.
bool getReferencedDoseReferenceNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getDoseReferenceDescription(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTTreatmentSummaryCalculatedDoseReferenceSequenceInterface::Item > getSequence() const
Return the DRTTreatmentSummaryCalculatedDoseReferenceSequence this interface class provides access to...
bool setCumulativeDoseToDoseReference(unsigned long idx, std::string parameter)
bool getCumulativeDoseToDoseReference(DCMTree::TreePtr item, std::string ¶meter) const
void setSequence(std::vector< DcmDRTTreatmentSummaryCalculatedDoseReferenceSequenceInterface::Item > dcmSequence)
Set the DRTTreatmentSummaryCalculatedDoseReferenceSequence this interface class provides access to.
bool getCumulativeDoseToDoseReference(unsigned long idx, std::string ¶meter) const
void addItem(DcmDRTTreatmentSummaryCalculatedDoseReferenceSequenceInterface::Item newItem)
DcmDRTTreatmentSummaryCalculatedDoseReferenceSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool insertItem(const size_t idx)
Insert an item at the indicated position.
DcmDRTTreatmentSummaryCalculatedDoseReferenceSequenceInterface()
std::string getCumulativeDoseToDoseReferenceTag() const
std::vector< DcmDRTTreatmentSummaryCalculatedDoseReferenceSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
DcmDRTTreatmentSummaryCalculatedDoseReferenceSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
std::string getReferencedDoseReferenceNumberTag() const
bool setReferencedDoseReferenceNumber(unsigned long idx, std::string parameter)
bool hasSequence() const
Check if the DRTTreatmentSummaryCalculatedDoseReferenceSequence is set.
DcmDRTTreatmentSummaryCalculatedDoseReferenceSequenceInterface(std::vector< DcmDRTTreatmentSummaryCalculatedDoseReferenceSequenceInterface::Item > dcmSequence)
Default Constructor.
std::string getDoseReferenceDescriptionTag() const
bool setDoseReferenceDescription(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 ...
std::vector< TreePtr > TreePtrVector
a vector of TreePtr - used for sequences
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree