]> Creatis software - cpMesh.git/blobdiff - lib/cpm/Plugins/SimpleFillRegion.h
Almost compatible with new cpPlugins
[cpMesh.git] / lib / cpm / Plugins / SimpleFillRegion.h
index 4b5cb9c385e66b35e61f91d3df5a5d5b3932c544..8bab40061a2829e0c6f2979fdae91bf88cd70b1c 100644 (file)
@@ -15,17 +15,19 @@ namespace cpm
     public:
       typedef SimpleFillRegion                         Self;
       typedef cpPlugins::Interface::ImageToImageFilter Superclass;
-
-      typedef Superclass::TParameter  TParameter;
-      typedef Superclass::TParameters TParameters;
+      typedef itk::SmartPointer< Self >                Pointer;
+      typedef itk::SmartPointer< const Self >          ConstPointer;
 
     public:
-      SimpleFillRegion( );
-      virtual ~SimpleFillRegion( );
+      itkNewMacro( Self );
+      itkTypeMacro( SimpleFillRegion, cpPlugins_Interface_ImageToImageFilter );
 
       virtual std::string GetClassName( ) const;
 
     protected:
+      SimpleFillRegion( );
+      virtual ~SimpleFillRegion( );
+
       virtual std::string _GenerateData( );
 
       template< unsigned int D >
@@ -42,7 +44,7 @@ namespace cpm
     };
 
     // ---------------------------------------------------------------------
-    PLUMA_INHERIT_PROVIDER( SimpleFillRegion, cpPlugins::Interface::Object );
+    CPPLUGINS_INHERIT_PROVIDER( SimpleFillRegion );
 
   } // ecapseman