]> Creatis software - cpMesh.git/blob - lib/cpm/Plugins/SimpleFillRegion.h
Almost compatible with new cpPlugins
[cpMesh.git] / lib / cpm / Plugins / SimpleFillRegion.h
1 #ifndef __CPM__PLUGINS__SIMPLEFILLREGION__H__
2 #define __CPM__PLUGINS__SIMPLEFILLREGION__H__
3
4 #include <cpPlugins/Interface/ImageToImageFilter.h>
5
6 namespace cpm
7 {
8   namespace Plugins
9   {
10     /**
11      */
12     class SimpleFillRegion
13       : public cpPlugins::Interface::ImageToImageFilter
14     {
15     public:
16       typedef SimpleFillRegion                         Self;
17       typedef cpPlugins::Interface::ImageToImageFilter Superclass;
18       typedef itk::SmartPointer< Self >                Pointer;
19       typedef itk::SmartPointer< const Self >          ConstPointer;
20
21     public:
22       itkNewMacro( Self );
23       itkTypeMacro( SimpleFillRegion, cpPlugins_Interface_ImageToImageFilter );
24
25       virtual std::string GetClassName( ) const;
26
27     protected:
28       SimpleFillRegion( );
29       virtual ~SimpleFillRegion( );
30
31       virtual std::string _GenerateData( );
32
33       template< unsigned int D >
34       std::string _GD0( );
35
36       template< class P1, unsigned int D >
37       std::string _GD1( );
38
39       template< class P1, class P2, unsigned int D >
40       std::string _GD2( );
41
42     protected:
43       itk::ProcessObject::Pointer m_Filter;
44     };
45
46     // ---------------------------------------------------------------------
47     CPPLUGINS_INHERIT_PROVIDER( SimpleFillRegion );
48
49   } // ecapseman
50
51 } // ecapseman
52
53 #endif // __CPM__PLUGINS__SIMPLEFILLREGION__H__
54
55
56 // eof - $RCSfile$