23#ifndef __mlDcmDRTShieldingDeviceSequenceInterface_H
24#define __mlDcmDRTShieldingDeviceSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
151 std::vector<DcmDRTShieldingDeviceSequenceInterface::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<DcmDRTShieldingDeviceSequenceInterface::Item>::iterator
it = _itemVec.begin();
192 std::advance(
it,
idx);
202 if ( _itemVec.size() >
idx ) {
203 std::vector<DcmDRTShieldingDeviceSequenceInterface::Item>::iterator
it = _itemVec.begin();
204 std::advance(
it,
idx);
213 std::vector<DcmDRTShieldingDeviceSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getAccessoryCodeTag() const
bool getShieldingDeviceType(std::string ¶meter) const
bool getShieldingDeviceLabel(std::string ¶meter) const
bool getAccessoryCode(std::string ¶meter) const
std::string getShieldingDevicePositionTag() const
bool setShieldingDeviceDescription(std::string parameter)
Item(const Item ©DcmItem)
std::string getShieldingDeviceLabelTag() const
DCMTree::TreePtr getTreePtr() const
Item & operator=(const Item ©DcmItem)
bool getShieldingDevicePosition(std::string ¶meter) const
std::string getShieldingDeviceDescriptionTag() const
bool setShieldingDeviceType(std::string parameter)
bool setShieldingDeviceLabel(std::string parameter)
bool setShieldingDevicePosition(std::string parameter)
bool setAccessoryCode(std::string parameter)
std::string getShieldingDeviceTypeTag() const
Item(DCMTree::TreePtr dcmItem)
bool getShieldingDeviceDescription(std::string ¶meter) const
Class to provide access to DRTShieldingDeviceSequence.
void addItem(DcmDRTShieldingDeviceSequenceInterface::Item newItem)
std::vector< DcmDRTShieldingDeviceSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getShieldingDeviceDescription(unsigned long idx, std::string ¶meter) const
bool setShieldingDevicePosition(unsigned long idx, std::string parameter)
DcmDRTShieldingDeviceSequenceInterface()
bool getAccessoryCode(unsigned long idx, std::string ¶meter) const
bool getShieldingDeviceDescription(DCMTree::TreePtr item, std::string ¶meter) const
bool getShieldingDeviceLabel(unsigned long idx, std::string ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool getShieldingDeviceType(unsigned long idx, std::string ¶meter) const
bool setShieldingDeviceDescription(unsigned long idx, std::string parameter)
std::vector< DcmDRTShieldingDeviceSequenceInterface::Item > getSequence() const
Return the DRTShieldingDeviceSequence this interface class provides access to.
bool insertItem(const size_t idx)
Insert an item at the indicated position.
std::string getShieldingDeviceTypeTag() const
std::string getAccessoryCodeTag() const
std::string getShieldingDeviceDescriptionTag() const
bool setShieldingDeviceLabel(unsigned long idx, std::string parameter)
DcmDRTShieldingDeviceSequenceInterface(std::vector< DcmDRTShieldingDeviceSequenceInterface::Item > dcmSequence)
Default Constructor.
bool getShieldingDevicePosition(DCMTree::TreePtr item, std::string ¶meter) const
bool getShieldingDeviceLabel(DCMTree::TreePtr item, std::string ¶meter) const
bool setShieldingDeviceType(unsigned long idx, std::string parameter)
bool setAccessoryCode(unsigned long idx, std::string parameter)
std::string getShieldingDeviceLabelTag() const
bool getShieldingDevicePosition(unsigned long idx, std::string ¶meter) const
void setSequence(std::vector< DcmDRTShieldingDeviceSequenceInterface::Item > dcmSequence)
Set the DRTShieldingDeviceSequence this interface class provides access to.
DcmDRTShieldingDeviceSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
DcmDRTShieldingDeviceSequenceInterface::Item & addItem()
Adds a new item to the sequence.
DcmDRTShieldingDeviceSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool hasSequence() const
Check if the DRTShieldingDeviceSequence is set.
virtual ~DcmDRTShieldingDeviceSequenceInterface()
Default virtual Destructor.
std::string getShieldingDevicePositionTag() const
bool getShieldingDeviceType(DCMTree::TreePtr item, std::string ¶meter) const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool getAccessoryCode(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