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