X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FMesh.h;h=75c5eb3683e766a6a546e3091330116d170a8b2e;hb=75dc4945344b4a5a7be10a3ca33fa2e6fff87df8;hp=a1f06771b7410c41190b230f5899a7e8faddc30b;hpb=e561a2fa4dcaee2c544e58385e1ff7d56ba8b051;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/Mesh.h b/lib/cpPlugins/Interface/Mesh.h index a1f0677..75c5eb3 100644 --- a/lib/cpPlugins/Interface/Mesh.h +++ b/lib/cpPlugins/Interface/Mesh.h @@ -1,13 +1,13 @@ #ifndef __CPPLUGINS__INTERFACE__MESH__H__ #define __CPPLUGINS__INTERFACE__MESH__H__ -#include -#include -#include #include #include -class vtkMapper; +#include +#include +#include +#include namespace cpPlugins { @@ -29,31 +29,41 @@ namespace cpPlugins itkTypeMacro( Mesh, DataObject ); public: - virtual std::string GetClassName( ) const; - virtual void SetRealDataObject( itk::DataObject* dobj ); + template< class M > + inline void SetITKMesh( itk::DataObject* object ); + + template< class M > + inline M* GetITKMesh( ); + + template< class M > + inline const M* GetITKMesh( ) const; - vtkMapper* GetVTKMapper( ) const; + virtual void SetVTKMesh( vtkPolyData* mesh ); + virtual vtkPolyData* GetVTKMesh( ); + virtual const vtkPolyData* GetVTKMesh( ) const; + 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< vtkActor > m_Actor; + vtkSmartPointer< vtkPolyDataMapper > m_Mapper; }; } // ecapseman } // ecapseman +#include + #endif // __CPPLUGINS__INTERFACE__MESH__H__ // eof - $RCSfile$