23#ifndef __mlDcmDRTRangeModulatorSequenceInterface_H
24#define __mlDcmDRTRangeModulatorSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
162 std::vector<DcmDRTRangeModulatorSequenceInterface::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<DcmDRTRangeModulatorSequenceInterface::Item>::iterator
it = _itemVec.begin();
203 std::advance(
it,
idx);
213 if ( _itemVec.size() >
idx ) {
214 std::vector<DcmDRTRangeModulatorSequenceInterface::Item>::iterator
it = _itemVec.begin();
215 std::advance(
it,
idx);
224 std::vector<DcmDRTRangeModulatorSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getBeamCurrentModulationIDTag() const
std::string getRangeModulatorTypeTag() const
bool getRangeModulatorDescription(std::string ¶meter) const
bool setBeamCurrentModulationID(std::string parameter)
bool setRangeModulatorID(std::string parameter)
bool setRangeModulatorType(std::string parameter)
bool setRangeModulatorNumber(std::string parameter)
DCMTree::TreePtr getTreePtr() const
std::string getRangeModulatorIDTag() const
Item & operator=(const Item ©DcmItem)
bool getAccessoryCode(std::string ¶meter) const
bool getBeamCurrentModulationID(std::string ¶meter) const
std::string getAccessoryCodeTag() const
Item(DCMTree::TreePtr dcmItem)
std::string getRangeModulatorNumberTag() const
bool setRangeModulatorDescription(std::string parameter)
bool getRangeModulatorType(std::string ¶meter) const
std::string getRangeModulatorDescriptionTag() const
bool getRangeModulatorNumber(std::string ¶meter) const
bool setAccessoryCode(std::string parameter)
bool getRangeModulatorID(std::string ¶meter) const
Item(const Item ©DcmItem)
Class to provide access to DRTRangeModulatorSequence.
bool hasSequence() const
Check if the DRTRangeModulatorSequence is set.
bool insertItem(const size_t idx)
Insert an item at the indicated position.
void addItem(DcmDRTRangeModulatorSequenceInterface::Item newItem)
bool getBeamCurrentModulationID(unsigned long idx, std::string ¶meter) const
bool getAccessoryCode(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTRangeModulatorSequenceInterface::Item > getSequence() const
Return the DRTRangeModulatorSequence this interface class provides access to.
std::string getRangeModulatorNumberTag() const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool getRangeModulatorType(unsigned long idx, std::string ¶meter) const
DcmDRTRangeModulatorSequenceInterface(std::vector< DcmDRTRangeModulatorSequenceInterface::Item > dcmSequence)
Default Constructor.
std::string getAccessoryCodeTag() const
std::string getRangeModulatorIDTag() const
bool setRangeModulatorDescription(unsigned long idx, std::string parameter)
bool getBeamCurrentModulationID(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTRangeModulatorSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
DcmDRTRangeModulatorSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
std::string getRangeModulatorDescriptionTag() const
std::vector< DcmDRTRangeModulatorSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
virtual ~DcmDRTRangeModulatorSequenceInterface()
Default virtual Destructor.
std::string getRangeModulatorTypeTag() const
bool getRangeModulatorNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getRangeModulatorNumber(unsigned long idx, std::string ¶meter) const
bool setBeamCurrentModulationID(unsigned long idx, std::string parameter)
DcmDRTRangeModulatorSequenceInterface::Item & addItem()
Adds a new item to the sequence.
std::string getBeamCurrentModulationIDTag() const
bool getRangeModulatorID(DCMTree::TreePtr item, std::string ¶meter) const
bool setRangeModulatorID(unsigned long idx, std::string parameter)
bool getAccessoryCode(DCMTree::TreePtr item, std::string ¶meter) const
bool getRangeModulatorID(unsigned long idx, std::string ¶meter) const
bool setRangeModulatorType(unsigned long idx, std::string parameter)
bool getRangeModulatorType(DCMTree::TreePtr item, std::string ¶meter) const
bool getRangeModulatorDescription(unsigned long idx, std::string ¶meter) const
bool setAccessoryCode(unsigned long idx, std::string parameter)
DcmDRTRangeModulatorSequenceInterface()
void setSequence(std::vector< DcmDRTRangeModulatorSequenceInterface::Item > dcmSequence)
Set the DRTRangeModulatorSequence this interface class provides access to.
bool getRangeModulatorDescription(DCMTree::TreePtr item, std::string ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool setRangeModulatorNumber(unsigned long idx, std::string parameter)
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