23#ifndef __mlDcmDRTReferencedBeamSequenceInRTDoseModuleInterface_H
24#define __mlDcmDRTReferencedBeamSequenceInRTDoseModuleInterface_H
35#ifndef __mlModuleIncludes_H
52 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
64 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
129 std::vector<DcmDRTReferencedBeamSequenceInRTDoseModuleInterface::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<DcmDRTReferencedBeamSequenceInRTDoseModuleInterface::Item>::iterator
it = _itemVec.begin();
170 std::advance(
it,
idx);
180 if ( _itemVec.size() >
idx ) {
181 std::vector<DcmDRTReferencedBeamSequenceInRTDoseModuleInterface::Item>::iterator
it = _itemVec.begin();
182 std::advance(
it,
idx);
191 std::vector<DcmDRTReferencedBeamSequenceInRTDoseModuleInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool getReferencedBeamNumber(std::string ¶meter) const
std::string getReferencedBrachyApplicationSetupNumberTag() const
void setReferencedControlPointSequence(DcmDRTReferencedControlPointSequenceInterface seq)
std::string getReferencedBeamNumberTag() const
DcmDRTReferencedControlPointSequenceInterface getReferencedControlPointSequence() const
Item & operator=(const Item ©DcmItem)
DCMTree::TreePtr getTreePtr() const
std::string getReferencedControlPointSequenceTag() const
bool setReferencedBrachyApplicationSetupNumber(std::string parameter)
bool getReferencedBrachyApplicationSetupNumber(std::string ¶meter) const
Item(DCMTree::TreePtr dcmItem)
bool setReferencedBeamNumber(std::string parameter)
Item(const Item ©DcmItem)
Class to provide access to DRTReferencedBeamSequenceInRTDoseModule.
bool setReferencedBrachyApplicationSetupNumber(unsigned long idx, std::string parameter)
bool getReferencedBrachyApplicationSetupNumber(unsigned long idx, std::string ¶meter) const
virtual ~DcmDRTReferencedBeamSequenceInRTDoseModuleInterface()
Default virtual Destructor.
DcmDRTReferencedBeamSequenceInRTDoseModuleInterface()
std::string getReferencedControlPointSequenceTag() const
std::string getReferencedBrachyApplicationSetupNumberTag() const
std::vector< DcmDRTReferencedBeamSequenceInRTDoseModuleInterface::Item > getSequence() const
Return the DRTReferencedBeamSequenceInRTDoseModule this interface class provides access to.
std::vector< DcmDRTReferencedBeamSequenceInRTDoseModuleInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool getReferencedBeamNumber(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTReferencedControlPointSequenceInterface getReferencedControlPointSequence(unsigned long idx) const
bool hasSequence() const
Check if the DRTReferencedBeamSequenceInRTDoseModule is set.
void addItem(DcmDRTReferencedBeamSequenceInRTDoseModuleInterface::Item newItem)
void setSequence(std::vector< DcmDRTReferencedBeamSequenceInRTDoseModuleInterface::Item > dcmSequence)
Set the DRTReferencedBeamSequenceInRTDoseModule this interface class provides access to.
DcmDRTReferencedBeamSequenceInRTDoseModuleInterface(DCMTree::TreePtrVector treePtrSeq)
std::string getReferencedBeamNumberTag() const
void setReferencedControlPointSequence(DcmDRTReferencedControlPointSequenceInterface seq, unsigned long idx)
DcmDRTReferencedBeamSequenceInRTDoseModuleInterface::Item & addItem()
Adds a new item to the sequence.
bool getReferencedBrachyApplicationSetupNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool setReferencedBeamNumber(unsigned long idx, std::string parameter)
DcmDRTReferencedBeamSequenceInRTDoseModuleInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
DcmDRTReferencedBeamSequenceInRTDoseModuleInterface(std::vector< DcmDRTReferencedBeamSequenceInRTDoseModuleInterface::Item > dcmSequence)
Default Constructor.
bool getReferencedBeamNumber(unsigned long idx, std::string ¶meter) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
Class to provide access to DRTReferencedControlPointSequence.
Class to provide access to DRTReferencedControlPointSequence.
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