]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Mesh.h
3D MPR updated
[cpPlugins.git] / lib / cpPlugins / Interface / Mesh.h
index 805b8a1d66b76d158b4b84fe5df002cb5bb66693..a1f06771b7410c41190b230f5899a7e8faddc30b 100644 (file)
@@ -19,27 +19,34 @@ namespace cpPlugins
       : public DataObject
     {
     public:
-      typedef Mesh       Self;
-      typedef DataObject Superclass;
+      typedef Mesh                            Self;
+      typedef DataObject                      Superclass;
+      typedef itk::SmartPointer< Self >       Pointer;
+      typedef itk::SmartPointer< const Self > ConstPointer;
 
     public:
-      Mesh( );
-      virtual ~Mesh( );
+      itkNewMacro( Self );
+      itkTypeMacro( Mesh, DataObject );
 
+    public:
       virtual std::string GetClassName( ) const;
-      virtual void SetDataObject( itk::DataObject* dobj );
+      virtual void SetRealDataObject( itk::DataObject* dobj );
 
       vtkMapper* GetVTKMapper( ) const;
 
     protected:
+      Mesh( );
+      virtual ~Mesh( );
+
       template< class M >
         void _Map( );
 
+    private:
+      // Purposely not implemented
+      Mesh( const Self& );
+      Self& operator=( const Self& );
+
     protected:
-      /*
-        itk::ProcessObject::Pointer m_Mesh2VTKMeshData;
-        vtkMeshData* m_VTKMeshData;
-      */
       vtkMapper* m_Mapper;
     };