23#ifndef __mlDcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface_H
24#define __mlDcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
112 void setSequence(std::vector<DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface::Item>
dcmSequence) {
118 std::vector<DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface::Item>
getSequence()
const {
125 return (_itemVec.size() != 0);
131 return static_cast<MLint>(_itemVec.size());
137 if (_itemVec.size() >
idx) {
138 return _itemVec[
idx];
147 return _itemVec[_itemVec.size()-1];
157 if (_itemVec.size() >
idx) {
158 std::vector<DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface::Item>::iterator
it = _itemVec.begin();
159 std::advance(
it,
idx);
169 if ( _itemVec.size() >
idx ) {
170 std::vector<DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface::Item>::iterator
it = _itemVec.begin();
171 std::advance(
it,
idx);
180 std::vector<DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool getReferencedSOPClassUID(std::string ¶meter) const
bool setReferencedSOPClassUID(std::string parameter)
Item(const Item ©DcmItem)
std::string getReferencedSOPInstanceUIDTag() const
DCMTree::TreePtr getTreePtr() const
std::string getReferencedSOPClassUIDTag() const
Item(DCMTree::TreePtr dcmItem)
bool setReferencedSOPInstanceUID(std::string parameter)
Item & operator=(const Item ©DcmItem)
bool getReferencedSOPInstanceUID(std::string ¶meter) const
Class to provide access to DRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModule.
bool getReferencedSOPClassUID(DCMTree::TreePtr item, std::string ¶meter) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
std::vector< DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
std::string getReferencedSOPInstanceUIDTag() const
bool setReferencedSOPClassUID(unsigned long idx, std::string parameter)
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface::Item & addItem()
Adds a new item to the sequence.
DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface(DCMTree::TreePtrVector treePtrSeq)
DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface(std::vector< DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface::Item > dcmSequence)
Default Constructor.
std::string getReferencedSOPClassUIDTag() const
void addItem(DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface::Item newItem)
bool getReferencedSOPInstanceUID(unsigned long idx, std::string ¶meter) const
bool hasSequence() const
Check if the DRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModule is set.
virtual ~DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface()
Default virtual Destructor.
bool getReferencedSOPInstanceUID(DCMTree::TreePtr item, std::string ¶meter) const
void setSequence(std::vector< DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface::Item > dcmSequence)
Set the DRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModule this interface class pro...
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool setReferencedSOPInstanceUID(unsigned long idx, std::string parameter)
bool getReferencedSOPClassUID(unsigned long idx, std::string ¶meter) const
DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
std::vector< DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface::Item > getSequence() const
Return the DRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModule this interface class ...
DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface()
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