]> Creatis software - cpPlugins.git/blob - plugins/ImageFilters/CastImageFilter.h
003cb6806f016669e60020dd43eadcbada7857fd
[cpPlugins.git] / plugins / ImageFilters / CastImageFilter.h
1 #ifndef __CPPLUGINSIMAGEFILTERS__CASTIMAGEFILTER__H__
2 #define __CPPLUGINSIMAGEFILTERS__CASTIMAGEFILTER__H__
3
4 #include <plugins/cpPluginsImageFilters_Export.h>
5 #include <cpPlugins/ProcessObject.h>
6
7 namespace cpPluginsImageFilters
8 {
9   /**
10    */
11   class cpPluginsImageFilters_EXPORT CastImageFilter
12     : public cpPlugins::ProcessObject
13   {
14     cpPluginsObject;
15   public:
16     typedef CastImageFilter                 Self;
17     typedef cpPlugins::ProcessObject        Superclass;
18     typedef itk::SmartPointer< Self >       Pointer;
19     typedef itk::SmartPointer< const Self > ConstPointer;
20
21   public:
22     itkNewMacro( Self );
23     itkTypeMacro( CastImageFilter, cpPlugins::ProcessObject );
24     cpPlugins_Id_Macro( CastImageFilter, ImageFilters );
25
26   protected:
27     CastImageFilter( );
28     virtual ~CastImageFilter( );
29
30     virtual void _GenerateData( ) ITK_OVERRIDE;
31
32     template< class _TInputImage >
33       inline void _GD0( _TInputImage* image );
34
35     template< class _TInputImage, class _TOutputPixel >
36       inline void _GD1( _TInputImage* image );
37
38   private:
39     // Purposely not implemented
40     CastImageFilter( const Self& );
41     Self& operator=( const Self& );
42   };
43
44 } // ecapseman
45
46 #endif // __CPPLUGINSIMAGEFILTERS__CASTIMAGEFILTER__H__
47
48 // eof - $RCSfile$