23#ifndef __mlDcmDRTReferencedCalculatedDoseReferenceSequenceInterface_H
24#define __mlDcmDRTReferencedCalculatedDoseReferenceSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
129 std::vector<DcmDRTReferencedCalculatedDoseReferenceSequenceInterface::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<DcmDRTReferencedCalculatedDoseReferenceSequenceInterface::Item>::iterator
it = _itemVec.begin();
170 std::advance(
it,
idx);
180 if ( _itemVec.size() >
idx ) {
181 std::vector<DcmDRTReferencedCalculatedDoseReferenceSequenceInterface::Item>::iterator
it = _itemVec.begin();
182 std::advance(
it,
idx);
191 std::vector<DcmDRTReferencedCalculatedDoseReferenceSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getCalculatedDoseReferenceDoseValueTag() const
std::string getReferencedDoseReferenceNumberTag() const
Item(const Item ©DcmItem)
bool setReferencedCalculatedDoseReferenceNumber(std::string parameter)
bool getReferencedCalculatedDoseReferenceNumber(std::string ¶meter) const
Item & operator=(const Item ©DcmItem)
Item(DCMTree::TreePtr dcmItem)
bool getCalculatedDoseReferenceDoseValue(std::string ¶meter) const
DCMTree::TreePtr getTreePtr() const
std::string getReferencedCalculatedDoseReferenceNumberTag() const
bool getReferencedDoseReferenceNumber(std::string ¶meter) const
bool setCalculatedDoseReferenceDoseValue(std::string parameter)
bool setReferencedDoseReferenceNumber(std::string parameter)
Class to provide access to DRTReferencedCalculatedDoseReferenceSequence.
bool getCalculatedDoseReferenceDoseValue(DCMTree::TreePtr item, std::string ¶meter) const
void addItem(DcmDRTReferencedCalculatedDoseReferenceSequenceInterface::Item newItem)
DcmDRTReferencedCalculatedDoseReferenceSequenceInterface()
std::string getReferencedCalculatedDoseReferenceNumberTag() const
void setSequence(std::vector< DcmDRTReferencedCalculatedDoseReferenceSequenceInterface::Item > dcmSequence)
Set the DRTReferencedCalculatedDoseReferenceSequence this interface class provides access to.
std::vector< DcmDRTReferencedCalculatedDoseReferenceSequenceInterface::Item > getSequence() const
Return the DRTReferencedCalculatedDoseReferenceSequence this interface class provides access to.
bool getReferencedDoseReferenceNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
virtual ~DcmDRTReferencedCalculatedDoseReferenceSequenceInterface()
Default virtual Destructor.
std::string getReferencedDoseReferenceNumberTag() const
DcmDRTReferencedCalculatedDoseReferenceSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool getCalculatedDoseReferenceDoseValue(unsigned long idx, std::string ¶meter) const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
std::string getCalculatedDoseReferenceDoseValueTag() const
bool setReferencedCalculatedDoseReferenceNumber(unsigned long idx, std::string parameter)
bool getReferencedDoseReferenceNumber(unsigned long idx, std::string ¶meter) const
DcmDRTReferencedCalculatedDoseReferenceSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
std::vector< DcmDRTReferencedCalculatedDoseReferenceSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getReferencedCalculatedDoseReferenceNumber(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTReferencedCalculatedDoseReferenceSequenceInterface(std::vector< DcmDRTReferencedCalculatedDoseReferenceSequenceInterface::Item > dcmSequence)
Default Constructor.
bool setCalculatedDoseReferenceDoseValue(unsigned long idx, std::string parameter)
bool getReferencedCalculatedDoseReferenceNumber(unsigned long idx, std::string ¶meter) const
DcmDRTReferencedCalculatedDoseReferenceSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool setReferencedDoseReferenceNumber(unsigned long idx, std::string parameter)
bool hasSequence() const
Check if the DRTReferencedCalculatedDoseReferenceSequence is set.
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