]> Creatis software - clitk.git/blob - tools/clitkVectorImageToImageGenericFilter.h
Debug RTStruct conversion with empty struc
[clitk.git] / tools / clitkVectorImageToImageGenericFilter.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 #ifndef clitkVectorImageToImageGenericFilter_h
19 #define clitkVectorImageToImageGenericFilter_h
20
21 /* =================================================
22  * @file   clitkVectorImageToImageGenericFilter.h
23  * @author 
24  * @date   
25  * 
26  * @brief 
27  * 
28  ===================================================*/
29
30
31 // clitk include
32 #include "clitkIO.h"
33 #include "clitkCommon.h"
34 #include "clitkImageCommon.h"
35 #include "clitkVectorImageToImage_ggo.h"
36 #include "clitkVectorImageToImageFilter.h"
37
38 //itk include
39 #include "itkLightObject.h"
40
41 namespace clitk 
42 {
43
44
45   class ITK_EXPORT VectorImageToImageGenericFilter : public itk::LightObject
46   {
47   public:
48     //----------------------------------------
49     // ITK
50     //----------------------------------------
51     typedef VectorImageToImageGenericFilter                   Self;
52     typedef itk::LightObject                   Superclass;
53     typedef itk::SmartPointer<Self>            Pointer;
54     typedef itk::SmartPointer<const Self>      ConstPointer;
55    
56     // Method for creation through the object factory
57     itkNewMacro(Self);  
58
59     // Run-time type information (and related methods)
60     itkTypeMacro( VectorImageToImageGenericFilter, LightObject );
61
62
63     //----------------------------------------
64     // Typedefs
65     //----------------------------------------
66
67
68     //----------------------------------------
69     // Set & Get
70     //----------------------------------------    
71     void SetArgsInfo(const args_info_clitkVectorImageToImage & a)
72     {
73       m_ArgsInfo=a;
74       m_Verbose=m_ArgsInfo.verbose_flag;
75       m_InputFileName=m_ArgsInfo.input_arg;
76     }
77     
78     
79     //----------------------------------------  
80     // Update
81     //----------------------------------------  
82     void Update();
83
84   protected:
85
86     //----------------------------------------  
87     // Constructor & Destructor
88     //----------------------------------------  
89     VectorImageToImageGenericFilter();
90     ~VectorImageToImageGenericFilter() {};
91
92     
93     //----------------------------------------  
94     // Templated members
95     //----------------------------------------  
96     template <unsigned int Dimension>  void UpdateWithDim(std::string PixelType, unsigned int Components);
97     template <unsigned int Dimension, class PixelType>  void UpdateWithDimAndPixelType();
98
99
100     //----------------------------------------  
101     // Data members
102     //----------------------------------------
103     args_info_clitkVectorImageToImage m_ArgsInfo;
104     bool m_Verbose;
105     std::string m_InputFileName;
106
107   };
108
109
110 } // end namespace clitk
111
112 #ifndef ITK_MANUAL_INSTANTIATION
113 #include "clitkVectorImageToImageGenericFilter.txx"
114 #endif
115
116 #endif // #define clitkVectorImageToImageGenericFilter_h