23#ifndef __mlDcmDRTCalculatedDoseReferenceSequenceInterface_H
24#define __mlDcmDRTCalculatedDoseReferenceSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
140 std::vector<DcmDRTCalculatedDoseReferenceSequenceInterface::Item>
getSequence()
const {
147 return (_itemVec.size() != 0);
153 return static_cast<MLint>(_itemVec.size());
159 if (_itemVec.size() >
idx) {
160 return _itemVec[
idx];
169 return _itemVec[_itemVec.size()-1];
179 if (_itemVec.size() >
idx) {
180 std::vector<DcmDRTCalculatedDoseReferenceSequenceInterface::Item>::iterator
it = _itemVec.begin();
181 std::advance(
it,
idx);
191 if ( _itemVec.size() >
idx ) {
192 std::vector<DcmDRTCalculatedDoseReferenceSequenceInterface::Item>::iterator
it = _itemVec.begin();
193 std::advance(
it,
idx);
202 std::vector<DcmDRTCalculatedDoseReferenceSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool getCalculatedDoseReferenceNumber(std::string ¶meter) const
std::string getCalculatedDoseReferenceDescriptionTag() const
bool getCalculatedDoseReferenceDescription(std::string ¶meter) const
bool setReferencedDoseReferenceNumber(std::string parameter)
std::string getCalculatedDoseReferenceNumberTag() const
Item & operator=(const Item ©DcmItem)
bool setCalculatedDoseReferenceDescription(std::string parameter)
bool setCalculatedDoseReferenceDoseValue(std::string parameter)
Item(DCMTree::TreePtr dcmItem)
std::string getReferencedDoseReferenceNumberTag() const
bool setCalculatedDoseReferenceNumber(std::string parameter)
DCMTree::TreePtr getTreePtr() const
std::string getCalculatedDoseReferenceDoseValueTag() const
bool getReferencedDoseReferenceNumber(std::string ¶meter) const
Item(const Item ©DcmItem)
bool getCalculatedDoseReferenceDoseValue(std::string ¶meter) const
Class to provide access to DRTCalculatedDoseReferenceSequence.
DcmDRTCalculatedDoseReferenceSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getCalculatedDoseReferenceDescription(unsigned long idx, std::string ¶meter) const
bool getCalculatedDoseReferenceNumber(unsigned long idx, std::string ¶meter) const
bool hasSequence() const
Check if the DRTCalculatedDoseReferenceSequence is set.
DcmDRTCalculatedDoseReferenceSequenceInterface(std::vector< DcmDRTCalculatedDoseReferenceSequenceInterface::Item > dcmSequence)
Default Constructor.
std::string getReferencedDoseReferenceNumberTag() const
bool getReferencedDoseReferenceNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getReferencedDoseReferenceNumber(unsigned long idx, std::string ¶meter) const
std::string getCalculatedDoseReferenceDoseValueTag() const
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 setReferencedDoseReferenceNumber(unsigned long idx, std::string parameter)
DcmDRTCalculatedDoseReferenceSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool setCalculatedDoseReferenceDescription(unsigned long idx, std::string parameter)
bool setCalculatedDoseReferenceDoseValue(unsigned long idx, std::string parameter)
bool getCalculatedDoseReferenceNumber(DCMTree::TreePtr item, std::string ¶meter) const
std::string getCalculatedDoseReferenceDescriptionTag() const
std::string getCalculatedDoseReferenceNumberTag() const
DcmDRTCalculatedDoseReferenceSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
DcmDRTCalculatedDoseReferenceSequenceInterface()
virtual ~DcmDRTCalculatedDoseReferenceSequenceInterface()
Default virtual Destructor.
bool getCalculatedDoseReferenceDoseValue(unsigned long idx, std::string ¶meter) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
std::vector< DcmDRTCalculatedDoseReferenceSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
void setSequence(std::vector< DcmDRTCalculatedDoseReferenceSequenceInterface::Item > dcmSequence)
Set the DRTCalculatedDoseReferenceSequence this interface class provides access to.
bool getCalculatedDoseReferenceDescription(DCMTree::TreePtr item, std::string ¶meter) const
bool getCalculatedDoseReferenceDoseValue(DCMTree::TreePtr item, std::string ¶meter) const
void addItem(DcmDRTCalculatedDoseReferenceSequenceInterface::Item newItem)
bool setCalculatedDoseReferenceNumber(unsigned long idx, std::string parameter)
std::vector< DcmDRTCalculatedDoseReferenceSequenceInterface::Item > getSequence() const
Return the DRTCalculatedDoseReferenceSequence this interface class provides access to.
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