23#ifndef __mlDcmDRTSourceSequenceInterface_H
24#define __mlDcmDRTSourceSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
261 std::vector<DcmDRTSourceSequenceInterface::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<DcmDRTSourceSequenceInterface::Item>::iterator
it = _itemVec.begin();
302 std::advance(
it,
idx);
312 if ( _itemVec.size() >
idx ) {
313 std::vector<DcmDRTSourceSequenceInterface::Item>::iterator
it = _itemVec.begin();
314 std::advance(
it,
idx);
323 std::vector<DcmDRTSourceSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool setSourceStrengthReferenceDate(std::string parameter)
DCMTree::TreePtr getTreePtr() const
bool setActiveSourceLength(std::string parameter)
std::string getMaterialIDTag() const
std::string getSourceTypeTag() const
bool getSourceStrengthReferenceDate(std::string ¶meter) const
bool getSourceManufacturer(std::string ¶meter) const
bool getSourceIsotopeHalfLife(std::string ¶meter) const
Item(const Item ©DcmItem)
Item(DCMTree::TreePtr dcmItem)
bool setSourceStrength(std::string parameter)
bool setSourceManufacturer(std::string parameter)
std::string getSourceStrengthTag() const
std::string getActiveSourceLengthTag() const
bool setSourceType(std::string parameter)
bool getMaterialID(std::string ¶meter) const
bool getSourceIsotopeName(std::string ¶meter) const
bool setReferenceAirKermaRate(std::string parameter)
bool getSourceNumber(std::string ¶meter) const
bool setMaterialID(std::string parameter)
std::string getSourceStrengthUnitsTag() const
std::string getSourceIsotopeNameTag() const
bool getSourceStrengthUnits(std::string ¶meter) const
bool getActiveSourceDiameter(std::string ¶meter) const
bool getSourceEncapsulationNominalTransmission(std::string ¶meter) const
std::string getActiveSourceDiameterTag() const
std::string getSourceEncapsulationNominalTransmissionTag() const
std::string getSourceEncapsulationNominalThicknessTag() const
bool getSourceStrength(std::string ¶meter) const
bool setSourceIsotopeHalfLife(std::string parameter)
bool setSourceStrengthUnits(std::string parameter)
bool setSourceStrengthReferenceTime(std::string parameter)
std::string getSourceNumberTag() const
std::string getSourceStrengthReferenceDateTag() const
std::string getSourceManufacturerTag() const
bool setActiveSourceDiameter(std::string parameter)
bool setSourceIsotopeName(std::string parameter)
bool setSourceNumber(std::string parameter)
bool getReferenceAirKermaRate(std::string ¶meter) const
std::string getSourceIsotopeHalfLifeTag() const
bool getSourceStrengthReferenceTime(std::string ¶meter) const
bool setSourceEncapsulationNominalTransmission(std::string parameter)
Item & operator=(const Item ©DcmItem)
std::string getReferenceAirKermaRateTag() const
bool getSourceType(std::string ¶meter) const
bool getSourceEncapsulationNominalThickness(std::string ¶meter) const
bool setSourceEncapsulationNominalThickness(std::string parameter)
bool getActiveSourceLength(std::string ¶meter) const
std::string getSourceStrengthReferenceTimeTag() const
Class to provide access to DRTSourceSequence.
bool getReferenceAirKermaRate(unsigned long idx, std::string ¶meter) const
std::string getSourceIsotopeNameTag() const
std::string getSourceStrengthReferenceDateTag() const
bool getActiveSourceDiameter(unsigned long idx, std::string ¶meter) const
bool setSourceEncapsulationNominalTransmission(unsigned long idx, std::string parameter)
bool setActiveSourceLength(unsigned long idx, std::string parameter)
bool setSourceIsotopeName(unsigned long idx, std::string parameter)
bool setSourceIsotopeHalfLife(unsigned long idx, std::string parameter)
bool getSourceStrength(unsigned long idx, std::string ¶meter) const
bool getSourceIsotopeHalfLife(DCMTree::TreePtr item, std::string ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool getReferenceAirKermaRate(DCMTree::TreePtr item, std::string ¶meter) const
bool setActiveSourceDiameter(unsigned long idx, std::string parameter)
bool setSourceStrengthReferenceDate(unsigned long idx, std::string parameter)
std::vector< DcmDRTSourceSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getMaterialID(DCMTree::TreePtr item, std::string ¶meter) const
bool getSourceStrengthReferenceDate(DCMTree::TreePtr item, std::string ¶meter) const
bool setSourceNumber(unsigned long idx, std::string parameter)
void setSequence(std::vector< DcmDRTSourceSequenceInterface::Item > dcmSequence)
Set the DRTSourceSequence this interface class provides access to.
std::string getSourceNumberTag() const
bool setReferenceAirKermaRate(unsigned long idx, std::string parameter)
bool getSourceStrengthUnits(DCMTree::TreePtr item, std::string ¶meter) const
bool getSourceEncapsulationNominalTransmission(DCMTree::TreePtr item, std::string ¶meter) const
std::string getSourceStrengthUnitsTag() const
bool getSourceIsotopeHalfLife(unsigned long idx, std::string ¶meter) const
bool getSourceStrengthUnits(unsigned long idx, std::string ¶meter) const
bool getSourceNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getSourceIsotopeName(DCMTree::TreePtr item, std::string ¶meter) const
bool getSourceNumber(unsigned long idx, std::string ¶meter) const
std::string getSourceEncapsulationNominalTransmissionTag() const
DcmDRTSourceSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool setSourceStrength(unsigned long idx, std::string parameter)
bool getMaterialID(unsigned long idx, std::string ¶meter) const
bool getSourceStrength(DCMTree::TreePtr item, std::string ¶meter) const
bool getSourceEncapsulationNominalThickness(unsigned long idx, std::string ¶meter) const
bool getSourceType(DCMTree::TreePtr item, std::string ¶meter) const
bool getActiveSourceLength(unsigned long idx, std::string ¶meter) const
bool getSourceStrengthReferenceTime(unsigned long idx, std::string ¶meter) const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool setSourceEncapsulationNominalThickness(unsigned long idx, std::string parameter)
bool setSourceType(unsigned long idx, std::string parameter)
std::string getActiveSourceDiameterTag() const
bool hasSequence() const
Check if the DRTSourceSequence is set.
bool getSourceEncapsulationNominalTransmission(unsigned long idx, std::string ¶meter) const
bool getSourceManufacturer(DCMTree::TreePtr item, std::string ¶meter) const
std::string getSourceEncapsulationNominalThicknessTag() const
std::string getSourceStrengthTag() const
bool setSourceManufacturer(unsigned long idx, std::string parameter)
std::string getSourceStrengthReferenceTimeTag() const
std::vector< DcmDRTSourceSequenceInterface::Item > getSequence() const
Return the DRTSourceSequence this interface class provides access to.
bool getSourceType(unsigned long idx, std::string ¶meter) const
bool getSourceManufacturer(unsigned long idx, std::string ¶meter) const
std::string getActiveSourceLengthTag() const
DcmDRTSourceSequenceInterface(std::vector< DcmDRTSourceSequenceInterface::Item > dcmSequence)
Default Constructor.
DcmDRTSourceSequenceInterface()
bool getActiveSourceLength(DCMTree::TreePtr item, std::string ¶meter) const
std::string getSourceManufacturerTag() const
std::string getReferenceAirKermaRateTag() const
DcmDRTSourceSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getSourceEncapsulationNominalThickness(DCMTree::TreePtr item, std::string ¶meter) const
bool getSourceIsotopeName(unsigned long idx, std::string ¶meter) const
DcmDRTSourceSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getSourceStrengthReferenceDate(unsigned long idx, std::string ¶meter) const
bool getSourceStrengthReferenceTime(DCMTree::TreePtr item, std::string ¶meter) const
bool setMaterialID(unsigned long idx, std::string parameter)
void addItem(DcmDRTSourceSequenceInterface::Item newItem)
bool setSourceStrengthReferenceTime(unsigned long idx, std::string parameter)
bool setSourceStrengthUnits(unsigned long idx, std::string parameter)
std::string getMaterialIDTag() const
bool getActiveSourceDiameter(DCMTree::TreePtr item, std::string ¶meter) const
std::string getSourceTypeTag() const
virtual ~DcmDRTSourceSequenceInterface()
Default virtual Destructor.
bool insertItem(const size_t idx)
Insert an item at the indicated position.
std::string getSourceIsotopeHalfLifeTag() 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