23#ifndef __mlDcmDRTFractionGroupSummarySequenceInterface_H
24#define __mlDcmDRTFractionGroupSummarySequenceInterface_H
35#ifndef __mlModuleIncludes_H
52 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
64 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
184 std::vector<DcmDRTFractionGroupSummarySequenceInterface::Item>
getSequence()
const {
191 return (_itemVec.size() != 0);
197 return static_cast<MLint>(_itemVec.size());
203 if (_itemVec.size() >
idx) {
204 return _itemVec[
idx];
213 return _itemVec[_itemVec.size()-1];
223 if (_itemVec.size() >
idx) {
224 std::vector<DcmDRTFractionGroupSummarySequenceInterface::Item>::iterator
it = _itemVec.begin();
225 std::advance(
it,
idx);
235 if ( _itemVec.size() >
idx ) {
236 std::vector<DcmDRTFractionGroupSummarySequenceInterface::Item>::iterator
it = _itemVec.begin();
237 std::advance(
it,
idx);
246 std::vector<DcmDRTFractionGroupSummarySequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool setReferencedDoseReferenceNumber(std::string parameter)
bool setNumberOfFractionsPlanned(std::string parameter)
std::string getFractionStatusSummarySequenceTag() const
std::string getReferencedFractionGroupNumberTag() const
DcmDRTFractionStatusSummarySequenceInterface getFractionStatusSummarySequence() const
std::string getFractionGroupTypeTag() const
std::string getNumberOfFractionsDeliveredTag() const
Item(DCMTree::TreePtr dcmItem)
Item & operator=(const Item ©DcmItem)
bool setCumulativeDoseToDoseReference(std::string parameter)
bool getNumberOfFractionsPlanned(std::string ¶meter) const
bool getReferencedFractionGroupNumber(std::string ¶meter) const
std::string getDoseReferenceDescriptionTag() const
DCMTree::TreePtr getTreePtr() const
bool getCumulativeDoseToDoseReference(std::string ¶meter) const
bool setReferencedFractionGroupNumber(std::string parameter)
std::string getNumberOfFractionsPlannedTag() const
bool setFractionGroupType(std::string parameter)
bool getFractionGroupType(std::string ¶meter) const
bool getNumberOfFractionsDelivered(std::string ¶meter) const
std::string getReferencedDoseReferenceNumberTag() const
void setFractionStatusSummarySequence(DcmDRTFractionStatusSummarySequenceInterface seq)
bool getDoseReferenceDescription(std::string ¶meter) const
std::string getCumulativeDoseToDoseReferenceTag() const
bool getReferencedDoseReferenceNumber(std::string ¶meter) const
Item(const Item ©DcmItem)
bool setDoseReferenceDescription(std::string parameter)
bool setNumberOfFractionsDelivered(std::string parameter)
Class to provide access to DRTFractionGroupSummarySequence.
std::string getReferencedDoseReferenceNumberTag() const
bool getFractionGroupType(DCMTree::TreePtr item, std::string ¶meter) const
bool getDoseReferenceDescription(unsigned long idx, std::string ¶meter) const
std::string getCumulativeDoseToDoseReferenceTag() const
DcmDRTFractionGroupSummarySequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
std::string getNumberOfFractionsPlannedTag() const
DcmDRTFractionGroupSummarySequenceInterface(std::vector< DcmDRTFractionGroupSummarySequenceInterface::Item > dcmSequence)
Default Constructor.
DcmDRTFractionGroupSummarySequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
std::string getDoseReferenceDescriptionTag() const
std::string getFractionStatusSummarySequenceTag() const
bool getNumberOfFractionsDelivered(DCMTree::TreePtr item, std::string ¶meter) const
bool getFractionGroupType(unsigned long idx, std::string ¶meter) const
bool getCumulativeDoseToDoseReference(unsigned long idx, std::string ¶meter) const
bool getReferencedDoseReferenceNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getNumberOfFractionsPlanned(DCMTree::TreePtr item, std::string ¶meter) const
void addItem(DcmDRTFractionGroupSummarySequenceInterface::Item newItem)
bool getNumberOfFractionsDelivered(unsigned long idx, std::string ¶meter) const
std::string getNumberOfFractionsDeliveredTag() const
std::string getReferencedFractionGroupNumberTag() const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
std::string getFractionGroupTypeTag() const
bool getReferencedFractionGroupNumber(DCMTree::TreePtr item, std::string ¶meter) const
virtual ~DcmDRTFractionGroupSummarySequenceInterface()
Default virtual Destructor.
bool getCumulativeDoseToDoseReference(DCMTree::TreePtr item, std::string ¶meter) const
bool getNumberOfFractionsPlanned(unsigned long idx, std::string ¶meter) const
bool getReferencedDoseReferenceNumber(unsigned long idx, std::string ¶meter) const
void setFractionStatusSummarySequence(DcmDRTFractionStatusSummarySequenceInterface seq, unsigned long idx)
bool setCumulativeDoseToDoseReference(unsigned long idx, std::string parameter)
bool setNumberOfFractionsDelivered(unsigned long idx, std::string parameter)
bool setFractionGroupType(unsigned long idx, std::string parameter)
bool hasSequence() const
Check if the DRTFractionGroupSummarySequence is set.
void setSequence(std::vector< DcmDRTFractionGroupSummarySequenceInterface::Item > dcmSequence)
Set the DRTFractionGroupSummarySequence this interface class provides access to.
bool setNumberOfFractionsPlanned(unsigned long idx, std::string parameter)
bool setDoseReferenceDescription(unsigned long idx, std::string parameter)
std::vector< DcmDRTFractionGroupSummarySequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
std::vector< DcmDRTFractionGroupSummarySequenceInterface::Item > getSequence() const
Return the DRTFractionGroupSummarySequence this interface class provides access to.
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
DcmDRTFractionGroupSummarySequenceInterface(DCMTree::TreePtrVector treePtrSeq)
DcmDRTFractionStatusSummarySequenceInterface getFractionStatusSummarySequence(unsigned long idx) const
bool setReferencedDoseReferenceNumber(unsigned long idx, std::string parameter)
bool getReferencedFractionGroupNumber(unsigned long idx, std::string ¶meter) const
DcmDRTFractionGroupSummarySequenceInterface()
bool getDoseReferenceDescription(DCMTree::TreePtr item, std::string ¶meter) const
bool setReferencedFractionGroupNumber(unsigned long idx, std::string parameter)
Class to provide access to DRTFractionStatusSummarySequence.
Class to provide access to DRTFractionStatusSummarySequence.
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