23#ifndef __mlDcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface_H
24#define __mlDcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
112 void setSequence(std::vector<DcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface::Item>
dcmSequence) {
118 std::vector<DcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface::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<DcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface::Item>::iterator
it = _itemVec.begin();
159 std::advance(
it,
idx);
169 if ( _itemVec.size() >
idx ) {
170 std::vector<DcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface::Item>::iterator
it = _itemVec.begin();
171 std::advance(
it,
idx);
180 std::vector<DcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool getReferencedRangeShifterNumber(std::string ¶meter) const
std::string getReferencedRangeShifterNumberTag() const
Item & operator=(const Item ©DcmItem)
bool setRangeShifterSetting(std::string parameter)
Item(const Item ©DcmItem)
bool getRangeShifterSetting(std::string ¶meter) const
std::string getRangeShifterSettingTag() const
Item(DCMTree::TreePtr dcmItem)
DCMTree::TreePtr getTreePtr() const
bool setReferencedRangeShifterNumber(std::string parameter)
Class to provide access to DRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModule.
void addItem(DcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface::Item newItem)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
std::vector< DcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
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.
DcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface::Item & addItem()
Adds a new item to the sequence.
bool getReferencedRangeShifterNumber(unsigned long idx, std::string ¶meter) const
bool getReferencedRangeShifterNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getRangeShifterSetting(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface(std::vector< DcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface::Item > dcmSequence)
Default Constructor.
std::string getReferencedRangeShifterNumberTag() const
bool getRangeShifterSetting(unsigned long idx, std::string ¶meter) const
DcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface()
bool setReferencedRangeShifterNumber(unsigned long idx, std::string parameter)
std::string getRangeShifterSettingTag() const
DcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface(DCMTree::TreePtrVector treePtrSeq)
bool setRangeShifterSetting(unsigned long idx, std::string parameter)
std::vector< DcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface::Item > getSequence() const
Return the DRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModule this interface class provid...
DcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool hasSequence() const
Check if the DRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModule is set.
virtual ~DcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface()
Default virtual Destructor.
void setSequence(std::vector< DcmDRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModuleInterface::Item > dcmSequence)
Set the DRTRangeShifterSettingsSequenceInRTIonBeamsSessionRecordModule this interface class provides ...
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