]> Creatis software - clitk.git/blob - segmentation/clitkFillMaskGenericFilter.h
itk4 migration
[clitk.git] / segmentation / clitkFillMaskGenericFilter.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 CLITKFILLMASKGENERICFILTER_H
20 #define CLITKFILLMASKGENERICFILTER_H
21
22 // clitk 
23 #include "clitkImageToImageGenericFilter.h"
24 #include "clitkFillMaskFilter.h"
25
26 //--------------------------------------------------------------------
27 namespace clitk 
28 {
29
30   template<class ArgsInfoType>
31   class ITK_EXPORT FillMaskGenericFilter : 
32     public ImageToImageGenericFilter<FillMaskGenericFilter<ArgsInfoType> >
33   {
34   public:
35     //--------------------------------------------------------------------
36     FillMaskGenericFilter();
37
38     //--------------------------------------------------------------------
39     typedef FillMaskGenericFilter            Self;
40     typedef ImageToImageGenericFilter<Self > Superclass;
41     typedef itk::SmartPointer<Self>          Pointer;
42     typedef itk::SmartPointer<const Self>    ConstPointer;
43    
44     //--------------------------------------------------------------------
45     itkNewMacro(Self);  
46     itkTypeMacro(FillMaskGenericFilter, LightObject);
47
48     //--------------------------------------------------------------------
49     void SetArgsInfo(const ArgsInfoType & a);
50
51     //--------------------------------------------------------------------
52     // Main function called each time the filter is updated
53     template<class ImageType>  
54     void UpdateWithInputImageType();
55
56    protected:
57     template<unsigned int Dim> void InitializeImageType();
58     ArgsInfoType mArgsInfo;
59   }; // end class
60   //--------------------------------------------------------------------
61
62 } // end namespace clitk
63
64 #ifndef ITK_MANUAL_INSTANTIATION
65 #include "clitkFillMaskGenericFilter.txx"
66 #endif
67
68 #endif // #define CLITKFILLMASKGENERICFILTER_H