23#ifndef __mlDcmDRTContentItemModifierSequenceInterface_H
24#define __mlDcmDRTContentItemModifierSequenceInterface_H
37#ifndef __mlModuleIncludes_H
54 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
66 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
70 bool getDate(std::string& parameter)
const;
95 bool getTime(std::string& parameter)
const;
100 bool getUID(std::string& parameter)
const;
146 bool getDate(
unsigned long idx, std::string& parameter)
const;
176 bool getTime(
unsigned long idx, std::string& parameter)
const;
182 bool getUID(
unsigned long idx, std::string& parameter)
const;
217 std::vector<DcmDRTContentItemModifierSequenceInterface::Item>
getSequence()
const {
224 return (_itemVec.size() != 0);
230 return static_cast<MLint>(_itemVec.size());
236 if (_itemVec.size() >
idx) {
237 return _itemVec[
idx];
246 return _itemVec[_itemVec.size()-1];
256 if (_itemVec.size() >
idx) {
257 std::vector<DcmDRTContentItemModifierSequenceInterface::Item>::iterator
it = _itemVec.begin();
258 std::advance(
it,
idx);
268 if ( _itemVec.size() >
idx ) {
269 std::vector<DcmDRTContentItemModifierSequenceInterface::Item>::iterator
it = _itemVec.begin();
270 std::advance(
it,
idx);
279 std::vector<DcmDRTContentItemModifierSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Class to provide access to DRTConceptCodeSequence.
Class to provide access to DRTConceptNameCodeSequence.
bool setPersonName(std::string parameter)
bool getUID(std::string ¶meter) const
std::string getValueTypeTag() const
std::string getConceptNameCodeSequenceTag() const
void setConceptCodeSequence(DcmDRTConceptCodeSequenceInterface seq)
bool setTime(std::string parameter)
bool setUID(std::string parameter)
DCMTree::TreePtr getTreePtr() const
bool getValueType(std::string ¶meter) const
bool getTime(std::string ¶meter) const
bool getDateTime(std::string ¶meter) const
std::string getPersonNameTag() const
Item(const Item ©DcmItem)
std::string getMeasurementUnitsCodeSequenceTag() const
std::string getDateTag() const
bool setDateTime(std::string parameter)
bool getNumericValue(std::string ¶meter) const
void setMeasurementUnitsCodeSequence(DcmDRTMeasurementUnitsCodeSequenceInterface seq)
DcmDRTConceptNameCodeSequenceInterface getConceptNameCodeSequence() const
bool getPersonName(std::string ¶meter) const
bool getTextValue(std::string ¶meter) const
Item(DCMTree::TreePtr dcmItem)
bool setValueType(std::string parameter)
std::string getConceptCodeSequenceTag() const
std::string getDateTimeTag() const
std::string getTimeTag() const
DcmDRTConceptCodeSequenceInterface getConceptCodeSequence() const
bool setTextValue(std::string parameter)
Item & operator=(const Item ©DcmItem)
bool setDate(std::string parameter)
void setConceptNameCodeSequence(DcmDRTConceptNameCodeSequenceInterface seq)
std::string getNumericValueTag() const
std::string getTextValueTag() const
bool getDate(std::string ¶meter) const
std::string getUIDTag() const
DcmDRTMeasurementUnitsCodeSequenceInterface getMeasurementUnitsCodeSequence() const
bool setNumericValue(std::string parameter)
Class to provide access to DRTContentItemModifierSequence.
bool getValueType(unsigned long idx, std::string ¶meter) const
bool setDateTime(unsigned long idx, std::string parameter)
bool getNumericValue(unsigned long idx, std::string ¶meter) const
bool getTime(DCMTree::TreePtr item, std::string ¶meter) const
bool getValueType(DCMTree::TreePtr item, std::string ¶meter) const
std::string getConceptNameCodeSequenceTag() const
DcmDRTConceptCodeSequenceInterface getConceptCodeSequence(unsigned long idx) const
std::string getConceptCodeSequenceTag() const
std::string getUIDTag() const
void setConceptNameCodeSequence(DcmDRTConceptNameCodeSequenceInterface seq, unsigned long idx)
bool setPersonName(unsigned long idx, std::string parameter)
std::vector< DcmDRTContentItemModifierSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getDate(unsigned long idx, std::string ¶meter) const
DcmDRTContentItemModifierSequenceInterface()
bool getDate(DCMTree::TreePtr item, std::string ¶meter) const
std::string getMeasurementUnitsCodeSequenceTag() const
std::vector< DcmDRTContentItemModifierSequenceInterface::Item > getSequence() const
Return the DRTContentItemModifierSequence this interface class provides access to.
DcmDRTContentItemModifierSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool getTime(unsigned long idx, std::string ¶meter) const
bool setValueType(unsigned long idx, std::string parameter)
bool getTextValue(DCMTree::TreePtr item, std::string ¶meter) const
std::string getValueTypeTag() const
bool getDateTime(DCMTree::TreePtr item, std::string ¶meter) const
bool setUID(unsigned long idx, std::string parameter)
std::string getDateTimeTag() const
std::string getPersonNameTag() const
bool setDate(unsigned long idx, std::string parameter)
bool getPersonName(unsigned long idx, std::string ¶meter) const
bool getUID(DCMTree::TreePtr item, std::string ¶meter) const
void setMeasurementUnitsCodeSequence(DcmDRTMeasurementUnitsCodeSequenceInterface seq, unsigned long idx)
std::string getTimeTag() const
void setSequence(std::vector< DcmDRTContentItemModifierSequenceInterface::Item > dcmSequence)
Set the DRTContentItemModifierSequence this interface class provides access to.
DcmDRTMeasurementUnitsCodeSequenceInterface getMeasurementUnitsCodeSequence(unsigned long idx) const
virtual ~DcmDRTContentItemModifierSequenceInterface()
Default virtual Destructor.
bool insertItem(const size_t idx)
Insert an item at the indicated position.
void addItem(DcmDRTContentItemModifierSequenceInterface::Item newItem)
DcmDRTContentItemModifierSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
DcmDRTContentItemModifierSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
DcmDRTConceptNameCodeSequenceInterface getConceptNameCodeSequence(unsigned long idx) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
void setConceptCodeSequence(DcmDRTConceptCodeSequenceInterface seq, unsigned long idx)
bool setNumericValue(unsigned long idx, std::string parameter)
bool hasSequence() const
Check if the DRTContentItemModifierSequence is set.
bool setTime(unsigned long idx, std::string parameter)
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
DcmDRTContentItemModifierSequenceInterface(std::vector< DcmDRTContentItemModifierSequenceInterface::Item > dcmSequence)
Default Constructor.
bool getDateTime(unsigned long idx, std::string ¶meter) const
bool getUID(unsigned long idx, std::string ¶meter) const
std::string getDateTag() const
bool getPersonName(DCMTree::TreePtr item, std::string ¶meter) const
bool getTextValue(unsigned long idx, std::string ¶meter) const
bool getNumericValue(DCMTree::TreePtr item, std::string ¶meter) const
std::string getNumericValueTag() const
bool setTextValue(unsigned long idx, std::string parameter)
std::string getTextValueTag() const
Class to provide access to DRTMeasurementUnitsCodeSequence.
Class to provide access to DRTConceptCodeSequence.
Class to provide access to DRTConceptNameCodeSequence.
Class to provide access to DRTMeasurementUnitsCodeSequence.
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