23#ifndef __mlDcmDRTContrastBolusAgentSequenceInterface_H
24#define __mlDcmDRTContrastBolusAgentSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
206 std::vector<DcmDRTContrastBolusAgentSequenceInterface::Item>
getSequence()
const {
213 return (_itemVec.size() != 0);
219 return static_cast<MLint>(_itemVec.size());
225 if (_itemVec.size() >
idx) {
226 return _itemVec[
idx];
235 return _itemVec[_itemVec.size()-1];
245 if (_itemVec.size() >
idx) {
246 std::vector<DcmDRTContrastBolusAgentSequenceInterface::Item>::iterator
it = _itemVec.begin();
247 std::advance(
it,
idx);
257 if ( _itemVec.size() >
idx ) {
258 std::vector<DcmDRTContrastBolusAgentSequenceInterface::Item>::iterator
it = _itemVec.begin();
259 std::advance(
it,
idx);
268 std::vector<DcmDRTContrastBolusAgentSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getContextGroupExtensionFlagTag() const
bool getMappingResource(std::string ¶meter) const
bool setContextGroupLocalVersion(std::string parameter)
bool getCodeValue(std::string ¶meter) const
Item(const Item ©DcmItem)
std::string getContextIdentifierTag() const
bool getCodingSchemeDesignator(std::string ¶meter) const
std::string getCodingSchemeDesignatorTag() const
bool getCodeMeaning(std::string ¶meter) const
bool getContextGroupExtensionFlag(std::string ¶meter) const
bool setContextGroupVersion(std::string parameter)
bool getContextGroupLocalVersion(std::string ¶meter) const
Item & operator=(const Item ©DcmItem)
bool setContextGroupExtensionFlag(std::string parameter)
bool setContextIdentifier(std::string parameter)
bool setCodeValue(std::string parameter)
bool getCodingSchemeVersion(std::string ¶meter) const
std::string getCodeValueTag() const
std::string getCodingSchemeVersionTag() const
bool setCodeMeaning(std::string parameter)
bool setContextGroupExtensionCreatorUID(std::string parameter)
bool setMappingResource(std::string parameter)
bool setCodingSchemeDesignator(std::string parameter)
bool getContextGroupExtensionCreatorUID(std::string ¶meter) const
std::string getContextGroupExtensionCreatorUIDTag() const
std::string getContextGroupVersionTag() const
bool getContextGroupVersion(std::string ¶meter) const
std::string getMappingResourceTag() const
bool setCodingSchemeVersion(std::string parameter)
std::string getCodeMeaningTag() const
bool getContextIdentifier(std::string ¶meter) const
std::string getContextGroupLocalVersionTag() const
DCMTree::TreePtr getTreePtr() const
Item(DCMTree::TreePtr dcmItem)
Class to provide access to DRTContrastBolusAgentSequence.
DcmDRTContrastBolusAgentSequenceInterface(std::vector< DcmDRTContrastBolusAgentSequenceInterface::Item > dcmSequence)
Default Constructor.
std::vector< DcmDRTContrastBolusAgentSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool setContextIdentifier(unsigned long idx, std::string parameter)
bool getContextGroupExtensionCreatorUID(unsigned long idx, std::string ¶meter) const
std::string getCodeMeaningTag() const
std::string getMappingResourceTag() const
bool hasSequence() const
Check if the DRTContrastBolusAgentSequence is set.
DcmDRTContrastBolusAgentSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getCodingSchemeVersion(DCMTree::TreePtr item, std::string ¶meter) const
std::string getContextGroupVersionTag() const
DcmDRTContrastBolusAgentSequenceInterface()
bool getCodeValue(DCMTree::TreePtr item, std::string ¶meter) const
std::string getCodingSchemeVersionTag() const
bool getContextGroupVersion(DCMTree::TreePtr item, std::string ¶meter) const
bool getContextIdentifier(unsigned long idx, std::string ¶meter) const
bool setCodingSchemeVersion(unsigned long idx, std::string parameter)
bool getContextGroupLocalVersion(unsigned long idx, std::string ¶meter) const
bool setMappingResource(unsigned long idx, std::string parameter)
bool getMappingResource(unsigned long idx, std::string ¶meter) const
bool getCodeValue(unsigned long idx, std::string ¶meter) const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool setContextGroupExtensionFlag(unsigned long idx, std::string parameter)
std::string getContextGroupExtensionFlagTag() const
bool getCodingSchemeVersion(unsigned long idx, std::string ¶meter) const
bool setCodingSchemeDesignator(unsigned long idx, std::string parameter)
bool setCodeValue(unsigned long idx, std::string parameter)
std::string getContextIdentifierTag() const
bool getContextGroupLocalVersion(DCMTree::TreePtr item, std::string ¶meter) const
bool getCodingSchemeDesignator(unsigned long idx, std::string ¶meter) const
bool getContextGroupExtensionFlag(unsigned long idx, std::string ¶meter) const
std::string getContextGroupLocalVersionTag() const
std::string getCodeValueTag() const
std::string getContextGroupExtensionCreatorUIDTag() const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool setContextGroupExtensionCreatorUID(unsigned long idx, std::string parameter)
DcmDRTContrastBolusAgentSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
void setSequence(std::vector< DcmDRTContrastBolusAgentSequenceInterface::Item > dcmSequence)
Set the DRTContrastBolusAgentSequence this interface class provides access to.
void addItem(DcmDRTContrastBolusAgentSequenceInterface::Item newItem)
bool getCodingSchemeDesignator(DCMTree::TreePtr item, std::string ¶meter) const
bool setContextGroupVersion(unsigned long idx, std::string parameter)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getMappingResource(DCMTree::TreePtr item, std::string ¶meter) const
bool getCodeMeaning(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTContrastBolusAgentSequenceInterface::Item > getSequence() const
Return the DRTContrastBolusAgentSequence this interface class provides access to.
bool getContextGroupExtensionCreatorUID(DCMTree::TreePtr item, std::string ¶meter) const
bool getContextIdentifier(DCMTree::TreePtr item, std::string ¶meter) const
virtual ~DcmDRTContrastBolusAgentSequenceInterface()
Default virtual Destructor.
bool getContextGroupExtensionFlag(DCMTree::TreePtr item, std::string ¶meter) const
bool setCodeMeaning(unsigned long idx, std::string parameter)
DcmDRTContrastBolusAgentSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool getCodeMeaning(DCMTree::TreePtr item, std::string ¶meter) const
std::string getCodingSchemeDesignatorTag() const
bool setContextGroupLocalVersion(unsigned long idx, std::string parameter)
bool getContextGroupVersion(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