23#ifndef __mlDcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface_H
24#define __mlDcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
107 std::vector<DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface::Item>
getSequence()
const {
114 return (_itemVec.size() != 0);
120 return static_cast<MLint>(_itemVec.size());
126 if (_itemVec.size() >
idx) {
127 return _itemVec[
idx];
136 return _itemVec[_itemVec.size()-1];
146 if (_itemVec.size() >
idx) {
147 std::vector<DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface::Item>::iterator
it = _itemVec.begin();
148 std::advance(
it,
idx);
158 if ( _itemVec.size() >
idx ) {
159 std::vector<DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface::Item>::iterator
it = _itemVec.begin();
160 std::advance(
it,
idx);
169 std::vector<DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getReferencedBrachyApplicationSetupNumberTag() const
DCMTree::TreePtr getTreePtr() const
Item(DCMTree::TreePtr dcmItem)
Item(const Item ©DcmItem)
bool getReferencedBrachyApplicationSetupNumber(std::string ¶meter) const
Item & operator=(const Item ©DcmItem)
bool setReferencedBrachyApplicationSetupNumber(std::string parameter)
Class to provide access to DRTReferencedBrachyApplicationSetupSequenceInRTDoseModule.
std::vector< DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface::Item > getSequence() const
Return the DRTReferencedBrachyApplicationSetupSequenceInRTDoseModule this interface class provides ac...
std::vector< DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface()
void addItem(DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface::Item newItem)
bool hasSequence() const
Check if the DRTReferencedBrachyApplicationSetupSequenceInRTDoseModule is set.
DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface(std::vector< DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface::Item > dcmSequence)
Default Constructor.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface::Item & addItem()
Adds a new item to the sequence.
DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface(DCMTree::TreePtrVector treePtrSeq)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool setReferencedBrachyApplicationSetupNumber(unsigned long idx, std::string parameter)
void setSequence(std::vector< DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface::Item > dcmSequence)
Set the DRTReferencedBrachyApplicationSetupSequenceInRTDoseModule this interface class provides acces...
bool getReferencedBrachyApplicationSetupNumber(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
std::string getReferencedBrachyApplicationSetupNumberTag() const
virtual ~DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface()
Default virtual Destructor.
bool getReferencedBrachyApplicationSetupNumber(unsigned long idx, std::string ¶meter) const
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