]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/Mesh.h
...
[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     protected:
43       Mesh( );
44       virtual ~Mesh( );
45
46     private:
47       // Purposely not implemented
48       Mesh( const Self& );
49       Self& operator=( const Self& );
50     };
51
52   } // ecapseman
53
54 } // ecapseman
55
56 #include <cpPlugins/Interface/Mesh.hxx>
57
58 #endif // __CPPLUGINS__INTERFACE__MESH__H__
59
60 // eof - $RCSfile$