23#ifndef __mlDcmDRTBrachyAccessoryDeviceSequenceInterface_H
24#define __mlDcmDRTBrachyAccessoryDeviceSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
184 std::vector<DcmDRTBrachyAccessoryDeviceSequenceInterface::Item>
getSequence()
const {
191 return (_itemVec.size() != 0);
197 return static_cast<MLint>(_itemVec.size());
203 if (_itemVec.size() >
idx) {
204 return _itemVec[
idx];
213 return _itemVec[_itemVec.size()-1];
223 if (_itemVec.size() >
idx) {
224 std::vector<DcmDRTBrachyAccessoryDeviceSequenceInterface::Item>::iterator
it = _itemVec.begin();
225 std::advance(
it,
idx);
235 if ( _itemVec.size() >
idx ) {
236 std::vector<DcmDRTBrachyAccessoryDeviceSequenceInterface::Item>::iterator
it = _itemVec.begin();
237 std::advance(
it,
idx);
246 std::vector<DcmDRTBrachyAccessoryDeviceSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getMaterialIDTag() const
bool setMaterialID(std::string parameter)
bool setBrachyAccessoryDeviceName(std::string parameter)
std::string getBrachyAccessoryDeviceNominalTransmissionTag() const
bool getBrachyAccessoryDeviceID(std::string ¶meter) const
Item(const Item ©DcmItem)
bool getBrachyAccessoryDeviceName(std::string ¶meter) const
std::string getBrachyAccessoryDeviceNominalThicknessTag() const
std::string getBrachyAccessoryDeviceTypeTag() const
std::string getBrachyAccessoryDeviceIDTag() const
std::string getBrachyAccessoryDeviceNumberTag() const
bool setBrachyAccessoryDeviceNominalThickness(std::string parameter)
bool getReferencedROINumber(std::string ¶meter) const
bool getBrachyAccessoryDeviceNominalTransmission(std::string ¶meter) const
bool setReferencedROINumber(std::string parameter)
bool setBrachyAccessoryDeviceID(std::string parameter)
bool setBrachyAccessoryDeviceNumber(std::string parameter)
DCMTree::TreePtr getTreePtr() const
Item & operator=(const Item ©DcmItem)
Item(DCMTree::TreePtr dcmItem)
std::string getReferencedROINumberTag() const
bool setBrachyAccessoryDeviceNominalTransmission(std::string parameter)
bool getBrachyAccessoryDeviceNominalThickness(std::string ¶meter) const
bool setBrachyAccessoryDeviceType(std::string parameter)
std::string getBrachyAccessoryDeviceNameTag() const
bool getBrachyAccessoryDeviceNumber(std::string ¶meter) const
bool getMaterialID(std::string ¶meter) const
bool getBrachyAccessoryDeviceType(std::string ¶meter) const
Class to provide access to DRTBrachyAccessoryDeviceSequence.
bool getBrachyAccessoryDeviceNumber(unsigned long idx, std::string ¶meter) const
bool getBrachyAccessoryDeviceNominalTransmission(unsigned long idx, std::string ¶meter) const
DcmDRTBrachyAccessoryDeviceSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
std::string getBrachyAccessoryDeviceNominalThicknessTag() const
std::string getBrachyAccessoryDeviceNominalTransmissionTag() const
DcmDRTBrachyAccessoryDeviceSequenceInterface(std::vector< DcmDRTBrachyAccessoryDeviceSequenceInterface::Item > dcmSequence)
Default Constructor.
bool getBrachyAccessoryDeviceID(unsigned long idx, std::string ¶meter) const
virtual ~DcmDRTBrachyAccessoryDeviceSequenceInterface()
Default virtual Destructor.
bool setBrachyAccessoryDeviceName(unsigned long idx, std::string parameter)
bool getMaterialID(DCMTree::TreePtr item, std::string ¶meter) const
std::vector< DcmDRTBrachyAccessoryDeviceSequenceInterface::Item > getSequence() const
Return the DRTBrachyAccessoryDeviceSequence this interface class provides access to.
bool getBrachyAccessoryDeviceID(DCMTree::TreePtr item, std::string ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
void addItem(DcmDRTBrachyAccessoryDeviceSequenceInterface::Item newItem)
DcmDRTBrachyAccessoryDeviceSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool setBrachyAccessoryDeviceType(unsigned long idx, std::string parameter)
bool setBrachyAccessoryDeviceNumber(unsigned long idx, std::string parameter)
bool getBrachyAccessoryDeviceType(DCMTree::TreePtr item, std::string ¶meter) const
std::string getBrachyAccessoryDeviceNameTag() const
bool getMaterialID(unsigned long idx, std::string ¶meter) const
DcmDRTBrachyAccessoryDeviceSequenceInterface()
bool setReferencedROINumber(unsigned long idx, std::string parameter)
bool getBrachyAccessoryDeviceNominalThickness(DCMTree::TreePtr item, std::string ¶meter) const
std::string getReferencedROINumberTag() const
std::vector< DcmDRTBrachyAccessoryDeviceSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
std::string getBrachyAccessoryDeviceTypeTag() const
bool setBrachyAccessoryDeviceNominalTransmission(unsigned long idx, std::string parameter)
std::string getMaterialIDTag() const
bool setBrachyAccessoryDeviceID(unsigned long idx, std::string parameter)
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool hasSequence() const
Check if the DRTBrachyAccessoryDeviceSequence is set.
bool getReferencedROINumber(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTBrachyAccessoryDeviceSequenceInterface::Item & addItem()
Adds a new item to the sequence.
void setSequence(std::vector< DcmDRTBrachyAccessoryDeviceSequenceInterface::Item > dcmSequence)
Set the DRTBrachyAccessoryDeviceSequence this interface class provides access to.
bool setBrachyAccessoryDeviceNominalThickness(unsigned long idx, std::string parameter)
bool setMaterialID(unsigned long idx, std::string parameter)
bool getBrachyAccessoryDeviceName(DCMTree::TreePtr item, std::string ¶meter) const
bool getReferencedROINumber(unsigned long idx, std::string ¶meter) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
std::string getBrachyAccessoryDeviceIDTag() const
bool getBrachyAccessoryDeviceType(unsigned long idx, std::string ¶meter) const
bool getBrachyAccessoryDeviceNominalTransmission(DCMTree::TreePtr item, std::string ¶meter) const
bool getBrachyAccessoryDeviceName(unsigned long idx, std::string ¶meter) const
std::string getBrachyAccessoryDeviceNumberTag() const
bool getBrachyAccessoryDeviceNominalThickness(unsigned long idx, std::string ¶meter) const
bool getBrachyAccessoryDeviceNumber(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