]> 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 a1f06771b7410c41190b230f5899a7e8faddc30b..b2fe92302d84c810a20276a0e784320eb5f02f29 100644 (file)
@@ -1,13 +1,14 @@
 #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;
+#include <vtkSmartPointer.h>
+#include <vtkQuadricLODActor.h>
+#include <vtkPolyDataMapper.h>
+#include <vtkPolyDataNormals.h>
+#include <vtkStripper.h>
 
 namespace cpPlugins
 {
@@ -27,33 +28,42 @@ namespace cpPlugins
     public:
       itkNewMacro( Self );
       itkTypeMacro( Mesh, DataObject );
+      cpPlugins_Id_Macro(
+        cpPlugins::Interface::Mesh, "DataObject"
+        );
 
     public:
-      virtual std::string GetClassName( ) const;
-      virtual void SetRealDataObject( itk::DataObject* dobj );
+      template< class M >
+        inline void SetITK( itk::Object* object );
+
+      virtual void SetVTK( vtkObject* mesh );
 
-      vtkMapper* GetVTKMapper( ) const;
+      virtual void CreateVTKActor( );
+      virtual vtkActor* GetVTKActor( );
+      virtual const vtkActor* GetVTKActor( ) const;
 
     protected:
       Mesh( );
       virtual ~Mesh( );
 
-      template< class M >
-        void _Map( );
-
     private:
       // Purposely not implemented
       Mesh( const Self& );
       Self& operator=( const Self& );
 
     protected:
-      vtkMapper* m_Mapper;
+      vtkSmartPointer< vtkPolyDataNormals > m_Normals;
+      vtkSmartPointer< vtkStripper >        m_Stripper;
+      vtkSmartPointer< vtkPolyDataMapper >  m_Mapper;
+      vtkSmartPointer< vtkQuadricLODActor > m_Actor;
     };
 
   } // ecapseman
 
 } // ecapseman
 
+#include <cpPlugins/Interface/Mesh.hxx>
+
 #endif // __CPPLUGINS__INTERFACE__MESH__H__
 
 // eof - $RCSfile$