]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Mesh.h
Merge ssh://git.creatis.insa-lyon.fr/cpPlugins
[cpPlugins.git] / lib / cpPlugins / Interface / Mesh.h
index 75c5eb3683e766a6a546e3091330116d170a8b2e..b2fe92302d84c810a20276a0e784320eb5f02f29 100644 (file)
@@ -5,9 +5,10 @@
 #include <cpPlugins/Interface/DataObject.h>
 
 #include <vtkSmartPointer.h>
-#include <vtkActor.h>
-#include <vtkPolyData.h>
+#include <vtkQuadricLODActor.h>
 #include <vtkPolyDataMapper.h>
+#include <vtkPolyDataNormals.h>
+#include <vtkStripper.h>
 
 namespace cpPlugins
 {
@@ -27,20 +28,17 @@ namespace cpPlugins
     public:
       itkNewMacro( Self );
       itkTypeMacro( Mesh, DataObject );
+      cpPlugins_Id_Macro(
+        cpPlugins::Interface::Mesh, "DataObject"
+        );
 
     public:
       template< class M >
-        inline void SetITKMesh( itk::DataObject* object );
+        inline void SetITK( itk::Object* object );
 
-      template< class M >
-        inline M* GetITKMesh( );
-
-      template< class M >
-        inline const M* GetITKMesh( ) const;
+      virtual void SetVTK( vtkObject* mesh );
 
-      virtual void SetVTKMesh( vtkPolyData* mesh );
-      virtual vtkPolyData* GetVTKMesh( );
-      virtual const vtkPolyData* GetVTKMesh( ) const;
+      virtual void CreateVTKActor( );
       virtual vtkActor* GetVTKActor( );
       virtual const vtkActor* GetVTKActor( ) const;
 
@@ -54,8 +52,10 @@ namespace cpPlugins
       Self& operator=( const Self& );
 
     protected:
-      vtkSmartPointer< vtkActor >          m_Actor;
-      vtkSmartPointer< vtkPolyDataMapper > m_Mapper;
+      vtkSmartPointer< vtkPolyDataNormals > m_Normals;
+      vtkSmartPointer< vtkStripper >        m_Stripper;
+      vtkSmartPointer< vtkPolyDataMapper >  m_Mapper;
+      vtkSmartPointer< vtkQuadricLODActor > m_Actor;
     };
 
   } // ecapseman