]> Creatis software - clitk.git/blob - common/clitkDicomRT_ROI_ConvertToImageFilter.h
Added Varian OBI file format
[clitk.git] / common / clitkDicomRT_ROI_ConvertToImageFilter.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_CONVERTTOIMAGEFILTER_H
21 #define CLITKDICOMRT_ROI_CONVERTTOIMAGEFILTER_H
22
23 #include "clitkDicomRT_ROI.h"
24 #include "clitkImageCommon.h"
25 #include <vtkImageData.h>
26
27 namespace clitk {
28
29   //--------------------------------------------------------------------
30   class DicomRT_ROI_ConvertToImageFilter {
31     
32   public:
33     DicomRT_ROI_ConvertToImageFilter();
34     ~DicomRT_ROI_ConvertToImageFilter();
35
36     void SetROI(clitk::DicomRT_ROI * roi);
37     void SetImageFilename(std::string s);
38     void SetOutputImageFilename(std::string s);
39     void Update();    
40     vtkImageData * GetOutput();
41     void SetCropMaskEnabled(bool b);
42
43   protected:
44     bool mImageInfoIsSet;
45     bool mWriteOutput;
46     bool mCropMask;
47     std::string mOutputFilename;
48     std::vector<double> mSpacing;
49     std::vector<double> mOrigin;
50     std::vector<int> mSize;
51     clitk::DicomRT_ROI * mROI;
52     vtkImageData * mBinaryImage;
53   };
54   //--------------------------------------------------------------------
55
56 } // end namespace clitk
57 #endif // CLITKDICOMRT_ROI_CONVERTTOIMAGEFILTER_H
58