23#ifndef __mlDcmDRTContributingEquipmentSequenceInterface_H
24#define __mlDcmDRTContributingEquipmentSequenceInterface_H
35#ifndef __mlModuleIncludes_H
52 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
64 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
250 std::vector<DcmDRTContributingEquipmentSequenceInterface::Item>
getSequence()
const {
257 return (_itemVec.size() != 0);
263 return static_cast<MLint>(_itemVec.size());
269 if (_itemVec.size() >
idx) {
270 return _itemVec[
idx];
279 return _itemVec[_itemVec.size()-1];
289 if (_itemVec.size() >
idx) {
290 std::vector<DcmDRTContributingEquipmentSequenceInterface::Item>::iterator
it = _itemVec.begin();
291 std::advance(
it,
idx);
301 if ( _itemVec.size() >
idx ) {
302 std::vector<DcmDRTContributingEquipmentSequenceInterface::Item>::iterator
it = _itemVec.begin();
303 std::advance(
it,
idx);
312 std::vector<DcmDRTContributingEquipmentSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getDeviceSerialNumberTag() const
std::string getSpatialResolutionTag() const
bool getContributionDateTime(std::string ¶meter) const
bool getInstitutionName(std::string ¶meter) const
bool getInstitutionAddress(std::string ¶meter) const
bool getManufacturerModelName(std::string ¶meter) const
DcmDRTPurposeOfReferenceCodeSequenceInterface getPurposeOfReferenceCodeSequence() const
bool setContributionDateTime(std::string parameter)
bool setDeviceSerialNumber(std::string parameter)
bool setManufacturerModelName(std::string parameter)
std::string getManufacturerModelNameTag() const
std::string getSoftwareVersionsTag() const
DCMTree::TreePtr getTreePtr() const
std::string getContributionDescriptionTag() const
bool setInstitutionalDepartmentName(std::string parameter)
bool setStationName(std::string parameter)
bool setInstitutionAddress(std::string parameter)
bool setManufacturer(std::string parameter)
std::string getDateOfLastCalibrationTag() const
bool getStationName(std::string ¶meter) const
bool getManufacturer(std::string ¶meter) const
Item(DCMTree::TreePtr dcmItem)
std::string getInstitutionalDepartmentNameTag() const
bool getSpatialResolution(std::string ¶meter) const
bool getContributionDescription(std::string ¶meter) const
std::string getTimeOfLastCalibrationTag() const
bool getInstitutionalDepartmentName(std::string ¶meter) const
bool setDateOfLastCalibration(std::string parameter)
std::string getInstitutionAddressTag() const
bool getDateOfLastCalibration(std::string ¶meter) const
bool setTimeOfLastCalibration(std::string parameter)
bool setSpatialResolution(std::string parameter)
bool setContributionDescription(std::string parameter)
std::string getStationNameTag() const
bool getTimeOfLastCalibration(std::string ¶meter) const
bool setInstitutionName(std::string parameter)
Item(const Item ©DcmItem)
std::string getContributionDateTimeTag() const
std::string getInstitutionNameTag() const
std::string getManufacturerTag() const
std::string getPurposeOfReferenceCodeSequenceTag() const
Item & operator=(const Item ©DcmItem)
bool getSoftwareVersions(std::string ¶meter) const
bool setSoftwareVersions(std::string parameter)
void setPurposeOfReferenceCodeSequence(DcmDRTPurposeOfReferenceCodeSequenceInterface seq)
bool getDeviceSerialNumber(std::string ¶meter) const
Class to provide access to DRTContributingEquipmentSequence.
DcmDRTContributingEquipmentSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getInstitutionName(DCMTree::TreePtr item, std::string ¶meter) const
std::string getStationNameTag() const
bool setManufacturerModelName(unsigned long idx, std::string parameter)
bool getSpatialResolution(unsigned long idx, std::string ¶meter) const
bool getInstitutionAddress(DCMTree::TreePtr item, std::string ¶meter) const
bool setInstitutionName(unsigned long idx, std::string parameter)
bool getManufacturer(unsigned long idx, std::string ¶meter) const
bool getSoftwareVersions(unsigned long idx, std::string ¶meter) const
void setSequence(std::vector< DcmDRTContributingEquipmentSequenceInterface::Item > dcmSequence)
Set the DRTContributingEquipmentSequence this interface class provides access to.
std::vector< DcmDRTContributingEquipmentSequenceInterface::Item > getSequence() const
Return the DRTContributingEquipmentSequence this interface class provides access to.
DcmDRTContributingEquipmentSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
std::string getTimeOfLastCalibrationTag() const
bool getTimeOfLastCalibration(unsigned long idx, std::string ¶meter) const
bool getTimeOfLastCalibration(DCMTree::TreePtr item, std::string ¶meter) const
bool getInstitutionalDepartmentName(unsigned long idx, std::string ¶meter) const
DcmDRTPurposeOfReferenceCodeSequenceInterface getPurposeOfReferenceCodeSequence(unsigned long idx) const
std::string getPurposeOfReferenceCodeSequenceTag() const
bool setTimeOfLastCalibration(unsigned long idx, std::string parameter)
bool getDateOfLastCalibration(DCMTree::TreePtr item, std::string ¶meter) const
bool getStationName(DCMTree::TreePtr item, std::string ¶meter) const
std::string getManufacturerTag() const
bool setSoftwareVersions(unsigned long idx, std::string parameter)
bool hasSequence() const
Check if the DRTContributingEquipmentSequence is set.
std::string getInstitutionalDepartmentNameTag() const
bool setDeviceSerialNumber(unsigned long idx, std::string parameter)
std::string getSoftwareVersionsTag() const
bool setSpatialResolution(unsigned long idx, std::string parameter)
std::string getContributionDateTimeTag() const
bool getManufacturer(DCMTree::TreePtr item, std::string ¶meter) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool setInstitutionAddress(unsigned long idx, std::string parameter)
bool getContributionDateTime(unsigned long idx, std::string ¶meter) const
bool getInstitutionAddress(unsigned long idx, std::string ¶meter) const
bool getInstitutionName(unsigned long idx, std::string ¶meter) const
std::string getInstitutionAddressTag() const
bool getManufacturerModelName(unsigned long idx, std::string ¶meter) const
bool setContributionDescription(unsigned long idx, std::string parameter)
bool getContributionDescription(unsigned long idx, std::string ¶meter) const
bool setInstitutionalDepartmentName(unsigned long idx, std::string parameter)
bool getStationName(unsigned long idx, std::string ¶meter) const
bool getDeviceSerialNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool setContributionDateTime(unsigned long idx, std::string parameter)
bool getManufacturerModelName(DCMTree::TreePtr item, std::string ¶meter) const
std::vector< DcmDRTContributingEquipmentSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getContributionDateTime(DCMTree::TreePtr item, std::string ¶meter) const
bool getSpatialResolution(DCMTree::TreePtr item, std::string ¶meter) const
std::string getDateOfLastCalibrationTag() const
bool getDeviceSerialNumber(unsigned long idx, std::string ¶meter) const
bool setDateOfLastCalibration(unsigned long idx, std::string parameter)
DcmDRTContributingEquipmentSequenceInterface::Item & addItem()
Adds a new item to the sequence.
void setPurposeOfReferenceCodeSequence(DcmDRTPurposeOfReferenceCodeSequenceInterface seq, unsigned long idx)
virtual ~DcmDRTContributingEquipmentSequenceInterface()
Default virtual Destructor.
std::string getInstitutionNameTag() const
void addItem(DcmDRTContributingEquipmentSequenceInterface::Item newItem)
std::string getContributionDescriptionTag() const
bool setManufacturer(unsigned long idx, std::string parameter)
DcmDRTContributingEquipmentSequenceInterface(std::vector< DcmDRTContributingEquipmentSequenceInterface::Item > dcmSequence)
Default Constructor.
bool getContributionDescription(DCMTree::TreePtr item, std::string ¶meter) const
std::string getSpatialResolutionTag() const
std::string getDeviceSerialNumberTag() const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool getSoftwareVersions(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTContributingEquipmentSequenceInterface()
std::string getManufacturerModelNameTag() const
bool getDateOfLastCalibration(unsigned long idx, std::string ¶meter) const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool setStationName(unsigned long idx, std::string parameter)
bool getInstitutionalDepartmentName(DCMTree::TreePtr item, std::string ¶meter) const
Class to provide access to DRTPurposeOfReferenceCodeSequence.
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