23#ifndef __mlDcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface_H
24#define __mlDcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
134 void setSequence(std::vector<DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item>
dcmSequence) {
140 std::vector<DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::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<DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item>::iterator
it = _itemVec.begin();
181 std::advance(
it,
idx);
191 if ( _itemVec.size() >
idx ) {
192 std::vector<DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item>::iterator
it = _itemVec.begin();
193 std::advance(
it,
idx);
202 std::vector<DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getIsocenterToLateralSpreadingDeviceDistanceTag() const
bool getLateralSpreadingDeviceSetting(std::string ¶meter) const
Item(const Item ©DcmItem)
Item(DCMTree::TreePtr dcmItem)
Item & operator=(const Item ©DcmItem)
std::string getLateralSpreadingDeviceSettingTag() const
bool getReferencedLateralSpreadingDeviceNumber(std::string ¶meter) const
bool setLateralSpreadingDeviceSetting(std::string parameter)
std::string getLateralSpreadingDeviceWaterEquivalentThicknessTag() const
bool setIsocenterToLateralSpreadingDeviceDistance(float parameter)
std::string getReferencedLateralSpreadingDeviceNumberTag() const
DCMTree::TreePtr getTreePtr() const
bool setReferencedLateralSpreadingDeviceNumber(std::string parameter)
bool setLateralSpreadingDeviceWaterEquivalentThickness(float parameter)
bool getLateralSpreadingDeviceWaterEquivalentThickness(float ¶meter) const
bool getIsocenterToLateralSpreadingDeviceDistance(float ¶meter) const
Class to provide access to DRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModule.
std::string getReferencedLateralSpreadingDeviceNumberTag() const
bool hasSequence() const
Check if the DRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModule is set.
void addItem(DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item newItem)
bool getReferencedLateralSpreadingDeviceNumber(unsigned long idx, std::string ¶meter) const
bool setLateralSpreadingDeviceSetting(unsigned long idx, std::string parameter)
std::string getLateralSpreadingDeviceWaterEquivalentThicknessTag() const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool getLateralSpreadingDeviceWaterEquivalentThickness(unsigned long idx, float ¶meter) const
DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface(std::vector< DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item > dcmSequence)
Default Constructor.
bool setLateralSpreadingDeviceWaterEquivalentThickness(unsigned long idx, float parameter)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getIsocenterToLateralSpreadingDeviceDistance(unsigned long idx, float ¶meter) const
virtual ~DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface()
Default virtual Destructor.
DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface(DCMTree::TreePtrVector treePtrSeq)
std::vector< DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item > getSequence() const
Return the DRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModule this interface class provides ...
bool getReferencedLateralSpreadingDeviceNumber(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface()
void setSequence(std::vector< DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item > dcmSequence)
Set the DRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModule this interface class provides acc...
DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool setIsocenterToLateralSpreadingDeviceDistance(unsigned long idx, float parameter)
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
std::vector< DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getLateralSpreadingDeviceSetting(unsigned long idx, std::string ¶meter) const
std::string getLateralSpreadingDeviceSettingTag() const
bool setReferencedLateralSpreadingDeviceNumber(unsigned long idx, std::string parameter)
bool getIsocenterToLateralSpreadingDeviceDistance(DCMTree::TreePtr item, float ¶meter) const
bool getLateralSpreadingDeviceSetting(DCMTree::TreePtr item, std::string ¶meter) const
bool getLateralSpreadingDeviceWaterEquivalentThickness(DCMTree::TreePtr item, float ¶meter) const
std::string getIsocenterToLateralSpreadingDeviceDistanceTag() const
DcmDRTLateralSpreadingDeviceSettingsSequenceInRTIonBeamsModuleInterface::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