]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Mesh.h
Major refactoring: API-HCI bug corrected.
[cpPlugins.git] / lib / cpPlugins / Interface / Mesh.h
index a1f06771b7410c41190b230f5899a7e8faddc30b..ffaec80ce9809f4589893c4b35dabcc320957bfc 100644 (file)
@@ -1,13 +1,10 @@
 #ifndef __CPPLUGINS__INTERFACE__MESH__H__
 #define __CPPLUGINS__INTERFACE__MESH__H__
 
-#include <map>
-#include <string>
-#include <itkProcessObject.h>
 #include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
 #include <cpPlugins/Interface/DataObject.h>
 
-class vtkMapper;
+class vtkPolyData;
 
 namespace cpPlugins
 {
@@ -29,25 +26,32 @@ namespace cpPlugins
       itkTypeMacro( Mesh, DataObject );
 
     public:
-      virtual std::string GetClassName( ) const;
-      virtual void SetRealDataObject( itk::DataObject* dobj );
+      virtual void SetITKDataObject( itk::DataObject* o );
+      virtual void SetVTKDataObject( vtkDataObject* o );
 
-      vtkMapper* GetVTKMapper( ) const;
+      vtkPolyData* GetVTKPolyData( );
+      const vtkPolyData* GetVTKPolyData( ) const;
 
     protected:
       Mesh( );
       virtual ~Mesh( );
 
-      template< class M >
-        void _Map( );
+      template< unsigned int D >
+        void _ITK_2_VTK_0( itk::DataObject* o );
+
+      template< class P, unsigned int D >
+        void _ITK_2_VTK_1( itk::DataObject* o );
+
+      template< unsigned int D >
+        void _VTK_2_ITK_0( itk::DataObject* o );
+
+      template< class P, unsigned int D >
+        void _VTK_2_ITK_1( itk::DataObject* o );
 
     private:
       // Purposely not implemented
       Mesh( const Self& );
       Self& operator=( const Self& );
-
-    protected:
-      vtkMapper* m_Mapper;
     };
 
   } // ecapseman