23#ifndef __mlDcmDRTApplicationSetupSequenceInterface_H
24#define __mlDcmDRTApplicationSetupSequenceInterface_H
37#ifndef __mlModuleIncludes_H
54 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
66 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
217 std::vector<DcmDRTApplicationSetupSequenceInterface::Item>
getSequence()
const {
224 return (_itemVec.size() != 0);
230 return static_cast<MLint>(_itemVec.size());
236 if (_itemVec.size() >
idx) {
237 return _itemVec[
idx];
246 return _itemVec[_itemVec.size()-1];
256 if (_itemVec.size() >
idx) {
257 std::vector<DcmDRTApplicationSetupSequenceInterface::Item>::iterator
it = _itemVec.begin();
258 std::advance(
it,
idx);
268 if ( _itemVec.size() >
idx ) {
269 std::vector<DcmDRTApplicationSetupSequenceInterface::Item>::iterator
it = _itemVec.begin();
270 std::advance(
it,
idx);
279 std::vector<DcmDRTApplicationSetupSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool getApplicationSetupNumber(std::string ¶meter) const
bool getTemplateNumber(std::string ¶meter) const
DCMTree::TreePtr getTreePtr() const
std::string getApplicationSetupNameTag() const
bool setApplicationSetupNumber(std::string parameter)
bool setTemplateName(std::string parameter)
std::string getTemplateTypeTag() const
bool getApplicationSetupType(std::string ¶meter) const
DcmDRTBrachyAccessoryDeviceSequenceInterface getBrachyAccessoryDeviceSequence() const
void setChannelSequence(DcmDRTChannelSequenceInterface seq)
bool setTemplateType(std::string parameter)
bool getApplicationSetupManufacturer(std::string ¶meter) const
std::string getTemplateNameTag() const
std::string getApplicationSetupTypeTag() const
bool setTemplateNumber(std::string parameter)
bool getApplicationSetupName(std::string ¶meter) const
bool setApplicationSetupName(std::string parameter)
DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface getReferencedReferenceImageSequence() const
void setBrachyAccessoryDeviceSequence(DcmDRTBrachyAccessoryDeviceSequenceInterface seq)
bool setApplicationSetupType(std::string parameter)
bool setApplicationSetupManufacturer(std::string parameter)
bool getTemplateName(std::string ¶meter) const
std::string getApplicationSetupNumberTag() const
std::string getReferencedReferenceImageSequenceTag() const
std::string getTemplateNumberTag() const
Item(DCMTree::TreePtr dcmItem)
Item(const Item ©DcmItem)
Item & operator=(const Item ©DcmItem)
std::string getApplicationSetupManufacturerTag() const
DcmDRTChannelSequenceInterface getChannelSequence() const
bool getTotalReferenceAirKerma(std::string ¶meter) const
std::string getBrachyAccessoryDeviceSequenceTag() const
void setReferencedReferenceImageSequence(DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface seq)
bool getTemplateType(std::string ¶meter) const
std::string getChannelSequenceTag() const
bool setTotalReferenceAirKerma(std::string parameter)
std::string getTotalReferenceAirKermaTag() const
Class to provide access to DRTApplicationSetupSequence.
std::string getApplicationSetupNumberTag() const
DcmDRTChannelSequenceInterface getChannelSequence(unsigned long idx) const
std::vector< DcmDRTApplicationSetupSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
DcmDRTApplicationSetupSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
DcmDRTBrachyAccessoryDeviceSequenceInterface getBrachyAccessoryDeviceSequence(unsigned long idx) const
bool getApplicationSetupType(unsigned long idx, std::string ¶meter) const
void setReferencedReferenceImageSequence(DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface seq, unsigned long idx)
bool getTemplateName(DCMTree::TreePtr item, std::string ¶meter) const
bool getApplicationSetupName(DCMTree::TreePtr item, std::string ¶meter) const
bool getTemplateType(unsigned long idx, std::string ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
std::string getReferencedReferenceImageSequenceTag() const
bool setApplicationSetupNumber(unsigned long idx, std::string parameter)
bool setApplicationSetupName(unsigned long idx, std::string parameter)
bool getApplicationSetupName(unsigned long idx, std::string ¶meter) const
void addItem(DcmDRTApplicationSetupSequenceInterface::Item newItem)
std::vector< DcmDRTApplicationSetupSequenceInterface::Item > getSequence() const
Return the DRTApplicationSetupSequence this interface class provides access to.
bool getTemplateNumber(unsigned long idx, std::string ¶meter) const
std::string getBrachyAccessoryDeviceSequenceTag() const
void setBrachyAccessoryDeviceSequence(DcmDRTBrachyAccessoryDeviceSequenceInterface seq, unsigned long idx)
std::string getChannelSequenceTag() const
DcmDRTApplicationSetupSequenceInterface(std::vector< DcmDRTApplicationSetupSequenceInterface::Item > dcmSequence)
Default Constructor.
bool getApplicationSetupNumber(unsigned long idx, std::string ¶meter) const
bool getApplicationSetupNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getApplicationSetupManufacturer(unsigned long idx, std::string ¶meter) const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
DcmDRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModuleInterface getReferencedReferenceImageSequence(unsigned long idx) const
bool getTotalReferenceAirKerma(unsigned long idx, std::string ¶meter) const
bool setTemplateType(unsigned long idx, std::string parameter)
std::string getTemplateNumberTag() const
DcmDRTApplicationSetupSequenceInterface()
bool getApplicationSetupManufacturer(DCMTree::TreePtr item, std::string ¶meter) const
bool setTotalReferenceAirKerma(unsigned long idx, std::string parameter)
bool setTemplateNumber(unsigned long idx, std::string parameter)
std::string getTemplateTypeTag() const
bool setTemplateName(unsigned long idx, std::string parameter)
bool setApplicationSetupManufacturer(unsigned long idx, std::string parameter)
void setChannelSequence(DcmDRTChannelSequenceInterface seq, unsigned long idx)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getTemplateType(DCMTree::TreePtr item, std::string ¶meter) const
virtual ~DcmDRTApplicationSetupSequenceInterface()
Default virtual Destructor.
DcmDRTApplicationSetupSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getApplicationSetupType(DCMTree::TreePtr item, std::string ¶meter) const
std::string getApplicationSetupNameTag() const
std::string getTotalReferenceAirKermaTag() const
bool setApplicationSetupType(unsigned long idx, std::string parameter)
bool getTemplateNumber(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTApplicationSetupSequenceInterface::Item & addItem()
Adds a new item to the sequence.
std::string getTemplateNameTag() const
std::string getApplicationSetupTypeTag() const
bool getTemplateName(unsigned long idx, std::string ¶meter) const
std::string getApplicationSetupManufacturerTag() const
bool hasSequence() const
Check if the DRTApplicationSetupSequence is set.
bool getTotalReferenceAirKerma(DCMTree::TreePtr item, std::string ¶meter) const
void setSequence(std::vector< DcmDRTApplicationSetupSequenceInterface::Item > dcmSequence)
Set the DRTApplicationSetupSequence this interface class provides access to.
Class to provide access to DRTBrachyAccessoryDeviceSequence.
Class to provide access to DRTChannelSequence.
Class to provide access to DRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModule.
Class to provide access to DRTBrachyAccessoryDeviceSequence.
Class to provide access to DRTChannelSequence.
Class to provide access to DRTReferencedReferenceImageSequenceInRTBrachyApplicationSetupsModule.
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