23#ifndef __mlDcmDRTStructureSetROISequenceInterface_H
24#define __mlDcmDRTStructureSetROISequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
173 std::vector<DcmDRTStructureSetROISequenceInterface::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<DcmDRTStructureSetROISequenceInterface::Item>::iterator
it = _itemVec.begin();
214 std::advance(
it,
idx);
224 if ( _itemVec.size() >
idx ) {
225 std::vector<DcmDRTStructureSetROISequenceInterface::Item>::iterator
it = _itemVec.begin();
226 std::advance(
it,
idx);
235 std::vector<DcmDRTStructureSetROISequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool setROIGenerationAlgorithm(std::string parameter)
std::string getROIGenerationAlgorithmTag() const
Item(const Item ©DcmItem)
bool getROIName(std::string ¶meter) const
bool setReferencedFrameOfReferenceUID(std::string parameter)
bool getROIVolume(std::string ¶meter) const
std::string getROIGenerationDescriptionTag() const
bool setROIDescription(std::string parameter)
bool getReferencedFrameOfReferenceUID(std::string ¶meter) const
std::string getROINumberTag() const
DCMTree::TreePtr getTreePtr() const
std::string getReferencedFrameOfReferenceUIDTag() const
Item(DCMTree::TreePtr dcmItem)
bool setROIName(std::string parameter)
std::string getROINameTag() const
bool setROIGenerationDescription(std::string parameter)
bool getROIGenerationAlgorithm(std::string ¶meter) const
bool getROIGenerationDescription(std::string ¶meter) const
bool getROINumber(std::string ¶meter) const
std::string getROIVolumeTag() const
bool setROIVolume(std::string parameter)
std::string getROIDescriptionTag() const
Item & operator=(const Item ©DcmItem)
bool getROIDescription(std::string ¶meter) const
bool setROINumber(std::string parameter)
Class to provide access to DRTStructureSetROISequence.
bool setROINumber(unsigned long idx, std::string parameter)
bool setReferencedFrameOfReferenceUID(unsigned long idx, std::string parameter)
bool getROINumber(DCMTree::TreePtr item, std::string ¶meter) const
bool setROIName(unsigned long idx, std::string parameter)
std::vector< DcmDRTStructureSetROISequenceInterface::Item > getSequence() const
Return the DRTStructureSetROISequence this interface class provides access to.
std::string getROIDescriptionTag() const
virtual ~DcmDRTStructureSetROISequenceInterface()
Default virtual Destructor.
bool setROIGenerationAlgorithm(unsigned long idx, std::string parameter)
bool getROIName(DCMTree::TreePtr item, std::string ¶meter) const
std::string getROIVolumeTag() const
std::vector< DcmDRTStructureSetROISequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getROIVolume(DCMTree::TreePtr item, std::string ¶meter) const
void setSequence(std::vector< DcmDRTStructureSetROISequenceInterface::Item > dcmSequence)
Set the DRTStructureSetROISequence this interface class provides access to.
DcmDRTStructureSetROISequenceInterface(std::vector< DcmDRTStructureSetROISequenceInterface::Item > dcmSequence)
Default Constructor.
bool getROIDescription(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTStructureSetROISequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool getROIGenerationAlgorithm(DCMTree::TreePtr item, std::string ¶meter) const
bool getROIVolume(unsigned long idx, std::string ¶meter) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getROIGenerationDescription(DCMTree::TreePtr item, std::string ¶meter) const
bool setROIDescription(unsigned long idx, std::string parameter)
std::string getROIGenerationDescriptionTag() const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool hasSequence() const
Check if the DRTStructureSetROISequence is set.
bool getReferencedFrameOfReferenceUID(unsigned long idx, std::string ¶meter) const
DcmDRTStructureSetROISequenceInterface()
bool getReferencedFrameOfReferenceUID(DCMTree::TreePtr item, std::string ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool setROIGenerationDescription(unsigned long idx, std::string parameter)
void addItem(DcmDRTStructureSetROISequenceInterface::Item newItem)
bool getROIGenerationDescription(unsigned long idx, std::string ¶meter) const
DcmDRTStructureSetROISequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getROIDescription(unsigned long idx, std::string ¶meter) const
std::string getROINameTag() const
DcmDRTStructureSetROISequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getROINumber(unsigned long idx, std::string ¶meter) const
std::string getROINumberTag() const
bool getROIName(unsigned long idx, std::string ¶meter) const
std::string getROIGenerationAlgorithmTag() const
bool setROIVolume(unsigned long idx, std::string parameter)
std::string getReferencedFrameOfReferenceUIDTag() const
bool getROIGenerationAlgorithm(unsigned long idx, std::string ¶meter) const
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