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