X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkDicomRT_StructureSet.h;h=84d74860f042b241b807513f4dcfce600df03d7b;hb=b3f649f6e833485a45e94f99bd78d1dce03b3852;hp=77d164d29175c84089a36738a39d671489f1677c;hpb=163fa80ef3873595f3e3cf75fb03e53536d1a6ee;p=clitk.git diff --git a/common/clitkDicomRT_StructureSet.h b/common/clitkDicomRT_StructureSet.h index 77d164d..84d7486 100644 --- a/common/clitkDicomRT_StructureSet.h +++ b/common/clitkDicomRT_StructureSet.h @@ -26,42 +26,46 @@ namespace clitk { - //-------------------------------------------------------------------- - class DicomRT_StructureSet { - - public: - DicomRT_StructureSet(); - ~DicomRT_StructureSet(); +//-------------------------------------------------------------------- +class DicomRT_StructureSet : public itk::LightObject{ + +public: + typedef DicomRT_StructureSet Self; + typedef itk::SmartPointer Pointer; + itkNewMacro(Self); - void Print(std::ostream & os = std::cout) const; - void Read(const std::string & filename); + void Print(std::ostream & os = std::cout) const; + void Read(const std::string & filename); - const std::vector & GetListOfROI() const; - clitk::DicomRT_ROI * GetROI(int n); - const std::string & GetStudyID() const; - const std::string & GetStudyTime() const; - const std::string & GetStudyDate() const; - const std::string & GetLabel() const; - const std::string & GetName() const; - const std::string & GetDate() const; - const std::string & GetTime() const; + const std::vector & GetListOfROI() const; + clitk::DicomRT_ROI * GetROI(int n); + const std::string & GetStudyID() const; + const std::string & GetStudyTime() const; + const std::string & GetStudyDate() const; + const std::string & GetLabel() const; + const std::string & GetName() const; + const std::string & GetDate() const; + const std::string & GetTime() const; - int AddBinaryImageAsNewROI(vvImage::Pointer i, std::string name); - - protected: - std::string mStudyID; - std::string mStudyTime; - std::string mStudyDate; - std::string mLabel; - std::string mName; - std::string mDate; - std::string mTime; - std::map mMapOfROIName; - std::map mMapOfROIIndex; - std::vector mListOfROI; + int AddBinaryImageAsNewROI(vvImage * i, std::string name); + +protected: + std::string mStudyID; + std::string mStudyTime; + std::string mStudyDate; + std::string mLabel; + std::string mName; + std::string mDate; + std::string mTime; + std::map mMapOfROIName; + std::map mMapOfROIIndex; + std::vector mListOfROI; - }; - //-------------------------------------------------------------------- +private: + DicomRT_StructureSet(); + ~DicomRT_StructureSet(); +}; +//-------------------------------------------------------------------- } // end namespace clitk #endif // CLITKDICOMRT_STRUCTURESET_H