23#ifndef __mlDcmDRTChannelShieldSequenceInterface_H
24#define __mlDcmDRTChannelShieldSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
173 std::vector<DcmDRTChannelShieldSequenceInterface::Item>
getSequence()
const {
180 return (_itemVec.size() != 0);
186 return static_cast<MLint>(_itemVec.size());
192 if (_itemVec.size() >
idx) {
193 return _itemVec[
idx];
202 return _itemVec[_itemVec.size()-1];
212 if (_itemVec.size() >
idx) {
213 std::vector<DcmDRTChannelShieldSequenceInterface::Item>::iterator
it = _itemVec.begin();
214 std::advance(
it,
idx);
224 if ( _itemVec.size() >
idx ) {
225 std::vector<DcmDRTChannelShieldSequenceInterface::Item>::iterator
it = _itemVec.begin();
226 std::advance(
it,
idx);
235 std::vector<DcmDRTChannelShieldSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getMaterialIDTag() const
std::string getChannelShieldNameTag() const
bool setChannelShieldName(std::string parameter)
Item(const Item ©DcmItem)
bool setMaterialID(std::string parameter)
std::string getReferencedROINumberTag() const
std::string getChannelShieldNominalTransmissionTag() const
bool getReferencedROINumber(std::string ¶meter) const
bool setChannelShieldNominalThickness(std::string parameter)
bool setReferencedROINumber(std::string parameter)
std::string getChannelShieldNumberTag() const
DCMTree::TreePtr getTreePtr() const
bool getChannelShieldID(std::string ¶meter) const
bool getChannelShieldName(std::string ¶meter) const
bool setChannelShieldID(std::string parameter)
bool getMaterialID(std::string ¶meter) const
std::string getChannelShieldNominalThicknessTag() const
std::string getChannelShieldIDTag() const
bool setChannelShieldNumber(std::string parameter)
bool getChannelShieldNominalThickness(std::string ¶meter) const
bool getChannelShieldNominalTransmission(std::string ¶meter) const
Item & operator=(const Item ©DcmItem)
bool setChannelShieldNominalTransmission(std::string parameter)
bool getChannelShieldNumber(std::string ¶meter) const
Item(DCMTree::TreePtr dcmItem)
Class to provide access to DRTChannelShieldSequence.
bool getChannelShieldName(unsigned long idx, std::string ¶meter) const
void setSequence(std::vector< DcmDRTChannelShieldSequenceInterface::Item > dcmSequence)
Set the DRTChannelShieldSequence this interface class provides access to.
bool getChannelShieldID(unsigned long idx, std::string ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool setChannelShieldNominalThickness(unsigned long idx, std::string parameter)
bool hasSequence() const
Check if the DRTChannelShieldSequence is set.
bool getReferencedROINumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getChannelShieldNumber(unsigned long idx, std::string ¶meter) const
std::string getChannelShieldNominalThicknessTag() const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getChannelShieldNumber(DCMTree::TreePtr item, std::string ¶meter) const
std::string getChannelShieldNominalTransmissionTag() const
DcmDRTChannelShieldSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
void addItem(DcmDRTChannelShieldSequenceInterface::Item newItem)
std::vector< DcmDRTChannelShieldSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool setChannelShieldNominalTransmission(unsigned long idx, std::string parameter)
bool getMaterialID(DCMTree::TreePtr item, std::string ¶meter) const
bool getReferencedROINumber(unsigned long idx, std::string ¶meter) const
std::string getReferencedROINumberTag() const
std::string getChannelShieldNameTag() const
std::string getChannelShieldNumberTag() const
virtual ~DcmDRTChannelShieldSequenceInterface()
Default virtual Destructor.
std::string getMaterialIDTag() const
DcmDRTChannelShieldSequenceInterface(std::vector< DcmDRTChannelShieldSequenceInterface::Item > dcmSequence)
Default Constructor.
DcmDRTChannelShieldSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool getChannelShieldID(DCMTree::TreePtr item, std::string ¶meter) const
bool setMaterialID(unsigned long idx, std::string parameter)
bool setChannelShieldName(unsigned long idx, std::string parameter)
bool getChannelShieldName(DCMTree::TreePtr item, std::string ¶meter) const
std::vector< DcmDRTChannelShieldSequenceInterface::Item > getSequence() const
Return the DRTChannelShieldSequence this interface class provides access to.
bool getChannelShieldNominalTransmission(unsigned long idx, std::string ¶meter) const
bool getMaterialID(unsigned long idx, std::string ¶meter) const
DcmDRTChannelShieldSequenceInterface()
std::string getChannelShieldIDTag() const
bool setChannelShieldID(unsigned long idx, std::string parameter)
bool setReferencedROINumber(unsigned long idx, std::string parameter)
DcmDRTChannelShieldSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool setChannelShieldNumber(unsigned long idx, std::string parameter)
bool getChannelShieldNominalThickness(DCMTree::TreePtr item, std::string ¶meter) const
bool getChannelShieldNominalThickness(unsigned long idx, std::string ¶meter) const
bool getChannelShieldNominalTransmission(DCMTree::TreePtr item, std::string ¶meter) const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
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