23#ifndef __mlDcmDRTReferencedFractionGroupSequenceInterface_H
24#define __mlDcmDRTReferencedFractionGroupSequenceInterface_H
36#ifndef __mlModuleIncludes_H
53 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
65 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
129 std::vector<DcmDRTReferencedFractionGroupSequenceInterface::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<DcmDRTReferencedFractionGroupSequenceInterface::Item>::iterator
it = _itemVec.begin();
170 std::advance(
it,
idx);
180 if ( _itemVec.size() >
idx ) {
181 std::vector<DcmDRTReferencedFractionGroupSequenceInterface::Item>::iterator
it = _itemVec.begin();
182 std::advance(
it,
idx);
191 std::vector<DcmDRTReferencedFractionGroupSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Class to provide access to DRTReferencedBeamSequenceInRTDoseModule.
Class to provide access to DRTReferencedBrachyApplicationSetupSequenceInRTDoseModule.
bool getReferencedFractionGroupNumber(std::string ¶meter) const
DcmDRTReferencedBeamSequenceInRTDoseModuleInterface getReferencedBeamSequence() const
void setReferencedBrachyApplicationSetupSequence(DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface seq)
void setReferencedBeamSequence(DcmDRTReferencedBeamSequenceInRTDoseModuleInterface seq)
std::string getReferencedBrachyApplicationSetupSequenceTag() const
Item(DCMTree::TreePtr dcmItem)
std::string getReferencedFractionGroupNumberTag() const
std::string getReferencedBeamSequenceTag() const
bool setReferencedFractionGroupNumber(std::string parameter)
Item(const Item ©DcmItem)
DCMTree::TreePtr getTreePtr() const
Item & operator=(const Item ©DcmItem)
DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface getReferencedBrachyApplicationSetupSequence() const
Class to provide access to DRTReferencedFractionGroupSequence.
DcmDRTReferencedBeamSequenceInRTDoseModuleInterface getReferencedBeamSequence(unsigned long idx) const
void setSequence(std::vector< DcmDRTReferencedFractionGroupSequenceInterface::Item > dcmSequence)
Set the DRTReferencedFractionGroupSequence this interface class provides access to.
void setReferencedBeamSequence(DcmDRTReferencedBeamSequenceInRTDoseModuleInterface seq, unsigned long idx)
DcmDRTReferencedFractionGroupSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
std::string getReferencedBrachyApplicationSetupSequenceTag() const
bool setReferencedFractionGroupNumber(unsigned long idx, std::string parameter)
DcmDRTReferencedFractionGroupSequenceInterface()
DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface getReferencedBrachyApplicationSetupSequence(unsigned long idx) const
DcmDRTReferencedFractionGroupSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool insertItem(const size_t idx)
Insert an item at the indicated position.
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool hasSequence() const
Check if the DRTReferencedFractionGroupSequence is set.
DcmDRTReferencedFractionGroupSequenceInterface(std::vector< DcmDRTReferencedFractionGroupSequenceInterface::Item > dcmSequence)
Default Constructor.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
void addItem(DcmDRTReferencedFractionGroupSequenceInterface::Item newItem)
virtual ~DcmDRTReferencedFractionGroupSequenceInterface()
Default virtual Destructor.
bool getReferencedFractionGroupNumber(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTReferencedFractionGroupSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
std::vector< DcmDRTReferencedFractionGroupSequenceInterface::Item > getSequence() const
Return the DRTReferencedFractionGroupSequence this interface class provides access to.
std::string getReferencedFractionGroupNumberTag() const
std::string getReferencedBeamSequenceTag() const
void setReferencedBrachyApplicationSetupSequence(DcmDRTReferencedBrachyApplicationSetupSequenceInRTDoseModuleInterface seq, unsigned long idx)
bool getReferencedFractionGroupNumber(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTReferencedFractionGroupSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
Class to provide access to DRTReferencedBeamSequenceInRTDoseModule.
Class to provide access to DRTReferencedBrachyApplicationSetupSequenceInRTDoseModule.
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