]> Creatis software - clitk.git/blob - tools/clitkChangeImageInfoGenericFilter.h
Debug RTStruct conversion with empty struc
[clitk.git] / tools / clitkChangeImageInfoGenericFilter.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 clitkChangeImageInfoGenericFilter_h
20 #define clitkChangeImageInfoGenericFilter_h
21
22 #include "clitkIO.h"
23 #include "clitkImageToImageGenericFilter.h"
24 #include "clitkChangeImageInfo_ggo.h"
25
26 //--------------------------------------------------------------------
27 namespace clitk
28 {
29   class ITK_EXPORT ChangeImageInfoGenericFilter:
30     public ImageToImageGenericFilter<ChangeImageInfoGenericFilter>
31   {
32   public:
33     //--------------------------------------------------------------------
34     typedef ChangeImageInfoGenericFilter         Self;
35     typedef itk::SmartPointer<Self>            Pointer;
36     typedef itk::SmartPointer<const Self>      ConstPointer;
37     typedef args_info_clitkChangeImageInfo       args_info_type;
38
39     //--------------------------------------------------------------------
40     // Method for creation through the object factory
41     // and Run-time type information (and related methods)
42     itkNewMacro(Self);
43     itkTypeMacro(ChangeImageInfoGenericFilter, LightObject);
44
45     //--------------------------------------------------------------------
46     void SetArgsInfo(const args_info_type & a);
47
48     //--------------------------------------------------------------------
49     // Main function called each time the filter is updated
50     template<class InputImageType>
51     void UpdateWithInputImageType();
52
53   protected:
54     ChangeImageInfoGenericFilter();
55     template<unsigned int Dim> void InitializeImageType();
56     args_info_type mArgsInfo;
57   }; // end class
58   //--------------------------------------------------------------------
59 } // end namespace clitk
60 //--------------------------------------------------------------------
61
62 #endif // #define clitkChangeImageInfoGenericFilter_h