]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Plugins/MarchingCubes.h
Garbage collector added
[cpPlugins.git] / lib / cpPlugins / Plugins / MarchingCubes.h
index c691f8fffdcd93d7f6faee5b24a61d4900b818c0..cf616b0df858da91ada5fb8b7cd4e22a838c1061 100644 (file)
@@ -17,17 +17,23 @@ namespace cpPlugins
     public:
       typedef MarchingCubes                           Self;
       typedef cpPlugins::Interface::ImageToMeshFilter Superclass;
+      typedef itk::SmartPointer< Self >               Pointer;
+      typedef itk::SmartPointer< const Self >         ConstPointer;
 
       typedef Superclass::TParameter  TParameter;
       typedef Superclass::TParameters TParameters;
 
     public:
-      MarchingCubes( );
-      virtual ~MarchingCubes( );
+      itkNewMacro( Self );
+      itkTypeMacro( MarchingCubes, cpPluginsInterfaceImageToMeshFilter );
 
+    public:
       virtual std::string GetClassName( ) const;
 
     protected:
+      MarchingCubes( );
+      virtual ~MarchingCubes( );
+
       virtual std::string _GenerateData( );
 
       template< unsigned int D >
@@ -36,14 +42,17 @@ namespace cpPlugins
       template< class P, unsigned int D >
       std::string _GD1( );
 
-    protected:
-      /*
-        itk::ProcessObject::Pointer m_Reader;
-      */
+    private:
+      // Purposely not implemented
+      MarchingCubes( const Self& );
+      Self& operator=( const Self& );
     };
 
     // ---------------------------------------------------------------------
-    PLUMA_INHERIT_PROVIDER( MarchingCubes, cpPlugins::Interface::Object );
+    PLUMA_INHERIT_PROVIDER_CPPLUGINS(
+      MarchingCubes,
+      cpPlugins::Interface::Object
+      );
 
   } // ecapseman