]> Creatis software - clitk.git/blob - common/clitkDicomRT_StructureSet.h
- correct crop 2D bug
[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://oncora1.lyon.fnclcc.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 {
31     
32   public:
33     DicomRT_StructureSet();
34     ~DicomRT_StructureSet();
35
36     void Print(std::ostream & os = std::cout) const;
37     void Read(const std::string & filename);
38
39     const std::vector<clitk::DicomRT_ROI*> & GetListOfROI() const;
40     clitk::DicomRT_ROI * GetROI(int n);
41     const std::string & GetStudyID() const;
42     const std::string & GetStudyTime() const;
43     const std::string & GetStudyDate() const;
44     const std::string & GetLabel() const;
45     const std::string & GetName() const;
46     const std::string & GetDate() const;
47     const std::string & GetTime() const;
48
49     int AddBinaryImageAsNewROI(vvImage::Pointer i, std::string name);
50     
51   protected:
52     std::string mStudyID;
53     std::string mStudyTime;
54     std::string mStudyDate;
55     std::string mLabel;
56     std::string mName;
57     std::string mDate;
58     std::string mTime;
59     std::map<int, std::string> mMapOfROIName;
60     std::map<int, int> mMapOfROIIndex;
61     std::vector<clitk::DicomRT_ROI*> mListOfROI;
62
63   };
64   //--------------------------------------------------------------------
65
66 } // end namespace clitk
67 #endif // CLITKDICOMRT_STRUCTURESET_H
68