23#ifndef __mlDcmDRTReferencedFrameOfReferenceSequenceInterface_H
24#define __mlDcmDRTReferencedFrameOfReferenceSequenceInterface_H
36#ifndef __mlModuleIncludes_H
53 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
65 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
206 std::vector<DcmDRTReferencedFrameOfReferenceSequenceInterface::Item>
getSequence()
const {
213 return (_itemVec.size() != 0);
219 return static_cast<MLint>(_itemVec.size());
225 if (_itemVec.size() >
idx) {
226 return _itemVec[
idx];
235 return _itemVec[_itemVec.size()-1];
245 if (_itemVec.size() >
idx) {
246 std::vector<DcmDRTReferencedFrameOfReferenceSequenceInterface::Item>::iterator
it = _itemVec.begin();
247 std::advance(
it,
idx);
257 if ( _itemVec.size() >
idx ) {
258 std::vector<DcmDRTReferencedFrameOfReferenceSequenceInterface::Item>::iterator
it = _itemVec.begin();
259 std::advance(
it,
idx);
268 std::vector<DcmDRTReferencedFrameOfReferenceSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Class to provide access to DRTFrameOfReferenceRelationshipSequence.
Class to provide access to DRTRTReferencedStudySequence.
std::string getROINumberTag() const
std::string getROIGenerationAlgorithmTag() const
bool setROIName(std::string parameter)
bool getROIName(std::string ¶meter) const
bool getReferencedFrameOfReferenceUID(std::string ¶meter) const
std::string getROIVolumeTag() const
bool setROIGenerationAlgorithm(std::string parameter)
bool getROIDescription(std::string ¶meter) const
bool getROIGenerationAlgorithm(std::string ¶meter) const
void setFrameOfReferenceRelationshipSequence(DcmDRTFrameOfReferenceRelationshipSequenceInterface seq)
bool setROIDescription(std::string parameter)
std::string getReferencedFrameOfReferenceUIDTag() const
bool getROIGenerationDescription(std::string ¶meter) const
DcmDRTRTReferencedStudySequenceInterface getRTReferencedStudySequence() const
bool setROIVolume(std::string parameter)
bool setROIGenerationDescription(std::string parameter)
bool getFrameOfReferenceUID(std::string ¶meter) const
bool setROINumber(std::string parameter)
void setRTReferencedStudySequence(DcmDRTRTReferencedStudySequenceInterface seq)
DcmDRTFrameOfReferenceRelationshipSequenceInterface getFrameOfReferenceRelationshipSequence() const
Item(const Item ©DcmItem)
bool getROINumber(std::string ¶meter) const
std::string getFrameOfReferenceRelationshipSequenceTag() const
std::string getROIDescriptionTag() const
bool getROIVolume(std::string ¶meter) const
bool setReferencedFrameOfReferenceUID(std::string parameter)
Item(DCMTree::TreePtr dcmItem)
DCMTree::TreePtr getTreePtr() const
std::string getFrameOfReferenceUIDTag() const
std::string getRTReferencedStudySequenceTag() const
bool setFrameOfReferenceUID(std::string parameter)
std::string getROIGenerationDescriptionTag() const
Item & operator=(const Item ©DcmItem)
std::string getROINameTag() const
Class to provide access to DRTReferencedFrameOfReferenceSequence.
DcmDRTReferencedFrameOfReferenceSequenceInterface()
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getROIName(unsigned long idx, std::string ¶meter) const
std::string getROINumberTag() const
std::string getFrameOfReferenceUIDTag() const
void setRTReferencedStudySequence(DcmDRTRTReferencedStudySequenceInterface seq, unsigned long idx)
bool getROINumber(unsigned long idx, std::string ¶meter) const
bool getROIVolume(unsigned long idx, std::string ¶meter) const
std::string getROINameTag() const
bool getROIGenerationAlgorithm(unsigned long idx, std::string ¶meter) const
DcmDRTReferencedFrameOfReferenceSequenceInterface::Item & addItem()
Adds a new item to the sequence.
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
std::string getROIGenerationAlgorithmTag() const
bool getROIDescription(unsigned long idx, std::string ¶meter) const
bool getROIDescription(DCMTree::TreePtr item, std::string ¶meter) const
std::string getRTReferencedStudySequenceTag() const
DcmDRTReferencedFrameOfReferenceSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool hasSequence() const
Check if the DRTReferencedFrameOfReferenceSequence is set.
std::string getROIGenerationDescriptionTag() const
void setFrameOfReferenceRelationshipSequence(DcmDRTFrameOfReferenceRelationshipSequenceInterface seq, unsigned long idx)
bool getROIGenerationAlgorithm(DCMTree::TreePtr item, std::string ¶meter) const
std::string getReferencedFrameOfReferenceUIDTag() const
bool getReferencedFrameOfReferenceUID(unsigned long idx, std::string ¶meter) const
DcmDRTFrameOfReferenceRelationshipSequenceInterface getFrameOfReferenceRelationshipSequence(unsigned long idx) const
bool setROIGenerationDescription(unsigned long idx, std::string parameter)
bool setFrameOfReferenceUID(unsigned long idx, std::string parameter)
bool getFrameOfReferenceUID(DCMTree::TreePtr item, std::string ¶meter) const
std::string getROIVolumeTag() const
virtual ~DcmDRTReferencedFrameOfReferenceSequenceInterface()
Default virtual Destructor.
bool getReferencedFrameOfReferenceUID(DCMTree::TreePtr item, std::string ¶meter) const
bool getROIGenerationDescription(DCMTree::TreePtr item, std::string ¶meter) const
std::string getFrameOfReferenceRelationshipSequenceTag() const
bool setReferencedFrameOfReferenceUID(unsigned long idx, std::string parameter)
std::vector< DcmDRTReferencedFrameOfReferenceSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
DcmDRTRTReferencedStudySequenceInterface getRTReferencedStudySequence(unsigned long idx) const
bool getFrameOfReferenceUID(unsigned long idx, std::string ¶meter) const
std::string getROIDescriptionTag() const
bool getROIGenerationDescription(unsigned long idx, std::string ¶meter) const
DcmDRTReferencedFrameOfReferenceSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool setROINumber(unsigned long idx, std::string parameter)
DcmDRTReferencedFrameOfReferenceSequenceInterface(std::vector< DcmDRTReferencedFrameOfReferenceSequenceInterface::Item > dcmSequence)
Default Constructor.
bool getROIVolume(DCMTree::TreePtr item, std::string ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
std::vector< DcmDRTReferencedFrameOfReferenceSequenceInterface::Item > getSequence() const
Return the DRTReferencedFrameOfReferenceSequence this interface class provides access to.
bool setROIDescription(unsigned long idx, std::string parameter)
bool setROIVolume(unsigned long idx, std::string parameter)
bool setROIName(unsigned long idx, std::string parameter)
bool setROIGenerationAlgorithm(unsigned long idx, std::string parameter)
bool getROINumber(DCMTree::TreePtr item, std::string ¶meter) const
void addItem(DcmDRTReferencedFrameOfReferenceSequenceInterface::Item newItem)
void setSequence(std::vector< DcmDRTReferencedFrameOfReferenceSequenceInterface::Item > dcmSequence)
Set the DRTReferencedFrameOfReferenceSequence this interface class provides access to.
bool getROIName(DCMTree::TreePtr item, std::string ¶meter) const
Class to provide access to DRTFrameOfReferenceRelationshipSequence.
Class to provide access to DRTRTReferencedStudySequence.
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