]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/Mesh.h
ffaec80ce9809f4589893c4b35dabcc320957bfc
[cpPlugins.git] / lib / cpPlugins / Interface / Mesh.h
1 #ifndef __CPPLUGINS__INTERFACE__MESH__H__
2 #define __CPPLUGINS__INTERFACE__MESH__H__
3
4 #include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
5 #include <cpPlugins/Interface/DataObject.h>
6
7 class vtkPolyData;
8
9 namespace cpPlugins
10 {
11   namespace Interface
12   {
13     /**
14      */
15     class cpPlugins_Interface_EXPORT Mesh
16       : public DataObject
17     {
18     public:
19       typedef Mesh                            Self;
20       typedef DataObject                      Superclass;
21       typedef itk::SmartPointer< Self >       Pointer;
22       typedef itk::SmartPointer< const Self > ConstPointer;
23
24     public:
25       itkNewMacro( Self );
26       itkTypeMacro( Mesh, DataObject );
27
28     public:
29       virtual void SetITKDataObject( itk::DataObject* o );
30       virtual void SetVTKDataObject( vtkDataObject* o );
31
32       vtkPolyData* GetVTKPolyData( );
33       const vtkPolyData* GetVTKPolyData( ) const;
34
35     protected:
36       Mesh( );
37       virtual ~Mesh( );
38
39       template< unsigned int D >
40         void _ITK_2_VTK_0( itk::DataObject* o );
41
42       template< class P, unsigned int D >
43         void _ITK_2_VTK_1( itk::DataObject* o );
44
45       template< unsigned int D >
46         void _VTK_2_ITK_0( itk::DataObject* o );
47
48       template< class P, unsigned int D >
49         void _VTK_2_ITK_1( itk::DataObject* o );
50
51     private:
52       // Purposely not implemented
53       Mesh( const Self& );
54       Self& operator=( const Self& );
55     };
56
57   } // ecapseman
58
59 } // ecapseman
60
61 #endif // __CPPLUGINS__INTERFACE__MESH__H__
62
63 // eof - $RCSfile$