]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Image/Functors/RegionGrowAllBelongsFunction.h
8aef295874a7707fd566f95f29913e9570e7ef1e
[FrontAlgorithms.git] / lib / fpa / Image / Functors / RegionGrowAllBelongsFunction.h
1 #ifndef __FPA__IMAGE__FUNCTORS__REGIONGROWALLBELONGSFUNCTION__H__
2 #define __FPA__IMAGE__FUNCTORS__REGIONGROWALLBELONGSFUNCTION__H__
3
4 #include <fpa/Base/Functors/TautologyFunction.h>
5
6 namespace fpa
7 {
8   namespace Image
9   {
10     namespace Functors
11     {
12       /**
13        */
14       template< class I >
15       class RegionGrowAllBelongsFunction
16         : public fpa::Base::Functors::TautologyFunction< I, typename I::IndexType >
17       {
18       public:
19         /// Type-related and pointers
20         typedef RegionGrowAllBelongsFunction    Self;
21         typedef itk::SmartPointer< Self >       Pointer;
22         typedef itk::SmartPointer< const Self > ConstPointer;
23         typedef fpa::Base::Functors::
24         TautologyFunction< I, typename I::IndexType >
25         Superclass;
26
27         // Superclass' types
28         typedef I                     TInputImage;
29         typedef typename I::IndexType TIndex;
30
31       public:
32         itkNewMacro( Self );
33         itkTypeMacro( RegionGrowAllBelongsFunction, itkImageFunction );
34
35       public:
36         virtual bool Evaluate( const TIndex& v ) const ITK_OVERRIDE
37           { return( true ); }
38
39       protected:
40         RegionGrowAllBelongsFunction( )
41           : Superclass( )
42           { }
43         virtual ~RegionGrowAllBelongsFunction( )
44           { }
45
46       private:
47         // Purposely not implemented
48         RegionGrowAllBelongsFunction( const Self& );
49         void operator=( const Self& );
50       };
51
52     } // ecapseman
53
54   } // ecapseman
55
56 } // ecapseman
57
58 #endif // __FPA__IMAGE__FUNCTORS__REGIONGROWALLBELONGSFUNCTION__H__
59
60 // eof - $RCSfile$