X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FMesh.h;h=ae7292891d2b1cfccb226a596f9c7bff1b1459eb;hb=2361f4f97631e09d88d8a5510a369817dcaa19db;hp=241da35309cac492dfea071d86be5fa226af0407;hpb=cb833d2fface96e020fe91584d2206860a8174ee;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/Mesh.h b/lib/cpPlugins/Interface/Mesh.h index 241da35..ae72928 100644 --- a/lib/cpPlugins/Interface/Mesh.h +++ b/lib/cpPlugins/Interface/Mesh.h @@ -1,13 +1,10 @@ #ifndef __CPPLUGINS__INTERFACE__MESH__H__ #define __CPPLUGINS__INTERFACE__MESH__H__ -#include -#include -#include -#include +#include #include -class vtkMapper; +class vtkPolyData; namespace cpPlugins { @@ -15,7 +12,7 @@ namespace cpPlugins { /** */ - class cpPlugins_Interface_EXPORT Mesh + class cpPlugins_EXPORT Mesh : public DataObject { public: @@ -29,29 +26,32 @@ namespace cpPlugins itkTypeMacro( Mesh, DataObject ); public: - virtual std::string GetClassName( ) const; - virtual void SetRealDataObject( itk::DataObject* dobj ); + virtual void SetITKDataObject( itk::DataObject* o ); + virtual void SetVTKDataObject( vtkDataObject* o ); - vtkMapper* GetVTKMapper( ) const; + vtkPolyData* GetVTKPolyData( ); + const vtkPolyData* GetVTKPolyData( ) const; protected: Mesh( ); virtual ~Mesh( ); - template< class M > - void _Map( ); + 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& ); Self& operator=( const Self& ); - - protected: - /* - itk::ProcessObject::Pointer m_Mesh2VTKMeshData; - vtkMeshData* m_VTKMeshData; - */ - vtkMapper* m_Mapper; }; } // ecapseman