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