X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkDicomRT_StructureSet.h;h=99946083f027153a5c0039a290d5719b8e0f6dcb;hb=dd97e70fb269511ab78c194b956893a8f2504600;hp=d1cc37c2364b3451f9ad0b495b9de409a80c3425;hpb=2c99c542733ba463090e72e88f363cb9fca46027;p=clitk.git diff --git a/common/clitkDicomRT_StructureSet.h b/common/clitkDicomRT_StructureSet.h index d1cc37c..9994608 100644 --- a/common/clitkDicomRT_StructureSet.h +++ b/common/clitkDicomRT_StructureSet.h @@ -44,15 +44,21 @@ public: typedef itk::SmartPointer Pointer; itkNewMacro(Self); - typedef std::map::iterator ROIIteratorType; - typedef std::map::const_iterator ROIConstIteratorType; + typedef std::map ROIMapContainer; + typedef ROIMapContainer::iterator ROIIteratorType; + typedef ROIMapContainer::const_iterator ROIConstIteratorType; void Print(std::ostream & os = std::cout) const; void Read(const std::string & filename); + bool IsDicomRTStruct(const std::string & filename); void Write(const std::string & filename); clitk::DicomRT_ROI * GetROIFromROINumber(int n); - std::map & GetROIs() { return mROIs; } + clitk::DicomRT_ROI* GetROIFromROIName(const std::string& name); + //clitk::DicomRT_ROI* GetROIFromROINameRegEx(const std::string& regEx); + clitk::DicomRT_ROI* GetROIFromROINameSubstr(const std::string& s); + ROIMapContainer * GetROIsFromROINameSubstr(const std::string& s); + ROIMapContainer & GetROIs() { return mROIs; } const std::string & GetStudyID() const; const std::string & GetStudyTime() const; const std::string & GetStudyDate() const;