23#ifndef __mlDcmDRTRangeShifterSequenceInterface_H
24#define __mlDcmDRTRangeShifterSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
151 std::vector<DcmDRTRangeShifterSequenceInterface::Item>
getSequence()
const {
158 return (_itemVec.size() != 0);
164 return static_cast<MLint>(_itemVec.size());
170 if (_itemVec.size() >
idx) {
171 return _itemVec[
idx];
180 return _itemVec[_itemVec.size()-1];
190 if (_itemVec.size() >
idx) {
191 std::vector<DcmDRTRangeShifterSequenceInterface::Item>::iterator
it = _itemVec.begin();
192 std::advance(
it,
idx);
202 if ( _itemVec.size() >
idx ) {
203 std::vector<DcmDRTRangeShifterSequenceInterface::Item>::iterator
it = _itemVec.begin();
204 std::advance(
it,
idx);
213 std::vector<DcmDRTRangeShifterSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getRangeShifterDescriptionTag() const
bool setRangeShifterNumber(std::string parameter)
bool getRangeShifterID(std::string ¶meter) const
bool getRangeShifterType(std::string ¶meter) const
bool setRangeShifterType(std::string parameter)
bool getAccessoryCode(std::string ¶meter) const
Item(DCMTree::TreePtr dcmItem)
bool getRangeShifterDescription(std::string ¶meter) const
bool setRangeShifterID(std::string parameter)
bool getRangeShifterNumber(std::string ¶meter) const
Item & operator=(const Item ©DcmItem)
std::string getRangeShifterIDTag() const
bool setRangeShifterDescription(std::string parameter)
DCMTree::TreePtr getTreePtr() const
std::string getRangeShifterTypeTag() const
Item(const Item ©DcmItem)
bool setAccessoryCode(std::string parameter)
std::string getRangeShifterNumberTag() const
std::string getAccessoryCodeTag() const
Class to provide access to DRTRangeShifterSequence.
bool getRangeShifterType(DCMTree::TreePtr item, std::string ¶meter) const
bool getRangeShifterDescription(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTRangeShifterSequenceInterface(std::vector< DcmDRTRangeShifterSequenceInterface::Item > dcmSequence)
Default Constructor.
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getRangeShifterNumber(DCMTree::TreePtr item, std::string ¶meter) const
std::string getRangeShifterNumberTag() const
virtual ~DcmDRTRangeShifterSequenceInterface()
Default virtual Destructor.
bool hasSequence() const
Check if the DRTRangeShifterSequence is set.
bool setRangeShifterType(unsigned long idx, std::string parameter)
void addItem(DcmDRTRangeShifterSequenceInterface::Item newItem)
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool getRangeShifterID(unsigned long idx, std::string ¶meter) const
std::string getRangeShifterDescriptionTag() const
void setSequence(std::vector< DcmDRTRangeShifterSequenceInterface::Item > dcmSequence)
Set the DRTRangeShifterSequence this interface class provides access to.
bool setAccessoryCode(unsigned long idx, std::string parameter)
bool setRangeShifterID(unsigned long idx, std::string parameter)
DcmDRTRangeShifterSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool setRangeShifterNumber(unsigned long idx, std::string parameter)
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool getRangeShifterType(unsigned long idx, std::string ¶meter) const
DcmDRTRangeShifterSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getAccessoryCode(DCMTree::TreePtr item, std::string ¶meter) const
std::string getRangeShifterIDTag() const
DcmDRTRangeShifterSequenceInterface()
bool getRangeShifterNumber(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTRangeShifterSequenceInterface::Item > getSequence() const
Return the DRTRangeShifterSequence this interface class provides access to.
bool getRangeShifterDescription(unsigned long idx, std::string ¶meter) const
bool getAccessoryCode(unsigned long idx, std::string ¶meter) const
std::string getRangeShifterTypeTag() const
std::vector< DcmDRTRangeShifterSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
DcmDRTRangeShifterSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
std::string getAccessoryCodeTag() const
bool setRangeShifterDescription(unsigned long idx, std::string parameter)
bool getRangeShifterID(DCMTree::TreePtr item, std::string ¶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