23#ifndef __mlDcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface_H
24#define __mlDcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
173 std::vector<DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item>
getSequence()
const {
180 return (_itemVec.size() != 0);
186 return static_cast<MLint>(_itemVec.size());
192 if (_itemVec.size() >
idx) {
193 return _itemVec[
idx];
202 return _itemVec[_itemVec.size()-1];
212 if (_itemVec.size() >
idx) {
213 std::vector<DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item>::iterator
it = _itemVec.begin();
214 std::advance(
it,
idx);
224 if ( _itemVec.size() >
idx ) {
225 std::vector<DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item>::iterator
it = _itemVec.begin();
226 std::advance(
it,
idx);
235 std::vector<DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getBeamDoseTag() const
bool setBeamDosePointDepth(float parameter)
bool setBeamDoseSpecificationPoint(std::string parameter)
DCMTree::TreePtr getTreePtr() const
std::string getBeamDosePointEquivalentDepthTag() const
bool setReferencedBeamNumber(std::string parameter)
bool getBeamDoseSpecificationPoint(std::string ¶meter) const
std::string getBeamDosePointSSDTag() const
bool setBeamMeterset(std::string parameter)
bool getBeamDosePointEquivalentDepth(float ¶meter) const
std::string getBeamDosePointDepthTag() const
bool getBeamDose(std::string ¶meter) const
std::string getReferencedBeamNumberTag() const
std::string getBeamDoseSpecificationPointTag() const
Item(const Item ©DcmItem)
Item & operator=(const Item ©DcmItem)
bool getBeamMeterset(std::string ¶meter) const
bool getReferencedBeamNumber(std::string ¶meter) const
bool setBeamDose(std::string parameter)
bool setBeamDosePointEquivalentDepth(float parameter)
bool getBeamDosePointSSD(float ¶meter) const
bool setBeamDosePointSSD(float parameter)
std::string getBeamMetersetTag() const
bool getBeamDosePointDepth(float ¶meter) const
Item(DCMTree::TreePtr dcmItem)
Class to provide access to DRTReferencedBeamSequenceInRTFractionSchemeModule.
std::string getBeamDoseTag() const
bool getBeamDose(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface(DCMTree::TreePtrVector treePtrSeq)
std::vector< DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
void addItem(DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item newItem)
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool setBeamMeterset(unsigned long idx, std::string parameter)
bool setReferencedBeamNumber(unsigned long idx, std::string parameter)
bool getBeamDosePointEquivalentDepth(unsigned long idx, float ¶meter) const
std::string getBeamDosePointEquivalentDepthTag() const
DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface()
bool getBeamDosePointSSD(DCMTree::TreePtr item, float ¶meter) const
std::string getBeamDosePointSSDTag() const
bool getBeamMeterset(DCMTree::TreePtr item, std::string ¶meter) const
bool getBeamDose(unsigned long idx, std::string ¶meter) const
bool hasSequence() const
Check if the DRTReferencedBeamSequenceInRTFractionSchemeModule is set.
bool getBeamMeterset(unsigned long idx, std::string ¶meter) const
bool setBeamDosePointSSD(unsigned long idx, float parameter)
bool getBeamDosePointEquivalentDepth(DCMTree::TreePtr item, float ¶meter) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
void setSequence(std::vector< DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item > dcmSequence)
Set the DRTReferencedBeamSequenceInRTFractionSchemeModule this interface class provides access to.
std::string getBeamDosePointDepthTag() const
bool getBeamDoseSpecificationPoint(DCMTree::TreePtr item, std::string ¶meter) const
bool getBeamDosePointSSD(unsigned long idx, float ¶meter) const
bool getBeamDosePointDepth(DCMTree::TreePtr item, float ¶meter) const
std::vector< DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item > getSequence() const
Return the DRTReferencedBeamSequenceInRTFractionSchemeModule this interface class provides access to.
bool getBeamDoseSpecificationPoint(unsigned long idx, std::string ¶meter) const
DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item & addItem()
Adds a new item to the sequence.
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool setBeamDosePointDepth(unsigned long idx, float parameter)
bool getReferencedBeamNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool getReferencedBeamNumber(unsigned long idx, std::string ¶meter) const
DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getBeamDosePointDepth(unsigned long idx, float ¶meter) const
std::string getBeamMetersetTag() const
bool setBeamDosePointEquivalentDepth(unsigned long idx, float parameter)
std::string getBeamDoseSpecificationPointTag() const
DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface(std::vector< DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface::Item > dcmSequence)
Default Constructor.
std::string getReferencedBeamNumberTag() const
virtual ~DcmDRTReferencedBeamSequenceInRTFractionSchemeModuleInterface()
Default virtual Destructor.
bool setBeamDose(unsigned long idx, std::string parameter)
bool setBeamDoseSpecificationPoint(unsigned long idx, std::string parameter)
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