]> Creatis software - clitk.git/blob - common/clitkDicomRT_Contour.h
Added Varian OBI file format
[clitk.git] / common / clitkDicomRT_Contour.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_CONTOUR_H
21 #define CLITKDICOMRT_CONTOUR_H
22
23 #include "clitkCommon.h" 
24 #include "clitkDicomRT_Contour.h"
25 #include <gdcm.h>
26 #include <gdcmSQItem.h>
27 #include <vtkPoints.h>
28 #include <vtkPolyData.h>
29
30 namespace clitk {
31
32   //--------------------------------------------------------------------
33   class DicomRT_Contour {
34     
35   public:
36     DicomRT_Contour();
37     ~DicomRT_Contour();
38
39     void Print(std::ostream & os = std::cout) const;
40     bool Read(gdcm::SQItem * item);
41     vtkPolyData * GetMesh();
42     
43   protected:
44     void ComputeMesh();
45     unsigned int mNbOfPoints;
46     std::string mType;
47     vtkPoints * mData;
48     vtkPolyData * mMesh;
49     bool mMeshIsUpToDate;
50
51   };
52   //--------------------------------------------------------------------
53
54
55
56 } // end namespace clitk
57 #endif // CLITKDICOMRT_CONTOUR_H
58