X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FMesh.h;h=4d1f8fd3494a0146cb1b92398a578d66d373c5ce;hb=6ffc11d77924d6ab7e94db95d41105982ac73e00;hp=ffaec80ce9809f4589893c4b35dabcc320957bfc;hpb=9015cf98c60cf4ab304a639990004ee783a8bec0;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/Mesh.h b/lib/cpPlugins/Interface/Mesh.h index ffaec80..4d1f8fd 100644 --- a/lib/cpPlugins/Interface/Mesh.h +++ b/lib/cpPlugins/Interface/Mesh.h @@ -1,10 +1,10 @@ #ifndef __CPPLUGINS__INTERFACE__MESH__H__ #define __CPPLUGINS__INTERFACE__MESH__H__ -#include #include -class vtkPolyData; +// Some forward declarations +class vtkObject; namespace cpPlugins { @@ -24,29 +24,18 @@ namespace cpPlugins public: itkNewMacro( Self ); itkTypeMacro( Mesh, DataObject ); + cpPlugins_Id_Macro( Mesh, DataObject ); public: - virtual void SetITKDataObject( itk::DataObject* o ); - virtual void SetVTKDataObject( vtkDataObject* o ); - - vtkPolyData* GetVTKPolyData( ); - const vtkPolyData* GetVTKPolyData( ) const; + virtual void SetITK( itk::LightObject* o ); + virtual void SetVTK( vtkObjectBase* o ); protected: Mesh( ); virtual ~Mesh( ); - 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 ); + template< class M > + inline void _ITK_2_VTK( itk::LightObject* o ); private: // Purposely not implemented @@ -58,6 +47,8 @@ namespace cpPlugins } // ecapseman +#include + #endif // __CPPLUGINS__INTERFACE__MESH__H__ // eof - $RCSfile$