23#ifndef __mlDcmDRTDeviceSequenceInterface_H
24#define __mlDcmDRTDeviceSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
316 std::vector<DcmDRTDeviceSequenceInterface::Item>
getSequence()
const {
323 return (_itemVec.size() != 0);
329 return static_cast<MLint>(_itemVec.size());
335 if (_itemVec.size() >
idx) {
336 return _itemVec[
idx];
345 return _itemVec[_itemVec.size()-1];
355 if (_itemVec.size() >
idx) {
356 std::vector<DcmDRTDeviceSequenceInterface::Item>::iterator
it = _itemVec.begin();
357 std::advance(
it,
idx);
367 if ( _itemVec.size() >
idx ) {
368 std::vector<DcmDRTDeviceSequenceInterface::Item>::iterator
it = _itemVec.begin();
369 std::advance(
it,
idx);
378 std::vector<DcmDRTDeviceSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool setContextGroupLocalVersion(std::string parameter)
bool getManufacturer(std::string ¶meter) const
std::string getDeviceSerialNumberTag() const
Item(DCMTree::TreePtr dcmItem)
std::string getManufacturerModelNameTag() const
bool setManufacturerModelName(std::string parameter)
bool setCodeMeaning(std::string parameter)
bool setManufacturer(std::string parameter)
bool setContextIdentifier(std::string parameter)
bool getDeviceDiameterUnits(std::string ¶meter) const
bool setCodingSchemeVersion(std::string parameter)
bool setDeviceDiameterUnits(std::string parameter)
bool setDeviceVolume(std::string parameter)
std::string getContextGroupLocalVersionTag() const
std::string getDeviceIDTag() const
bool getDeviceSerialNumber(std::string ¶meter) const
bool getContextGroupExtensionCreatorUID(std::string ¶meter) const
Item(const Item ©DcmItem)
bool getCodeValue(std::string ¶meter) const
bool getMappingResource(std::string ¶meter) const
bool setDeviceSerialNumber(std::string parameter)
bool setDeviceDiameter(std::string parameter)
bool getDeviceDiameter(std::string ¶meter) const
bool setInterMarkerDistance(std::string parameter)
std::string getMappingResourceTag() const
bool getContextGroupExtensionFlag(std::string ¶meter) const
bool setDeviceID(std::string parameter)
bool setDeviceDescription(std::string parameter)
std::string getContextGroupVersionTag() const
bool getContextIdentifier(std::string ¶meter) const
std::string getContextIdentifierTag() const
bool getCodingSchemeVersion(std::string ¶meter) const
std::string getCodingSchemeVersionTag() const
bool setContextGroupVersion(std::string parameter)
bool getContextGroupLocalVersion(std::string ¶meter) const
std::string getContextGroupExtensionFlagTag() const
std::string getCodeValueTag() const
std::string getCodingSchemeDesignatorTag() const
bool setCodingSchemeDesignator(std::string parameter)
DCMTree::TreePtr getTreePtr() const
std::string getDeviceDescriptionTag() const
bool setDeviceLength(std::string parameter)
std::string getContextGroupExtensionCreatorUIDTag() const
bool getDeviceID(std::string ¶meter) const
std::string getManufacturerTag() const
bool getInterMarkerDistance(std::string ¶meter) const
std::string getDeviceDiameterUnitsTag() const
bool setContextGroupExtensionFlag(std::string parameter)
bool setCodeValue(std::string parameter)
std::string getCodeMeaningTag() const
bool getDeviceLength(std::string ¶meter) const
std::string getDeviceVolumeTag() const
std::string getDeviceLengthTag() const
std::string getInterMarkerDistanceTag() const
bool getManufacturerModelName(std::string ¶meter) const
bool setContextGroupExtensionCreatorUID(std::string parameter)
bool getCodeMeaning(std::string ¶meter) const
std::string getDeviceDiameterTag() const
bool getDeviceDescription(std::string ¶meter) const
bool getDeviceVolume(std::string ¶meter) const
bool getCodingSchemeDesignator(std::string ¶meter) const
Item & operator=(const Item ©DcmItem)
bool setMappingResource(std::string parameter)
bool getContextGroupVersion(std::string ¶meter) const
Class to provide access to DRTDeviceSequence.
bool getManufacturer(unsigned long idx, std::string ¶meter) const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
std::string getCodeValueTag() const
std::string getContextGroupExtensionCreatorUIDTag() const
bool setCodeValue(unsigned long idx, std::string parameter)
bool getManufacturerModelName(unsigned long idx, std::string ¶meter) const
bool setInterMarkerDistance(unsigned long idx, std::string parameter)
bool setCodeMeaning(unsigned long idx, std::string parameter)
bool setCodingSchemeVersion(unsigned long idx, std::string parameter)
bool getContextGroupLocalVersion(DCMTree::TreePtr item, std::string ¶meter) const
bool setCodingSchemeDesignator(unsigned long idx, std::string parameter)
bool getContextGroupLocalVersion(unsigned long idx, std::string ¶meter) const
std::string getContextIdentifierTag() const
void setSequence(std::vector< DcmDRTDeviceSequenceInterface::Item > dcmSequence)
Set the DRTDeviceSequence this interface class provides access to.
bool getDeviceVolume(DCMTree::TreePtr item, std::string ¶meter) const
bool getCodeMeaning(unsigned long idx, std::string ¶meter) const
bool getCodingSchemeVersion(DCMTree::TreePtr item, std::string ¶meter) const
bool getContextIdentifier(DCMTree::TreePtr item, std::string ¶meter) const
std::string getDeviceIDTag() const
bool setDeviceDescription(unsigned long idx, std::string parameter)
bool getInterMarkerDistance(unsigned long idx, std::string ¶meter) const
bool setContextGroupLocalVersion(unsigned long idx, std::string parameter)
std::string getCodingSchemeDesignatorTag() const
bool getDeviceLength(unsigned long idx, std::string ¶meter) const
bool getDeviceSerialNumber(unsigned long idx, std::string ¶meter) const
bool getInterMarkerDistance(DCMTree::TreePtr item, std::string ¶meter) const
bool getDeviceLength(DCMTree::TreePtr item, std::string ¶meter) const
bool setDeviceVolume(unsigned long idx, std::string parameter)
std::string getDeviceSerialNumberTag() const
bool getDeviceID(DCMTree::TreePtr item, std::string ¶meter) const
bool getCodingSchemeVersion(unsigned long idx, std::string ¶meter) const
bool getManufacturerModelName(DCMTree::TreePtr item, std::string ¶meter) const
bool getDeviceVolume(unsigned long idx, std::string ¶meter) const
bool setDeviceID(unsigned long idx, std::string parameter)
DcmDRTDeviceSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getContextGroupExtensionFlag(DCMTree::TreePtr item, std::string ¶meter) const
bool getContextGroupExtensionCreatorUID(DCMTree::TreePtr item, std::string ¶meter) const
std::string getDeviceDiameterTag() const
bool getDeviceDescription(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTDeviceSequenceInterface()
std::string getDeviceLengthTag() const
std::string getDeviceVolumeTag() const
bool getCodeValue(unsigned long idx, std::string ¶meter) const
std::string getManufacturerModelNameTag() const
bool setDeviceSerialNumber(unsigned long idx, std::string parameter)
std::string getCodeMeaningTag() const
bool setContextIdentifier(unsigned long idx, std::string parameter)
bool getDeviceDiameter(unsigned long idx, std::string ¶meter) const
bool setDeviceLength(unsigned long idx, std::string parameter)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getDeviceDiameterUnits(unsigned long idx, std::string ¶meter) const
bool setDeviceDiameterUnits(unsigned long idx, std::string parameter)
bool getDeviceDiameter(DCMTree::TreePtr item, std::string ¶meter) const
std::string getDeviceDescriptionTag() const
bool getContextGroupVersion(unsigned long idx, std::string ¶meter) const
bool getMappingResource(unsigned long idx, std::string ¶meter) const
bool setMappingResource(unsigned long idx, std::string parameter)
std::string getInterMarkerDistanceTag() const
virtual ~DcmDRTDeviceSequenceInterface()
Default virtual Destructor.
void addItem(DcmDRTDeviceSequenceInterface::Item newItem)
bool setContextGroupExtensionFlag(unsigned long idx, std::string parameter)
bool getMappingResource(DCMTree::TreePtr item, std::string ¶meter) const
std::vector< DcmDRTDeviceSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getCodeMeaning(DCMTree::TreePtr item, std::string ¶meter) const
std::string getContextGroupVersionTag() const
bool getCodingSchemeDesignator(unsigned long idx, std::string ¶meter) const
bool getDeviceSerialNumber(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTDeviceSequenceInterface(std::vector< DcmDRTDeviceSequenceInterface::Item > dcmSequence)
Default Constructor.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool getCodingSchemeDesignator(DCMTree::TreePtr item, std::string ¶meter) const
bool getContextGroupVersion(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTDeviceSequenceInterface::Item & addItem()
Adds a new item to the sequence.
std::string getContextGroupExtensionFlagTag() const
bool hasSequence() const
Check if the DRTDeviceSequence is set.
bool setManufacturerModelName(unsigned long idx, std::string parameter)
bool getCodeValue(DCMTree::TreePtr item, std::string ¶meter) const
bool getManufacturer(DCMTree::TreePtr item, std::string ¶meter) const
bool getDeviceID(unsigned long idx, std::string ¶meter) const
bool getDeviceDiameterUnits(DCMTree::TreePtr item, std::string ¶meter) const
bool getContextGroupExtensionFlag(unsigned long idx, std::string ¶meter) const
bool setDeviceDiameter(unsigned long idx, std::string parameter)
DcmDRTDeviceSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
std::string getCodingSchemeVersionTag() const
bool setContextGroupVersion(unsigned long idx, std::string parameter)
bool setManufacturer(unsigned long idx, std::string parameter)
std::string getManufacturerTag() const
std::string getMappingResourceTag() const
bool getContextGroupExtensionCreatorUID(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTDeviceSequenceInterface::Item > getSequence() const
Return the DRTDeviceSequence this interface class provides access to.
bool getContextIdentifier(unsigned long idx, std::string ¶meter) const
std::string getContextGroupLocalVersionTag() const
std::string getDeviceDiameterUnitsTag() const
bool setContextGroupExtensionCreatorUID(unsigned long idx, std::string parameter)
bool getDeviceDescription(unsigned long idx, std::string ¶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