23#ifndef __mlDcmDRTFractionGroupSequenceInterface_H
24#define __mlDcmDRTFractionGroupSequenceInterface_H
38#ifndef __mlModuleIncludes_H
55 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
67 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
228 std::vector<DcmDRTFractionGroupSequenceInterface::Item>
getSequence()
const {
235 return (_itemVec.size() != 0);
241 return static_cast<MLint>(_itemVec.size());
247 if (_itemVec.size() >
idx) {
248 return _itemVec[
idx];
257 return _itemVec[_itemVec.size()-1];
267 if (_itemVec.size() >
idx) {
268 std::vector<DcmDRTFractionGroupSequenceInterface::Item>::iterator
it = _itemVec.begin();
269 std::advance(
it,
idx);
279 if ( _itemVec.size() >
idx ) {
280 std::vector<DcmDRTFractionGroupSequenceInterface::Item>::iterator
it = _itemVec.begin();
281 std::advance(
it,
idx);
290 std::vector<DcmDRTFractionGroupSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getReferencedBeamSequenceTag() const
std::string getReferencedDoseReferenceSequenceTag() const
bool setNumberOfBeams(std::string parameter)
DCMTree::TreePtr getTreePtr() const
void setReferencedDoseSequence(DcmDRTReferencedDoseSequenceInterface seq)
Item(DCMTree::TreePtr dcmItem)
bool setNumberOfFractionsPlanned(std::string parameter)
DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface getReferencedDoseReferenceSequence() const
bool setRepeatFractionCycleLength(std::string parameter)
std::string getFractionPatternTag() const
bool setFractionGroupNumber(std::string parameter)
bool getNumberOfFractionPatternDigitsPerDay(std::string ¶meter) const
bool getNumberOfBrachyApplicationSetups(std::string ¶meter) const
void setReferencedBrachyApplicationSetupSequence(DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface seq)
bool setNumberOfBrachyApplicationSetups(std::string parameter)
DcmDRTReferencedDoseSequenceInterface getReferencedDoseSequence() const
std::string getNumberOfFractionPatternDigitsPerDayTag() const
std::string getRepeatFractionCycleLengthTag() const
bool setNumberOfFractionPatternDigitsPerDay(std::string parameter)
std::string getReferencedBrachyApplicationSetupSequenceTag() const
bool setFractionPattern(std::string parameter)
std::string getFractionGroupDescriptionTag() const
std::string getFractionGroupNumberTag() const
std::string getNumberOfFractionsPlannedTag() const
bool getRepeatFractionCycleLength(std::string ¶meter) const
bool getFractionGroupDescription(std::string ¶meter) const
Item(const Item ©DcmItem)
bool getNumberOfBeams(std::string ¶meter) const
bool getFractionPattern(std::string ¶meter) const
Item & operator=(const Item ©DcmItem)
bool setFractionGroupDescription(std::string parameter)
std::string getNumberOfBrachyApplicationSetupsTag() const
bool getNumberOfFractionsPlanned(std::string ¶meter) const
void setReferencedDoseReferenceSequence(DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface seq)
DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface getReferencedBrachyApplicationSetupSequence() const
std::string getReferencedDoseSequenceTag() const
DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface getReferencedBeamSequence() const
bool getFractionGroupNumber(std::string ¶meter) const
std::string getNumberOfBeamsTag() const
void setReferencedBeamSequence(DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface seq)
Class to provide access to DRTFractionGroupSequence.
bool getNumberOfFractionsPlanned(DCMTree::TreePtr item, std::string ¶meter) const
bool getFractionGroupNumber(unsigned long idx, std::string ¶meter) const
bool getRepeatFractionCycleLength(DCMTree::TreePtr item, std::string ¶meter) const
bool setNumberOfFractionPatternDigitsPerDay(unsigned long idx, std::string parameter)
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface getReferencedDoseReferenceSequence(unsigned long idx) const
bool getNumberOfFractionPatternDigitsPerDay(unsigned long idx, std::string ¶meter) const
bool getFractionPattern(unsigned long idx, std::string ¶meter) const
std::string getNumberOfFractionPatternDigitsPerDayTag() const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
void addItem(DcmDRTFractionGroupSequenceInterface::Item newItem)
DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface getReferencedBeamSequence(unsigned long idx) const
DcmDRTFractionGroupSequenceInterface::Item & addItem()
Adds a new item to the sequence.
std::vector< DcmDRTFractionGroupSequenceInterface::Item > getSequence() const
Return the DRTFractionGroupSequence this interface class provides access to.
bool getNumberOfBeams(DCMTree::TreePtr item, std::string ¶meter) const
std::string getFractionGroupDescriptionTag() const
bool getNumberOfBrachyApplicationSetups(DCMTree::TreePtr item, std::string ¶meter) const
bool setRepeatFractionCycleLength(unsigned long idx, std::string parameter)
bool getNumberOfFractionsPlanned(unsigned long idx, std::string ¶meter) const
std::string getNumberOfBrachyApplicationSetupsTag() const
std::string getReferencedDoseReferenceSequenceTag() const
void setReferencedDoseSequence(DcmDRTReferencedDoseSequenceInterface seq, unsigned long idx)
std::string getNumberOfBeamsTag() const
DcmDRTFractionGroupSequenceInterface()
std::string getReferencedBrachyApplicationSetupSequenceTag() const
DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface getReferencedBrachyApplicationSetupSequence(unsigned long idx) const
DcmDRTReferencedDoseSequenceInterface getReferencedDoseSequence(unsigned long idx) const
bool getRepeatFractionCycleLength(unsigned long idx, std::string ¶meter) const
bool setNumberOfBrachyApplicationSetups(unsigned long idx, std::string parameter)
bool getFractionGroupDescription(unsigned long idx, std::string ¶meter) const
std::string getReferencedBeamSequenceTag() const
std::vector< DcmDRTFractionGroupSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getFractionPattern(DCMTree::TreePtr item, std::string ¶meter) const
void setReferencedDoseReferenceSequence(DcmDRTReferencedDoseReferenceSequenceInRTFractionSchemeModuleInterface seq, unsigned long idx)
bool setNumberOfFractionsPlanned(unsigned long idx, std::string parameter)
DcmDRTFractionGroupSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool hasSequence() const
Check if the DRTFractionGroupSequence is set.
bool setFractionPattern(unsigned long idx, std::string parameter)
bool getNumberOfFractionPatternDigitsPerDay(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTFractionGroupSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
DcmDRTFractionGroupSequenceInterface(std::vector< DcmDRTFractionGroupSequenceInterface::Item > dcmSequence)
Default Constructor.
std::string getRepeatFractionCycleLengthTag() const
void setReferencedBeamSequence(DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface seq, unsigned long idx)
void setSequence(std::vector< DcmDRTFractionGroupSequenceInterface::Item > dcmSequence)
Set the DRTFractionGroupSequence this interface class provides access to.
std::string getFractionGroupNumberTag() const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool setNumberOfBeams(unsigned long idx, std::string parameter)
bool setFractionGroupNumber(unsigned long idx, std::string parameter)
void setReferencedBrachyApplicationSetupSequence(DcmDRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModuleInterface seq, unsigned long idx)
std::string getFractionPatternTag() const
bool getFractionGroupNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getNumberOfBrachyApplicationSetups(unsigned long idx, std::string ¶meter) const
std::string getReferencedDoseSequenceTag() const
bool setFractionGroupDescription(unsigned long idx, std::string parameter)
std::string getNumberOfFractionsPlannedTag() const
bool getNumberOfBeams(unsigned long idx, std::string ¶meter) const
virtual ~DcmDRTFractionGroupSequenceInterface()
Default virtual Destructor.
bool getFractionGroupDescription(DCMTree::TreePtr item, std::string ¶meter) const
Class to provide access to DRTReferencedBeamSequenceInRTFractionSchemeModule.
Class to provide access to DRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModule.
Class to provide access to DRTReferencedDoseReferenceSequenceInRTFractionSchemeModule.
Class to provide access to DRTReferencedDoseSequence.
Class to provide access to DRTReferencedBeamSequenceInRTFractionSchemeModule.
Class to provide access to DRTReferencedBrachyApplicationSetupSequenceInRTFractionSchemeModule.
Class to provide access to DRTReferencedDoseReferenceSequenceInRTFractionSchemeModule.
Class to provide access to DRTReferencedDoseSequence.
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