]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/Mesh.h
11a52e8dae2a71bc04254c52e7bbc86403d3ec61
[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       template< class M >
30         inline void SetITKMesh( itk::DataObject* object );
31
32       template< class M >
33         inline M* GetITKMesh( );
34
35       template< class M >
36         inline const M* GetITKMesh( ) const;
37
38       virtual void SetVTKMesh( vtkPolyData* mesh );
39       virtual vtkPolyData* GetVTKMesh( );
40       virtual const vtkPolyData* GetVTKMesh( ) const;
41
42       /* TODO
43          virtual void SetITKDataObject( itk::DataObject* o );
44          virtual void SetVTKDataObject( vtkDataObject* o );
45
46          vtkPolyData* GetVTKPolyData( );
47          const vtkPolyData* GetVTKPolyData( ) const;
48       */
49
50     protected:
51       Mesh( );
52       virtual ~Mesh( );
53
54       /* TODO
55          template< unsigned int D >
56          void _ITK_2_VTK_0( itk::DataObject* o );
57
58          template< class P, unsigned int D >
59          void _ITK_2_VTK_1( itk::DataObject* o );
60
61          template< unsigned int D >
62          void _VTK_2_ITK_0( itk::DataObject* o );
63
64          template< class P, unsigned int D >
65          void _VTK_2_ITK_1( itk::DataObject* o );
66       */
67
68     private:
69       // Purposely not implemented
70       Mesh( const Self& );
71       Self& operator=( const Self& );
72     };
73
74   } // ecapseman
75
76 } // ecapseman
77
78 #include <cpPlugins/Interface/Mesh.hxx>
79
80 #endif // __CPPLUGINS__INTERFACE__MESH__H__
81
82 // eof - $RCSfile$