23#ifndef __mlDcmDRTReferencedImageSequenceInterface_H
24#define __mlDcmDRTReferencedImageSequenceInterface_H
35#ifndef __mlModuleIncludes_H
52 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
64 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
261 std::vector<DcmDRTReferencedImageSequenceInterface::Item>
getSequence()
const {
268 return (_itemVec.size() != 0);
274 return static_cast<MLint>(_itemVec.size());
280 if (_itemVec.size() >
idx) {
281 return _itemVec[
idx];
290 return _itemVec[_itemVec.size()-1];
300 if (_itemVec.size() >
idx) {
301 std::vector<DcmDRTReferencedImageSequenceInterface::Item>::iterator
it = _itemVec.begin();
302 std::advance(
it,
idx);
312 if ( _itemVec.size() >
idx ) {
313 std::vector<DcmDRTReferencedImageSequenceInterface::Item>::iterator
it = _itemVec.begin();
314 std::advance(
it,
idx);
323 std::vector<DcmDRTReferencedImageSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Class to provide access to DRTPurposeOfReferenceCodeSequence.
std::string getReferencedFrameNumberTag() const
void setPurposeOfReferenceCodeSequence(DcmDRTPurposeOfReferenceCodeSequenceInterface seq)
bool getCodingSchemeDesignator(std::string ¶meter) const
DCMTree::TreePtr getTreePtr() const
bool setCodingSchemeDesignator(std::string parameter)
bool setContextGroupExtensionCreatorUID(std::string parameter)
std::string getContextGroupLocalVersionTag() const
bool getMappingResource(std::string ¶meter) const
bool setMappingResource(std::string parameter)
bool getContextIdentifier(std::string ¶meter) const
bool getCodeValue(std::string ¶meter) const
bool setContextGroupLocalVersion(std::string parameter)
std::string getMappingResourceTag() const
std::string getReferencedSOPClassUIDTag() const
bool setCodingSchemeVersion(std::string parameter)
bool setReferencedSOPClassUID(std::string parameter)
bool getContextGroupExtensionFlag(std::string ¶meter) const
bool getContextGroupVersion(std::string ¶meter) const
Item & operator=(const Item ©DcmItem)
bool getReferencedSOPInstanceUID(std::string ¶meter) const
Item(const Item ©DcmItem)
std::string getPurposeOfReferenceCodeSequenceTag() const
std::string getReferencedSegmentNumberTag() const
bool getContextGroupLocalVersion(std::string ¶meter) const
std::string getContextGroupExtensionFlagTag() const
bool getContextGroupExtensionCreatorUID(std::string ¶meter) const
bool setContextGroupExtensionFlag(std::string parameter)
std::string getContextGroupVersionTag() const
std::string getCodingSchemeDesignatorTag() const
bool getReferencedSegmentNumber(MLuint16 ¶meter) const
std::string getCodeValueTag() const
bool getReferencedFrameNumber(std::string ¶meter) const
std::string getReferencedSOPInstanceUIDTag() const
bool setCodeMeaning(std::string parameter)
bool setReferencedSOPInstanceUID(std::string parameter)
bool setContextGroupVersion(std::string parameter)
bool setReferencedFrameNumber(std::string parameter)
std::string getContextGroupExtensionCreatorUIDTag() const
std::string getCodingSchemeVersionTag() const
bool setCodeValue(std::string parameter)
bool getCodingSchemeVersion(std::string ¶meter) const
bool setReferencedSegmentNumber(MLuint16 parameter)
std::string getContextIdentifierTag() const
Item(DCMTree::TreePtr dcmItem)
bool setContextIdentifier(std::string parameter)
std::string getCodeMeaningTag() const
bool getReferencedSOPClassUID(std::string ¶meter) const
bool getCodeMeaning(std::string ¶meter) const
DcmDRTPurposeOfReferenceCodeSequenceInterface getPurposeOfReferenceCodeSequence() const
Class to provide access to DRTReferencedImageSequence.
bool setCodeValue(unsigned long idx, std::string parameter)
virtual ~DcmDRTReferencedImageSequenceInterface()
Default virtual Destructor.
bool getReferencedSOPInstanceUID(unsigned long idx, std::string ¶meter) const
bool getReferencedSOPInstanceUID(DCMTree::TreePtr item, std::string ¶meter) const
bool getCodingSchemeDesignator(unsigned long idx, std::string ¶meter) const
std::string getContextGroupExtensionCreatorUIDTag() const
bool setReferencedSOPInstanceUID(unsigned long idx, std::string parameter)
DcmDRTReferencedImageSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool getReferencedSegmentNumber(DCMTree::TreePtr item, MLuint16 ¶meter) const
bool hasSequence() const
Check if the DRTReferencedImageSequence is set.
DcmDRTPurposeOfReferenceCodeSequenceInterface getPurposeOfReferenceCodeSequence(unsigned long idx) const
void setSequence(std::vector< DcmDRTReferencedImageSequenceInterface::Item > dcmSequence)
Set the DRTReferencedImageSequence this interface class provides access to.
std::string getMappingResourceTag() const
bool setContextGroupLocalVersion(unsigned long idx, std::string parameter)
bool setReferencedFrameNumber(unsigned long idx, std::string parameter)
std::string getReferencedFrameNumberTag() const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
DcmDRTReferencedImageSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
DcmDRTReferencedImageSequenceInterface(std::vector< DcmDRTReferencedImageSequenceInterface::Item > dcmSequence)
Default Constructor.
bool getContextGroupExtensionFlag(unsigned long idx, std::string ¶meter) const
bool setContextGroupExtensionFlag(unsigned long idx, std::string parameter)
DcmDRTReferencedImageSequenceInterface()
bool getReferencedFrameNumber(unsigned long idx, std::string ¶meter) const
std::string getContextGroupExtensionFlagTag() const
bool getCodeValue(DCMTree::TreePtr item, std::string ¶meter) const
bool getCodeMeaning(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTReferencedImageSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getCodingSchemeVersion(unsigned long idx, std::string ¶meter) const
std::string getContextIdentifierTag() const
std::string getCodeMeaningTag() const
std::string getCodingSchemeVersionTag() const
bool getCodingSchemeVersion(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTReferencedImageSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
std::string getReferencedSegmentNumberTag() const
bool setMappingResource(unsigned long idx, std::string parameter)
bool getContextGroupVersion(unsigned long idx, std::string ¶meter) const
bool getContextIdentifier(unsigned long idx, std::string ¶meter) const
bool setReferencedSOPClassUID(unsigned long idx, std::string parameter)
void setPurposeOfReferenceCodeSequence(DcmDRTPurposeOfReferenceCodeSequenceInterface seq, unsigned long idx)
bool getReferencedSOPClassUID(unsigned long idx, std::string ¶meter) const
std::string getReferencedSOPInstanceUIDTag() const
bool setCodeMeaning(unsigned long idx, std::string parameter)
std::string getContextGroupVersionTag() const
bool setContextGroupExtensionCreatorUID(unsigned long idx, std::string parameter)
bool getReferencedSOPClassUID(DCMTree::TreePtr item, std::string ¶meter) const
bool setCodingSchemeVersion(unsigned long idx, std::string parameter)
bool getMappingResource(unsigned long idx, std::string ¶meter) const
std::string getPurposeOfReferenceCodeSequenceTag() const
bool getContextIdentifier(DCMTree::TreePtr item, std::string ¶meter) const
bool getCodeMeaning(DCMTree::TreePtr item, std::string ¶meter) const
bool getContextGroupExtensionCreatorUID(unsigned long idx, std::string ¶meter) const
bool getContextGroupExtensionFlag(DCMTree::TreePtr item, std::string ¶meter) const
bool getContextGroupLocalVersion(unsigned long idx, std::string ¶meter) const
bool getContextGroupLocalVersion(DCMTree::TreePtr item, std::string ¶meter) const
bool getCodingSchemeDesignator(DCMTree::TreePtr item, std::string ¶meter) const
bool setReferencedSegmentNumber(unsigned long idx, MLuint16 parameter)
bool getContextGroupExtensionCreatorUID(DCMTree::TreePtr item, std::string ¶meter) const
bool setContextIdentifier(unsigned long idx, std::string parameter)
std::string getReferencedSOPClassUIDTag() const
bool getReferencedFrameNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getReferencedSegmentNumber(unsigned long idx, MLuint16 ¶meter) const
bool setContextGroupVersion(unsigned long idx, std::string parameter)
bool setCodingSchemeDesignator(unsigned long idx, std::string parameter)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
std::string getCodeValueTag() const
std::vector< DcmDRTReferencedImageSequenceInterface::Item > getSequence() const
Return the DRTReferencedImageSequence this interface class provides access to.
bool getContextGroupVersion(DCMTree::TreePtr item, std::string ¶meter) const
bool getCodeValue(unsigned long idx, std::string ¶meter) const
bool getMappingResource(DCMTree::TreePtr item, std::string ¶meter) const
void addItem(DcmDRTReferencedImageSequenceInterface::Item newItem)
std::string getContextGroupLocalVersionTag() const
std::string getCodingSchemeDesignatorTag() const
Class to provide access to DRTPurposeOfReferenceCodeSequence.
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