1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
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.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ======================================================================-====*/
18 #ifndef clitkAndGenericFilter_h
19 #define clitkAndGenericFilter_h
21 /* =================================================
22 * @file clitkAndGenericFilter.h
28 ===================================================*/
33 #include "clitkCommon.h"
34 #include "clitkImageCommon.h"
35 #include "clitkAnd_ggo.h"
38 #include "itkLightObject.h"
39 #include "itkAndImageFilter.h"
40 #include "itkCastImageFilter.h"
46 class ITK_EXPORT AndGenericFilter : public itk::LightObject
49 //----------------------------------------
51 //----------------------------------------
52 typedef AndGenericFilter Self;
53 typedef itk::LightObject Superclass;
54 typedef itk::SmartPointer<Self> Pointer;
55 typedef itk::SmartPointer<const Self> ConstPointer;
57 // Method for creation through the object factory
60 // Run-time type information (and related methods)
61 itkTypeMacro( AndGenericFilter, LightObject );
64 //----------------------------------------
66 //----------------------------------------
69 //----------------------------------------
71 //----------------------------------------
72 void SetArgsInfo(const args_info_clitkAnd & a)
75 m_Verbose=m_ArgsInfo.verbose_flag;
76 m_InputFileName=m_ArgsInfo.input_arg;
80 //----------------------------------------
82 //----------------------------------------
87 //----------------------------------------
88 // Constructor & Destructor
89 //----------------------------------------
91 ~AndGenericFilter() {};
94 //----------------------------------------
96 //----------------------------------------
97 template <unsigned int Dimension> void UpdateWithDim(std::string PixelType);
98 template <unsigned int Dimension, class PixelType> void UpdateWithDimAndPixelType();
101 //----------------------------------------
103 //----------------------------------------
104 args_info_clitkAnd m_ArgsInfo;
106 std::string m_InputFileName;
111 } // end namespace clitk
113 #ifndef ITK_MANUAL_INSTANTIATION
114 #include "clitkAndGenericFilter.txx"
117 #endif // #define clitkAndGenericFilter_h