X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FMesh.h;h=e7692390bc46e12a2d2f663159d9c5ac5d56462d;hb=94411ee4209d15d6d1cf25bb817675f76f7ea5c0;hp=11a52e8dae2a71bc04254c52e7bbc86403d3ec61;hpb=7c7bc497af96e7b5845be9a2fc277036ec752be9;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/Mesh.h b/lib/cpPlugins/Interface/Mesh.h index 11a52e8..e769239 100644 --- a/lib/cpPlugins/Interface/Mesh.h +++ b/lib/cpPlugins/Interface/Mesh.h @@ -1,11 +1,8 @@ #ifndef __CPPLUGINS__INTERFACE__MESH__H__ #define __CPPLUGINS__INTERFACE__MESH__H__ -#include #include -class vtkPolyData; - namespace cpPlugins { namespace Interface @@ -24,47 +21,18 @@ namespace cpPlugins public: itkNewMacro( Self ); itkTypeMacro( Mesh, DataObject ); + cpPlugins_Id_Macro( Mesh, DataObject ); public: template< class M > - inline void SetITKMesh( itk::DataObject* object ); - - template< class M > - inline M* GetITKMesh( ); - - template< class M > - inline const M* GetITKMesh( ) const; - - virtual void SetVTKMesh( vtkPolyData* mesh ); - virtual vtkPolyData* GetVTKMesh( ); - virtual const vtkPolyData* GetVTKMesh( ) const; + inline void SetITK( itk::Object* object ); - /* TODO - virtual void SetITKDataObject( itk::DataObject* o ); - virtual void SetVTKDataObject( vtkDataObject* o ); - - vtkPolyData* GetVTKPolyData( ); - const vtkPolyData* GetVTKPolyData( ) const; - */ + virtual void SetVTK( vtkObject* mesh ); protected: Mesh( ); virtual ~Mesh( ); - /* TODO - 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& );