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