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