]> Creatis software - clitk.git/blob - common/clitkDicomRT_StructureSet.h
Add Write function (still to be defined)
[clitk.git] / common / clitkDicomRT_StructureSet.h
1 /*=========================================================================
2   Program:         vv http://www.creatis.insa-lyon.fr/rio/vv
3   Main authors :   XX XX XX
4
5   Authors belongs to: 
6   - University of LYON           http://www.universite-lyon.fr/
7   - Léon Bérard cancer center    http://www.centreleonberard.fr
8   - CREATIS CNRS laboratory      http://www.creatis.insa-lyon.fr
9
10   This software is distributed WITHOUT ANY WARRANTY; without even
11   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12   PURPOSE.  See the copyright notices for more information.
13
14   It is distributed under dual licence
15   - BSD       http://www.opensource.org/licenses/bsd-license.php
16   - CeCILL-B  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17
18   =========================================================================*/
19
20 #ifndef CLITKDICOMRT_STRUCTURESET_H
21 #define CLITKDICOMRT_STRUCTURESET_H
22
23 #include "clitkCommon.h" 
24 #include "clitkDicomRT_ROI.h"
25 #include "vvImage.h"
26
27 namespace clitk {
28
29 //--------------------------------------------------------------------
30 class DicomRT_StructureSet : public itk::LightObject{
31   
32 public:
33   typedef DicomRT_StructureSet Self;
34   typedef itk::SmartPointer<Self> Pointer;
35   itkNewMacro(Self);
36
37   void Print(std::ostream & os = std::cout) const;
38   void Read(const std::string & filename);
39   void Write(const std::string & filename);
40
41   const std::vector<DicomRT_ROI::Pointer> & GetListOfROI() const;
42   clitk::DicomRT_ROI * GetROI(int n);
43   const std::string & GetStudyID() const;
44   const std::string & GetStudyTime() const;
45   const std::string & GetStudyDate() const;
46   const std::string & GetLabel() const;
47   const std::string & GetName() const;
48   const std::string & GetDate() const;
49   const std::string & GetTime() const;
50
51   int AddBinaryImageAsNewROI(vvImage * i, std::string name);
52   
53 protected:
54   std::string mStudyID;
55   std::string mStudyTime;
56   std::string mStudyDate;
57   std::string mLabel;
58   std::string mName;
59   std::string mDate;
60   std::string mTime;
61   std::map<int, std::string> mMapOfROIName;
62   std::map<int, int> mMapOfROIIndex;
63   std::vector<clitk::DicomRT_ROI::Pointer> mListOfROI;
64
65 private:
66   DicomRT_StructureSet();
67   ~DicomRT_StructureSet();
68 };
69 //--------------------------------------------------------------------
70
71 } // end namespace clitk
72 #endif // CLITKDICOMRT_STRUCTURESET_H
73