]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Image/Functors/RegionGrowAllBelongsFunction.h
Minor bugs
[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/Image/Functors/ImageFunction.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::Image::Functors::ImageFunction< I, bool >
17       {
18       public:
19         /// Type-related and pointers
20         typedef RegionGrowAllBelongsFunction                   Self;
21         typedef fpa::Image::Functors::ImageFunction< I, bool > Superclass;
22         typedef itk::SmartPointer< Self >                      Pointer;
23         typedef itk::SmartPointer< const Self >                ConstPointer;
24
25         // Superclass' types
26         typedef typename Superclass::TInputImage  TInputImage;
27         typedef typename Superclass::TOutputValue TOutputValue;
28         typedef typename Superclass::TIndex       TIndex;
29
30       public:
31         itkNewMacro( Self );
32         itkTypeMacro( RegionGrowAllBelongsFunction, itkImageFunction );
33
34       public:
35         virtual TOutputValue Evaluate( const TIndex& idx ) const
36           { return( true ); }
37
38       protected:
39         RegionGrowAllBelongsFunction( )
40           : Superclass( )
41           { }
42         virtual ~RegionGrowAllBelongsFunction( )
43           { }
44
45       private:
46         // Purposely not implemented
47         RegionGrowAllBelongsFunction( const Self& );
48         void operator=( const Self& );
49       };
50
51     } // ecapseman
52
53   } // ecapseman
54
55 } // ecapseman
56
57 #endif // __FPA__IMAGE__FUNCTORS__REGIONGROWALLBELONGSFUNCTION__H__
58
59 // eof - $RCSfile$