23#ifndef __mlDcmDRTDVHSequenceInterface_H
24#define __mlDcmDRTDVHSequenceInterface_H
35#ifndef __mlModuleIncludes_H
52 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
64 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
217 std::vector<DcmDRTDVHSequenceInterface::Item>
getSequence()
const {
224 return (_itemVec.size() != 0);
230 return static_cast<MLint>(_itemVec.size());
236 if (_itemVec.size() >
idx) {
237 return _itemVec[
idx];
246 return _itemVec[_itemVec.size()-1];
256 if (_itemVec.size() >
idx) {
257 std::vector<DcmDRTDVHSequenceInterface::Item>::iterator
it = _itemVec.begin();
258 std::advance(
it,
idx);
268 if ( _itemVec.size() >
idx ) {
269 std::vector<DcmDRTDVHSequenceInterface::Item>::iterator
it = _itemVec.begin();
270 std::advance(
it,
idx);
279 std::vector<DcmDRTDVHSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Class to provide access to DRTDVHReferencedROISequence.
bool getDVHType(std::string ¶meter) const
DcmDRTDVHReferencedROISequenceInterface getDVHReferencedROISequence() const
bool getDoseType(std::string ¶meter) const
std::string getDVHMeanDoseTag() const
std::string getDVHNumberOfBinsTag() const
bool getDoseUnits(std::string ¶meter) const
bool setDVHNumberOfBins(std::string parameter)
bool setDVHMaximumDose(std::string parameter)
std::string getDVHVolumeUnitsTag() const
DCMTree::TreePtr getTreePtr() const
void setDVHReferencedROISequence(DcmDRTDVHReferencedROISequenceInterface seq)
bool setDVHMeanDose(std::string parameter)
bool setDoseType(std::string parameter)
bool setDoseUnits(std::string parameter)
std::string getDVHReferencedROISequenceTag() const
std::string getDVHDoseScalingTag() const
std::string getDVHDataTag() const
std::string getDoseUnitsTag() const
bool setDVHData(std::string parameter)
bool getDVHMeanDose(std::string ¶meter) const
Item(const Item ©DcmItem)
std::string getDVHTypeTag() const
bool setDVHVolumeUnits(std::string parameter)
bool getDVHNumberOfBins(std::string ¶meter) const
std::string getDVHMaximumDoseTag() const
bool getDVHDoseScaling(std::string ¶meter) const
Item(DCMTree::TreePtr dcmItem)
bool getDVHData(std::string ¶meter) const
std::string getDoseTypeTag() const
bool setDVHMinimumDose(std::string parameter)
bool setDVHType(std::string parameter)
bool getDVHVolumeUnits(std::string ¶meter) const
bool getDVHMaximumDose(std::string ¶meter) const
Item & operator=(const Item ©DcmItem)
bool getDVHMinimumDose(std::string ¶meter) const
std::string getDVHMinimumDoseTag() const
bool setDVHDoseScaling(std::string parameter)
Class to provide access to DRTDVHSequence.
std::string getDVHTypeTag() const
std::vector< DcmDRTDVHSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool setDVHNumberOfBins(unsigned long idx, std::string parameter)
bool getDVHDoseScaling(unsigned long idx, std::string ¶meter) const
void setDVHReferencedROISequence(DcmDRTDVHReferencedROISequenceInterface seq, unsigned long idx)
bool getDVHMaximumDose(unsigned long idx, std::string ¶meter) const
bool setDVHVolumeUnits(unsigned long idx, std::string parameter)
bool setDoseType(unsigned long idx, std::string parameter)
bool getDVHVolumeUnits(DCMTree::TreePtr item, std::string ¶meter) const
bool setDVHMeanDose(unsigned long idx, std::string parameter)
std::string getDVHDataTag() const
std::string getDVHNumberOfBinsTag() const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool setDVHType(unsigned long idx, std::string parameter)
std::string getDVHMaximumDoseTag() const
std::string getDVHReferencedROISequenceTag() const
std::string getDVHMeanDoseTag() const
bool setDVHMaximumDose(unsigned long idx, std::string parameter)
std::string getDVHDoseScalingTag() const
std::string getDVHVolumeUnitsTag() const
bool getDVHNumberOfBins(unsigned long idx, std::string ¶meter) const
bool getDVHNumberOfBins(DCMTree::TreePtr item, std::string ¶meter) const
bool getDVHVolumeUnits(unsigned long idx, std::string ¶meter) const
bool getDVHData(DCMTree::TreePtr item, std::string ¶meter) const
bool getDVHType(DCMTree::TreePtr item, std::string ¶meter) const
std::string getDoseTypeTag() const
DcmDRTDVHReferencedROISequenceInterface getDVHReferencedROISequence(unsigned long idx) const
bool getDVHMaximumDose(DCMTree::TreePtr item, std::string ¶meter) const
bool hasSequence() const
Check if the DRTDVHSequence is set.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
DcmDRTDVHSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getDVHMinimumDose(unsigned long idx, std::string ¶meter) const
DcmDRTDVHSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getDVHType(unsigned long idx, std::string ¶meter) const
bool setDVHDoseScaling(unsigned long idx, std::string parameter)
DcmDRTDVHSequenceInterface(std::vector< DcmDRTDVHSequenceInterface::Item > dcmSequence)
Default Constructor.
bool setDVHMinimumDose(unsigned long idx, std::string parameter)
bool getDVHData(unsigned long idx, std::string ¶meter) const
void setSequence(std::vector< DcmDRTDVHSequenceInterface::Item > dcmSequence)
Set the DRTDVHSequence this interface class provides access to.
bool getDVHDoseScaling(DCMTree::TreePtr item, std::string ¶meter) const
bool getDoseType(DCMTree::TreePtr item, std::string ¶meter) const
std::string getDoseUnitsTag() const
bool getDVHMeanDose(unsigned long idx, std::string ¶meter) const
std::string getDVHMinimumDoseTag() const
bool getDoseUnits(unsigned long idx, std::string ¶meter) const
DcmDRTDVHSequenceInterface()
bool setDVHData(unsigned long idx, std::string parameter)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
void addItem(DcmDRTDVHSequenceInterface::Item newItem)
bool setDoseUnits(unsigned long idx, std::string parameter)
std::vector< DcmDRTDVHSequenceInterface::Item > getSequence() const
Return the DRTDVHSequence this interface class provides access to.
virtual ~DcmDRTDVHSequenceInterface()
Default virtual Destructor.
bool getDVHMeanDose(DCMTree::TreePtr item, std::string ¶meter) const
bool getDoseUnits(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTDVHSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool getDVHMinimumDose(DCMTree::TreePtr item, std::string ¶meter) const
bool getDoseType(unsigned long idx, std::string ¶meter) const
Class to provide access to DRTDVHReferencedROISequence.
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