23#ifndef __mlDcmDRTReferencedInstanceSequenceInterface_H
24#define __mlDcmDRTReferencedInstanceSequenceInterface_H
35#ifndef __mlModuleIncludes_H
52 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
64 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
305 std::vector<DcmDRTReferencedInstanceSequenceInterface::Item>
getSequence()
const {
312 return (_itemVec.size() != 0);
318 return static_cast<MLint>(_itemVec.size());
324 if (_itemVec.size() >
idx) {
325 return _itemVec[
idx];
334 return _itemVec[_itemVec.size()-1];
344 if (_itemVec.size() >
idx) {
345 std::vector<DcmDRTReferencedInstanceSequenceInterface::Item>::iterator
it = _itemVec.begin();
346 std::advance(
it,
idx);
356 if ( _itemVec.size() >
idx ) {
357 std::vector<DcmDRTReferencedInstanceSequenceInterface::Item>::iterator
it = _itemVec.begin();
358 std::advance(
it,
idx);
367 std::vector<DcmDRTReferencedInstanceSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Class to provide access to DRTPurposeOfReferenceCodeSequence.
std::string getRowsTag() const
bool getRedPaletteColorLookupTableDescriptor(MLuint16 ¶meter) const
bool getBluePaletteColorLookupTableDescriptor(MLuint16 ¶meter) const
std::string getPixelAspectRatioTag() const
bool getBitsAllocated(MLuint16 ¶meter) const
std::string getColumnsTag() const
bool getGreenPaletteColorLookupTableDescriptor(MLuint16 ¶meter) const
Item & operator=(const Item ©DcmItem)
std::string getGreenPaletteColorLookupTableDescriptorTag() const
bool getPlanarConfiguration(MLuint16 ¶meter) const
bool getPhotometricInterpretation(std::string ¶meter) const
std::string getSmallestImagePixelValueTag() const
bool getSamplesPerPixel(MLuint16 ¶meter) const
bool setBitsAllocated(MLuint16 parameter)
std::string getHighBitTag() const
std::string getRedPaletteColorLookupTableDescriptorTag() const
bool setReferencedSOPInstanceUID(std::string parameter)
bool setRows(MLuint16 parameter)
bool setICCProfile(int parameter)
bool getICCProfile(int ¶meter) const
bool getHighBit(MLuint16 ¶meter) const
bool getSmallestImagePixelValue(MLuint16 ¶meter) const
bool setReferencedSOPClassUID(std::string parameter)
std::string getBitsAllocatedTag() const
std::string getICCProfileTag() const
bool setBitsStored(MLuint16 parameter)
std::string getLargestImagePixelValueTag() const
std::string getPlanarConfigurationTag() const
bool getColumns(MLuint16 ¶meter) const
bool getPixelRepresentation(MLuint16 ¶meter) const
bool setSmallestImagePixelValue(MLuint16 parameter)
std::string getReferencedSOPClassUIDTag() const
bool setHighBit(MLuint16 parameter)
std::string getPurposeOfReferenceCodeSequenceTag() const
bool setRedPaletteColorLookupTableDescriptor(MLuint16 parameter)
bool setLargestImagePixelValue(MLuint16 parameter)
std::string getBitsStoredTag() const
std::string getReferencedSOPInstanceUIDTag() const
DCMTree::TreePtr getTreePtr() const
bool setBluePaletteColorLookupTableDescriptor(MLuint16 parameter)
bool setSamplesPerPixel(MLuint16 parameter)
bool setGreenPaletteColorLookupTableDescriptor(MLuint16 parameter)
bool getBitsStored(MLuint16 ¶meter) const
std::string getBluePaletteColorLookupTableDescriptorTag() const
bool getReferencedSOPInstanceUID(std::string ¶meter) const
bool setPlanarConfiguration(MLuint16 parameter)
bool getPixelAspectRatio(std::string ¶meter) const
Item(const Item ©DcmItem)
bool setPixelAspectRatio(std::string parameter)
bool setColumns(MLuint16 parameter)
bool getLargestImagePixelValue(MLuint16 ¶meter) const
std::string getSamplesPerPixelTag() const
void setPurposeOfReferenceCodeSequence(DcmDRTPurposeOfReferenceCodeSequenceInterface seq)
std::string getPhotometricInterpretationTag() const
DcmDRTPurposeOfReferenceCodeSequenceInterface getPurposeOfReferenceCodeSequence() const
bool setPixelRepresentation(MLuint16 parameter)
bool setPhotometricInterpretation(std::string parameter)
bool getRows(MLuint16 ¶meter) const
std::string getPixelRepresentationTag() const
bool getReferencedSOPClassUID(std::string ¶meter) const
Item(DCMTree::TreePtr dcmItem)
Class to provide access to DRTReferencedInstanceSequence.
DcmDRTPurposeOfReferenceCodeSequenceInterface getPurposeOfReferenceCodeSequence(unsigned long idx) const
void setSequence(std::vector< DcmDRTReferencedInstanceSequenceInterface::Item > dcmSequence)
Set the DRTReferencedInstanceSequence this interface class provides access to.
std::string getSmallestImagePixelValueTag() const
bool getPlanarConfiguration(unsigned long idx, MLuint16 ¶meter) const
bool getLargestImagePixelValue(DCMTree::TreePtr item, MLuint16 ¶meter) const
bool setHighBit(unsigned long idx, MLuint16 parameter)
bool setReferencedSOPInstanceUID(unsigned long idx, std::string parameter)
bool getReferencedSOPInstanceUID(unsigned long idx, std::string ¶meter) const
bool getBluePaletteColorLookupTableDescriptor(unsigned long idx, MLuint16 ¶meter) const
std::string getPixelAspectRatioTag() const
std::string getICCProfileTag() const
DcmDRTReferencedInstanceSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool setSmallestImagePixelValue(unsigned long idx, MLuint16 parameter)
virtual ~DcmDRTReferencedInstanceSequenceInterface()
Default virtual Destructor.
bool getPhotometricInterpretation(DCMTree::TreePtr item, std::string ¶meter) const
bool setPixelRepresentation(unsigned long idx, MLuint16 parameter)
std::string getPhotometricInterpretationTag() const
bool setBitsStored(unsigned long idx, MLuint16 parameter)
bool getSamplesPerPixel(unsigned long idx, MLuint16 ¶meter) const
bool getICCProfile(unsigned long idx, int ¶meter) const
bool getPhotometricInterpretation(unsigned long idx, std::string ¶meter) const
std::string getHighBitTag() const
std::string getRowsTag() const
bool getSmallestImagePixelValue(DCMTree::TreePtr item, MLuint16 ¶meter) const
std::string getBitsStoredTag() const
bool getRows(unsigned long idx, MLuint16 ¶meter) const
bool setRedPaletteColorLookupTableDescriptor(unsigned long idx, MLuint16 parameter)
bool setSamplesPerPixel(unsigned long idx, MLuint16 parameter)
bool getBluePaletteColorLookupTableDescriptor(DCMTree::TreePtr item, MLuint16 ¶meter) const
std::string getBluePaletteColorLookupTableDescriptorTag() const
bool setICCProfile(unsigned long idx, int parameter)
bool setColumns(unsigned long idx, MLuint16 parameter)
std::string getGreenPaletteColorLookupTableDescriptorTag() const
bool setLargestImagePixelValue(unsigned long idx, MLuint16 parameter)
std::string getBitsAllocatedTag() const
bool getHighBit(DCMTree::TreePtr item, MLuint16 ¶meter) const
bool getSamplesPerPixel(DCMTree::TreePtr item, MLuint16 ¶meter) const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool setRows(unsigned long idx, MLuint16 parameter)
bool getBitsStored(unsigned long idx, MLuint16 ¶meter) const
bool setPixelAspectRatio(unsigned long idx, std::string parameter)
std::vector< DcmDRTReferencedInstanceSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
std::string getColumnsTag() const
bool setBluePaletteColorLookupTableDescriptor(unsigned long idx, MLuint16 parameter)
bool getBitsStored(DCMTree::TreePtr item, MLuint16 ¶meter) const
bool setReferencedSOPClassUID(unsigned long idx, std::string parameter)
bool getPixelAspectRatio(unsigned long idx, std::string ¶meter) const
bool getRedPaletteColorLookupTableDescriptor(DCMTree::TreePtr item, MLuint16 ¶meter) const
std::string getPlanarConfigurationTag() const
std::string getReferencedSOPClassUIDTag() const
std::string getLargestImagePixelValueTag() const
DcmDRTReferencedInstanceSequenceInterface(std::vector< DcmDRTReferencedInstanceSequenceInterface::Item > dcmSequence)
Default Constructor.
void addItem(DcmDRTReferencedInstanceSequenceInterface::Item newItem)
std::vector< DcmDRTReferencedInstanceSequenceInterface::Item > getSequence() const
Return the DRTReferencedInstanceSequence this interface class provides access to.
bool getPlanarConfiguration(DCMTree::TreePtr item, MLuint16 ¶meter) const
bool getGreenPaletteColorLookupTableDescriptor(unsigned long idx, MLuint16 ¶meter) const
bool getLargestImagePixelValue(unsigned long idx, MLuint16 ¶meter) const
bool getRows(DCMTree::TreePtr item, MLuint16 ¶meter) const
bool getRedPaletteColorLookupTableDescriptor(unsigned long idx, MLuint16 ¶meter) const
DcmDRTReferencedInstanceSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getICCProfile(DCMTree::TreePtr item, int ¶meter) const
std::string getSamplesPerPixelTag() const
bool getPixelRepresentation(unsigned long idx, MLuint16 ¶meter) const
bool getGreenPaletteColorLookupTableDescriptor(DCMTree::TreePtr item, MLuint16 ¶meter) const
bool hasSequence() const
Check if the DRTReferencedInstanceSequence is set.
bool getPixelRepresentation(DCMTree::TreePtr item, MLuint16 ¶meter) const
bool getSmallestImagePixelValue(unsigned long idx, MLuint16 ¶meter) const
std::string getReferencedSOPInstanceUIDTag() const
bool setPhotometricInterpretation(unsigned long idx, std::string parameter)
std::string getPixelRepresentationTag() const
bool getReferencedSOPInstanceUID(DCMTree::TreePtr item, std::string ¶meter) const
std::string getPurposeOfReferenceCodeSequenceTag() const
std::string getRedPaletteColorLookupTableDescriptorTag() const
DcmDRTReferencedInstanceSequenceInterface::Item & addItem()
Adds a new item to the sequence.
void setPurposeOfReferenceCodeSequence(DcmDRTPurposeOfReferenceCodeSequenceInterface seq, unsigned long idx)
bool setPlanarConfiguration(unsigned long idx, MLuint16 parameter)
bool setGreenPaletteColorLookupTableDescriptor(unsigned long idx, MLuint16 parameter)
bool getColumns(DCMTree::TreePtr item, MLuint16 ¶meter) const
bool getPixelAspectRatio(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTReferencedInstanceSequenceInterface()
bool getBitsAllocated(unsigned long idx, MLuint16 ¶meter) const
bool getReferencedSOPClassUID(unsigned long idx, std::string ¶meter) const
bool getBitsAllocated(DCMTree::TreePtr item, MLuint16 ¶meter) const
bool getReferencedSOPClassUID(DCMTree::TreePtr item, std::string ¶meter) const
bool setBitsAllocated(unsigned long idx, MLuint16 parameter)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getColumns(unsigned long idx, MLuint16 ¶meter) const
bool getHighBit(unsigned long idx, MLuint16 ¶meter) 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