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