]> Creatis software - clitk.git/blob - tools/clitkProfileImageGenericFilter.h
COMP: fix compilation errors for ITKv5
[clitk.git] / tools / clitkProfileImageGenericFilter.h
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to: 
5   - University of LYON              http://www.universite-lyon.fr/
6   - Léon Bérard cancer center       http://www.centreleonberard.fr
7   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
8
9   This software is distributed WITHOUT ANY WARRANTY; without even
10   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11   PURPOSE.  See the copyright notices for more information.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18
19 #ifndef clitkProfileImageGenericFilter_h
20 #define clitkProfileImageGenericFilter_h
21
22 #include "clitkIO.h"
23 #include "clitkImageToImageGenericFilter.h"
24 #include "clitkProfileImage_ggo.h"
25
26 #include <vtkFloatArray.h>
27
28 //--------------------------------------------------------------------
29 namespace clitk 
30 {
31   
32   class ITK_EXPORT ProfileImageGenericFilter: 
33     public ImageToImageGenericFilter<ProfileImageGenericFilter>
34   {
35     
36   public:
37     //--------------------------------------------------------------------
38     typedef ProfileImageGenericFilter         Self;
39     typedef itk::SmartPointer<Self>           Pointer;
40     typedef itk::SmartPointer<const Self>     ConstPointer;
41     typedef args_info_clitkProfileImage       args_info_type;
42    
43     //--------------------------------------------------------------------
44     // Method for creation through the object factory
45     // and Run-time type information (and related methods)
46     itkNewMacro(Self);  
47     itkTypeMacro(ProfileImageGenericFilter, LightObject);
48
49     //--------------------------------------------------------------------
50     void SetArgsInfo(const args_info_type & a);
51
52     //--------------------------------------------------------------------
53     // Main function called each time the filter is updated
54     template<class InputImageType>  
55     void UpdateWithInputImageType();
56     
57     vtkFloatArray* GetArrayX();
58     vtkFloatArray* GetArrayY();
59     vtkFloatArray* GetCoord();
60
61     //Write the output in the txt file
62     void WriteOutput(std::string outputFilename);
63
64   protected:
65     ProfileImageGenericFilter();
66     template<unsigned int Dim> void InitializeImageType();
67     args_info_type mArgsInfo;
68     
69   
70     vtkSmartPointer<vtkFloatArray> mArrayX;
71     vtkSmartPointer<vtkFloatArray> mArrayY;
72     vtkSmartPointer<vtkFloatArray> mCoord;
73     vtkSmartPointer<vtkFloatArray> mCoordmm;
74     int mDimension;
75     
76     
77   }; // end class
78   //--------------------------------------------------------------------
79     
80 } // end namespace clitk
81 //--------------------------------------------------------------------
82
83 #endif // #define clitkProfileImageGenericFilter_h