]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Plugins/MarchingCubes.h
Major refactoring: API-HCI bug corrected.
[cpPlugins.git] / lib / cpPlugins / Plugins / MarchingCubes.h
index c691f8fffdcd93d7f6faee5b24a61d4900b818c0..4375842d02d5155455f4357286deed92c193b849 100644 (file)
@@ -3,7 +3,8 @@
 
 #include <cpPlugins/Plugins/cpPlugins_Export.h>
 #include <cpPlugins/Interface/ImageToMeshFilter.h>
-#include <itkProcessObject.h>
+
+class vtkPolyDataAlgorithm;
 
 namespace cpPlugins
 {
@@ -17,33 +18,30 @@ namespace cpPlugins
     public:
       typedef MarchingCubes                           Self;
       typedef cpPlugins::Interface::ImageToMeshFilter Superclass;
-
-      typedef Superclass::TParameter  TParameter;
-      typedef Superclass::TParameters TParameters;
+      typedef itk::SmartPointer< Self >               Pointer;
+      typedef itk::SmartPointer< const Self >         ConstPointer;
 
     public:
+      itkNewMacro( Self );
+      itkTypeMacro( MarchingCubes, cpPluginsInterfaceImageToMeshFilter );
+
+    protected:
       MarchingCubes( );
       virtual ~MarchingCubes( );
 
-      virtual std::string GetClassName( ) const;
-
-    protected:
       virtual std::string _GenerateData( );
 
-      template< unsigned int D >
-      std::string _GD0( );
-
-      template< class P, unsigned int D >
-      std::string _GD1( );
+    private:
+      // Purposely not implemented
+      MarchingCubes( const Self& );
+      Self& operator=( const Self& );
 
     protected:
-      /*
-        itk::ProcessObject::Pointer m_Reader;
-      */
+      vtkPolyDataAlgorithm* m_Algorithm;
     };
 
     // ---------------------------------------------------------------------
-    PLUMA_INHERIT_PROVIDER( MarchingCubes, cpPlugins::Interface::Object );
+    CPPLUGINS_INHERIT_PROVIDER( MarchingCubes );
 
   } // ecapseman