23#ifndef __mlDcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface_H
24#define __mlDcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
123 void setSequence(std::vector<DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface::Item>
dcmSequence) {
129 std::vector<DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface::Item>
getSequence()
const {
136 return (_itemVec.size() != 0);
142 return static_cast<MLint>(_itemVec.size());
148 if (_itemVec.size() >
idx) {
149 return _itemVec[
idx];
158 return _itemVec[_itemVec.size()-1];
168 if (_itemVec.size() >
idx) {
169 std::vector<DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface::Item>::iterator
it = _itemVec.begin();
170 std::advance(
it,
idx);
180 if ( _itemVec.size() >
idx ) {
181 std::vector<DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface::Item>::iterator
it = _itemVec.begin();
182 std::advance(
it,
idx);
191 std::vector<DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool getReferencedBrachyApplicationSetupNumber(std::string ¶meter) const
bool setReferencedBrachyApplicationSetupNumber(std::string parameter)
std::string getBrachyApplicationSetupDoseSpecificationPointTag() const
std::string getBrachyApplicationSetupDoseTag() const
bool setBrachyApplicationSetupDoseSpecificationPoint(std::string parameter)
bool getBrachyApplicationSetupDose(std::string ¶meter) const
Item(DCMTree::TreePtr dcmItem)
DCMTree::TreePtr getTreePtr() const
Item & operator=(const Item ©DcmItem)
Item(const Item ©DcmItem)
std::string getReferencedBrachyApplicationSetupNumberTag() const
bool setBrachyApplicationSetupDose(std::string parameter)
bool getBrachyApplicationSetupDoseSpecificationPoint(std::string ¶meter) const
Class to provide access to DRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModule.
DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getReferencedBrachyApplicationSetupNumber(unsigned long idx, std::string ¶meter) const
void addItem(DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface::Item newItem)
void setSequence(std::vector< DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface::Item > dcmSequence)
Set the DRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModule this interface class prov...
DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface::Item & addItem()
Adds a new item to the sequence.
bool hasSequence() const
Check if the DRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModule is set.
bool getBrachyApplicationSetupDose(DCMTree::TreePtr item, std::string ¶meter) const
bool getBrachyApplicationSetupDoseSpecificationPoint(unsigned long idx, std::string ¶meter) const
bool getBrachyApplicationSetupDose(unsigned long idx, std::string ¶meter) const
DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface(std::vector< DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface::Item > dcmSequence)
Default Constructor.
DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface()
bool setReferencedBrachyApplicationSetupNumber(unsigned long idx, std::string parameter)
DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface(DCMTree::TreePtrVector treePtrSeq)
std::vector< DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface::Item > getSequence() const
Return the DRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModule this interface class p...
virtual ~DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface()
Default virtual Destructor.
bool getReferencedBrachyApplicationSetupNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool setBrachyApplicationSetupDose(unsigned long idx, std::string parameter)
bool setBrachyApplicationSetupDoseSpecificationPoint(unsigned long idx, std::string parameter)
std::vector< DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
std::string getReferencedBrachyApplicationSetupNumberTag() const
std::string getBrachyApplicationSetupDoseTag() const
bool getBrachyApplicationSetupDoseSpecificationPoint(DCMTree::TreePtr item, std::string ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool insertItem(const size_t idx)
Insert an item at the indicated position.
std::string getBrachyApplicationSetupDoseSpecificationPointTag() const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
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