23#ifndef __mlDcmDRTRangeModulatorSettingsSequenceInRTIonBeamsModuleInterface_H
24#define __mlDcmDRTRangeModulatorSettingsSequenceInRTIonBeamsModuleInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
162 std::vector<DcmDRTRangeModulatorSettingsSequenceInRTIonBeamsModuleInterface::Item>
getSequence()
const {
169 return (_itemVec.size() != 0);
175 return static_cast<MLint>(_itemVec.size());
181 if (_itemVec.size() >
idx) {
182 return _itemVec[
idx];
191 return _itemVec[_itemVec.size()-1];
201 if (_itemVec.size() >
idx) {
202 std::vector<DcmDRTRangeModulatorSettingsSequenceInRTIonBeamsModuleInterface::Item>::iterator
it = _itemVec.begin();
203 std::advance(
it,
idx);
213 if ( _itemVec.size() >
idx ) {
214 std::vector<DcmDRTRangeModulatorSettingsSequenceInRTIonBeamsModuleInterface::Item>::iterator
it = _itemVec.begin();
215 std::advance(
it,
idx);
224 std::vector<DcmDRTRangeModulatorSettingsSequenceInRTIonBeamsModuleInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
DCMTree::TreePtr getTreePtr() const
std::string getReferencedRangeModulatorNumberTag() const
bool setIsocenterToRangeModulatorDistance(float parameter)
Item(DCMTree::TreePtr dcmItem)
std::string getRangeModulatorGatingStartValueTag() const
std::string getIsocenterToRangeModulatorDistanceTag() const
Item(const Item ©DcmItem)
bool setRangeModulatorGatingStartValue(float parameter)
Item & operator=(const Item ©DcmItem)
bool getRangeModulatorGatingStopValue(float ¶meter) const
bool getReferencedRangeModulatorNumber(std::string ¶meter) const
bool setRangeModulatorGatingStopWaterEquivalentThickness(float parameter)
bool setReferencedRangeModulatorNumber(std::string parameter)
bool setRangeModulatorGatingStopValue(float parameter)
std::string getRangeModulatorGatingStartWaterEquivalentThicknessTag() const
std::string getRangeModulatorGatingStopWaterEquivalentThicknessTag() const
bool setRangeModulatorGatingStartWaterEquivalentThickness(float parameter)
bool getRangeModulatorGatingStopWaterEquivalentThickness(float ¶meter) const
bool getIsocenterToRangeModulatorDistance(float ¶meter) const
bool getRangeModulatorGatingStartWaterEquivalentThickness(float ¶meter) const
std::string getRangeModulatorGatingStopValueTag() const
bool getRangeModulatorGatingStartValue(float ¶meter) const
Class to provide access to DRTRangeModulatorSettingsSequenceInRTIonBeamsModule.
std::string getRangeModulatorGatingStopValueTag() const
bool setRangeModulatorGatingStartValue(unsigned long idx, float parameter)
bool getReferencedRangeModulatorNumber(unsigned long idx, std::string ¶meter) const
void setSequence(std::vector< DcmDRTRangeModulatorSettingsSequenceInRTIonBeamsModuleInterface::Item > dcmSequence)
Set the DRTRangeModulatorSettingsSequenceInRTIonBeamsModule this interface class provides access to.
bool getRangeModulatorGatingStopValue(unsigned long idx, float ¶meter) const
std::vector< DcmDRTRangeModulatorSettingsSequenceInRTIonBeamsModuleInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
DcmDRTRangeModulatorSettingsSequenceInRTIonBeamsModuleInterface::Item & addItem()
Adds a new item to the sequence.
bool getRangeModulatorGatingStartValue(unsigned long idx, float ¶meter) const
bool getRangeModulatorGatingStopWaterEquivalentThickness(DCMTree::TreePtr item, float ¶meter) const
std::string getReferencedRangeModulatorNumberTag() const
bool setRangeModulatorGatingStopValue(unsigned long idx, float parameter)
DcmDRTRangeModulatorSettingsSequenceInRTIonBeamsModuleInterface(std::vector< DcmDRTRangeModulatorSettingsSequenceInRTIonBeamsModuleInterface::Item > dcmSequence)
Default Constructor.
virtual ~DcmDRTRangeModulatorSettingsSequenceInRTIonBeamsModuleInterface()
Default virtual Destructor.
bool getReferencedRangeModulatorNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool setRangeModulatorGatingStopWaterEquivalentThickness(unsigned long idx, float parameter)
std::string getRangeModulatorGatingStartValueTag() const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getRangeModulatorGatingStartWaterEquivalentThickness(DCMTree::TreePtr item, float ¶meter) const
DcmDRTRangeModulatorSettingsSequenceInRTIonBeamsModuleInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getIsocenterToRangeModulatorDistance(unsigned long idx, float ¶meter) const
bool getIsocenterToRangeModulatorDistance(DCMTree::TreePtr item, float ¶meter) const
bool setRangeModulatorGatingStartWaterEquivalentThickness(unsigned long idx, float parameter)
bool getRangeModulatorGatingStopValue(DCMTree::TreePtr item, float ¶meter) const
bool getRangeModulatorGatingStopWaterEquivalentThickness(unsigned long idx, float ¶meter) const
std::string getIsocenterToRangeModulatorDistanceTag() const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool hasSequence() const
Check if the DRTRangeModulatorSettingsSequenceInRTIonBeamsModule is set.
std::string getRangeModulatorGatingStartWaterEquivalentThicknessTag() const
std::string getRangeModulatorGatingStopWaterEquivalentThicknessTag() const
bool setIsocenterToRangeModulatorDistance(unsigned long idx, float parameter)
bool getRangeModulatorGatingStartValue(DCMTree::TreePtr item, float ¶meter) const
DcmDRTRangeModulatorSettingsSequenceInRTIonBeamsModuleInterface()
DcmDRTRangeModulatorSettingsSequenceInRTIonBeamsModuleInterface(DCMTree::TreePtrVector treePtrSeq)
void addItem(DcmDRTRangeModulatorSettingsSequenceInRTIonBeamsModuleInterface::Item newItem)
bool setReferencedRangeModulatorNumber(unsigned long idx, std::string parameter)
std::vector< DcmDRTRangeModulatorSettingsSequenceInRTIonBeamsModuleInterface::Item > getSequence() const
Return the DRTRangeModulatorSettingsSequenceInRTIonBeamsModule this interface class provides access t...
bool getRangeModulatorGatingStartWaterEquivalentThickness(unsigned long idx, float ¶meter) const
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