23#ifndef __mlDcmDRTRTROIObservationsSequenceInterface_H
24#define __mlDcmDRTRTROIObservationsSequenceInterface_H
38#ifndef __mlModuleIncludes_H
55 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
67 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
217 std::vector<DcmDRTRTROIObservationsSequenceInterface::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<DcmDRTRTROIObservationsSequenceInterface::Item>::iterator
it = _itemVec.begin();
258 std::advance(
it,
idx);
268 if ( _itemVec.size() >
idx ) {
269 std::vector<DcmDRTRTROIObservationsSequenceInterface::Item>::iterator
it = _itemVec.begin();
270 std::advance(
it,
idx);
279 std::vector<DcmDRTRTROIObservationsSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Class to provide access to DRTROIPhysicalPropertiesSequence.
Class to provide access to DRTRTROIIdentificationCodeSequence.
bool setReferencedROINumber(std::string parameter)
bool setROIObservationLabel(std::string parameter)
bool setROIObservationDescription(std::string parameter)
bool getMaterialID(std::string ¶meter) const
Item & operator=(const Item ©DcmItem)
std::string getROIObservationLabelTag() const
DCMTree::TreePtr getTreePtr() const
bool getROIInterpreter(std::string ¶meter) const
Item(DCMTree::TreePtr dcmItem)
std::string getRelatedRTROIObservationsSequenceTag() const
bool setMaterialID(std::string parameter)
void setROIPhysicalPropertiesSequence(DcmDRTROIPhysicalPropertiesSequenceInterface seq)
bool getROIObservationDescription(std::string ¶meter) const
void setRelatedRTROIObservationsSequence(DcmDRTRelatedRTROIObservationsSequenceInterface seq)
std::string getObservationNumberTag() const
std::string getMaterialIDTag() const
DcmDRTRTROIIdentificationCodeSequenceInterface getRTROIIdentificationCodeSequence() const
DcmDRTROIPhysicalPropertiesSequenceInterface getROIPhysicalPropertiesSequence() const
std::string getROIPhysicalPropertiesSequenceTag() const
std::string getReferencedROINumberTag() const
bool getObservationNumber(std::string ¶meter) const
std::string getROIInterpreterTag() const
Item(const Item ©DcmItem)
DcmDRTRelatedRTROIObservationsSequenceInterface getRelatedRTROIObservationsSequence() const
bool getReferencedROINumber(std::string ¶meter) const
std::string getRTRelatedROISequenceTag() const
std::string getROIObservationDescriptionTag() const
bool getROIObservationLabel(std::string ¶meter) const
bool setROIInterpreter(std::string parameter)
bool setObservationNumber(std::string parameter)
std::string getRTROIIdentificationCodeSequenceTag() const
std::string getRTROIInterpretedTypeTag() const
void setRTROIIdentificationCodeSequence(DcmDRTRTROIIdentificationCodeSequenceInterface seq)
DcmDRTRTRelatedROISequenceInterface getRTRelatedROISequence() const
void setRTRelatedROISequence(DcmDRTRTRelatedROISequenceInterface seq)
bool getRTROIInterpretedType(std::string ¶meter) const
bool setRTROIInterpretedType(std::string parameter)
Class to provide access to DRTRTROIObservationsSequence.
bool getROIObservationLabel(DCMTree::TreePtr item, std::string ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
void setROIPhysicalPropertiesSequence(DcmDRTROIPhysicalPropertiesSequenceInterface seq, unsigned long idx)
std::string getROIInterpreterTag() const
std::vector< DcmDRTRTROIObservationsSequenceInterface::Item > getSequence() const
Return the DRTRTROIObservationsSequence this interface class provides access to.
std::string getObservationNumberTag() const
void setRTROIIdentificationCodeSequence(DcmDRTRTROIIdentificationCodeSequenceInterface seq, unsigned long idx)
DcmDRTRTROIObservationsSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
DcmDRTRTROIIdentificationCodeSequenceInterface getRTROIIdentificationCodeSequence(unsigned long idx) const
bool getROIInterpreter(DCMTree::TreePtr item, std::string ¶meter) const
bool getMaterialID(unsigned long idx, std::string ¶meter) const
bool getReferencedROINumber(unsigned long idx, std::string ¶meter) const
bool getReferencedROINumber(DCMTree::TreePtr item, std::string ¶meter) const
bool setROIInterpreter(unsigned long idx, std::string parameter)
DcmDRTRelatedRTROIObservationsSequenceInterface getRelatedRTROIObservationsSequence(unsigned long idx) const
bool getROIObservationDescription(unsigned long idx, std::string ¶meter) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
DcmDRTRTROIObservationsSequenceInterface()
std::string getRTRelatedROISequenceTag() const
std::string getMaterialIDTag() const
DcmDRTRTROIObservationsSequenceInterface(std::vector< DcmDRTRTROIObservationsSequenceInterface::Item > dcmSequence)
Default Constructor.
bool getObservationNumber(DCMTree::TreePtr item, std::string ¶meter) const
std::vector< DcmDRTRTROIObservationsSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getRTROIInterpretedType(unsigned long idx, std::string ¶meter) const
void addItem(DcmDRTRTROIObservationsSequenceInterface::Item newItem)
bool getROIObservationLabel(unsigned long idx, std::string ¶meter) const
bool getObservationNumber(unsigned long idx, std::string ¶meter) const
std::string getRTROIInterpretedTypeTag() const
DcmDRTRTROIObservationsSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getROIObservationDescription(DCMTree::TreePtr item, std::string ¶meter) const
bool setROIObservationDescription(unsigned long idx, std::string parameter)
std::string getROIObservationLabelTag() const
DcmDRTRTROIObservationsSequenceInterface::Item & addItem()
Adds a new item to the sequence.
virtual ~DcmDRTRTROIObservationsSequenceInterface()
Default virtual Destructor.
std::string getRelatedRTROIObservationsSequenceTag() const
DcmDRTROIPhysicalPropertiesSequenceInterface getROIPhysicalPropertiesSequence(unsigned long idx) const
bool hasSequence() const
Check if the DRTRTROIObservationsSequence is set.
bool setMaterialID(unsigned long idx, std::string parameter)
void setRTRelatedROISequence(DcmDRTRTRelatedROISequenceInterface seq, unsigned long idx)
bool setReferencedROINumber(unsigned long idx, std::string parameter)
std::string getROIPhysicalPropertiesSequenceTag() const
std::string getRTROIIdentificationCodeSequenceTag() const
void setSequence(std::vector< DcmDRTRTROIObservationsSequenceInterface::Item > dcmSequence)
Set the DRTRTROIObservationsSequence this interface class provides access to.
bool setRTROIInterpretedType(unsigned long idx, std::string parameter)
std::string getReferencedROINumberTag() const
bool setROIObservationLabel(unsigned long idx, std::string parameter)
std::string getROIObservationDescriptionTag() const
void setRelatedRTROIObservationsSequence(DcmDRTRelatedRTROIObservationsSequenceInterface seq, unsigned long idx)
bool getMaterialID(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTRTRelatedROISequenceInterface getRTRelatedROISequence(unsigned long idx) const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool getRTROIInterpretedType(DCMTree::TreePtr item, std::string ¶meter) const
bool getROIInterpreter(unsigned long idx, std::string ¶meter) const
bool setObservationNumber(unsigned long idx, std::string parameter)
Class to provide access to DRTROIPhysicalPropertiesSequence.
Class to provide access to DRTRTROIIdentificationCodeSequence.
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