23#ifndef __mlDcmDRTMeasuredDoseReferenceSequenceInterface_H
24#define __mlDcmDRTMeasuredDoseReferenceSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
162 std::vector<DcmDRTMeasuredDoseReferenceSequenceInterface::Item>
getSequence()
const {
169 return (_itemVec.size() != 0);
175 return static_cast<MLint>(_itemVec.size());
181 if (_itemVec.size() >
idx) {
182 return _itemVec[
idx];
191 return _itemVec[_itemVec.size()-1];
201 if (_itemVec.size() >
idx) {
202 std::vector<DcmDRTMeasuredDoseReferenceSequenceInterface::Item>::iterator
it = _itemVec.begin();
203 std::advance(
it,
idx);
213 if ( _itemVec.size() >
idx ) {
214 std::vector<DcmDRTMeasuredDoseReferenceSequenceInterface::Item>::iterator
it = _itemVec.begin();
215 std::advance(
it,
idx);
224 std::vector<DcmDRTMeasuredDoseReferenceSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getMeasuredDoseTypeTag() const
Item(const Item ©DcmItem)
bool setMeasuredDoseValue(std::string parameter)
bool getMeasuredDoseType(std::string ¶meter) const
bool setReferencedDoseReferenceNumber(std::string parameter)
bool getMeasuredDoseDescription(std::string ¶meter) const
std::string getMeasuredDoseReferenceNumberTag() const
bool getReferencedDoseReferenceNumber(std::string ¶meter) const
DCMTree::TreePtr getTreePtr() const
Item(DCMTree::TreePtr dcmItem)
std::string getReferencedDoseReferenceNumberTag() const
bool setDoseUnits(std::string parameter)
bool getMeasuredDoseReferenceNumber(std::string ¶meter) const
bool getMeasuredDoseValue(std::string ¶meter) const
bool setMeasuredDoseReferenceNumber(std::string parameter)
bool getDoseUnits(std::string ¶meter) const
Item & operator=(const Item ©DcmItem)
std::string getMeasuredDoseValueTag() const
bool setMeasuredDoseType(std::string parameter)
bool setMeasuredDoseDescription(std::string parameter)
std::string getMeasuredDoseDescriptionTag() const
std::string getDoseUnitsTag() const
Class to provide access to DRTMeasuredDoseReferenceSequence.
bool setMeasuredDoseDescription(unsigned long idx, std::string parameter)
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getMeasuredDoseType(unsigned long idx, std::string ¶meter) const
bool getMeasuredDoseDescription(unsigned long idx, std::string ¶meter) const
bool getDoseUnits(unsigned long idx, std::string ¶meter) const
DcmDRTMeasuredDoseReferenceSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
void addItem(DcmDRTMeasuredDoseReferenceSequenceInterface::Item newItem)
bool getReferencedDoseReferenceNumber(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTMeasuredDoseReferenceSequenceInterface()
bool setMeasuredDoseReferenceNumber(unsigned long idx, std::string parameter)
DcmDRTMeasuredDoseReferenceSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool setReferencedDoseReferenceNumber(unsigned long idx, std::string parameter)
std::string getMeasuredDoseDescriptionTag() const
DcmDRTMeasuredDoseReferenceSequenceInterface(std::vector< DcmDRTMeasuredDoseReferenceSequenceInterface::Item > dcmSequence)
Default Constructor.
bool hasSequence() const
Check if the DRTMeasuredDoseReferenceSequence is set.
bool getDoseUnits(DCMTree::TreePtr item, std::string ¶meter) const
bool getMeasuredDoseReferenceNumber(DCMTree::TreePtr item, std::string ¶meter) const
std::string getMeasuredDoseTypeTag() const
bool getMeasuredDoseType(DCMTree::TreePtr item, std::string ¶meter) const
void setSequence(std::vector< DcmDRTMeasuredDoseReferenceSequenceInterface::Item > dcmSequence)
Set the DRTMeasuredDoseReferenceSequence this interface class provides access to.
bool getMeasuredDoseDescription(DCMTree::TreePtr item, std::string ¶meter) const
std::vector< DcmDRTMeasuredDoseReferenceSequenceInterface::Item > getSequence() const
Return the DRTMeasuredDoseReferenceSequence this interface class provides access to.
virtual ~DcmDRTMeasuredDoseReferenceSequenceInterface()
Default virtual Destructor.
bool getReferencedDoseReferenceNumber(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTMeasuredDoseReferenceSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
DcmDRTMeasuredDoseReferenceSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool setMeasuredDoseType(unsigned long idx, std::string parameter)
bool setDoseUnits(unsigned long idx, std::string parameter)
std::string getDoseUnitsTag() const
std::string getReferencedDoseReferenceNumberTag() const
bool setMeasuredDoseValue(unsigned long idx, std::string parameter)
std::string getMeasuredDoseValueTag() const
bool getMeasuredDoseValue(DCMTree::TreePtr item, std::string ¶meter) const
bool getMeasuredDoseReferenceNumber(unsigned long idx, std::string ¶meter) const
bool getMeasuredDoseValue(unsigned long idx, std::string ¶meter) const
std::string getMeasuredDoseReferenceNumberTag() 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