]> Creatis software - clitk.git/blob - tools/clitkDicomRT_ROI.h
MIP tool using David's framework
[clitk.git] / tools / clitkDicomRT_ROI.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_ROI_H
21 #define CLITKDICOMRT_ROI_H
22
23 #include "clitkDicomRT_Contour.h"
24
25 namespace clitk {
26
27   //--------------------------------------------------------------------
28   class DicomRT_ROI {
29     
30   public:
31     DicomRT_ROI();
32     ~DicomRT_ROI();
33
34     void Print(std::ostream & os = std::cout) const;
35     void Read(std::map<int, std::string> & rois, gdcm::SQItem * item);
36
37     int GetROINumber() const;
38     const std::string & GetName() const;
39     const std::vector<double> & GetDisplayColor() const;
40     vtkPolyData * GetMesh();
41     
42   protected:
43     void ComputeMesh();
44     std::string mName;
45     int mNumber;
46     std::vector<double> mColor;
47     std::vector<DicomRT_Contour*> mListOfContours;
48     vtkPolyData * mMesh;
49     bool mMeshIsUpToDate;
50   };
51   //--------------------------------------------------------------------
52
53 } // end namespace clitk
54 #endif // CLITKDICOMRT_ROI_H
55