]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/Mesh.h
Garbage collector added
[cpPlugins.git] / lib / cpPlugins / Interface / Mesh.h
1 #ifndef __CPPLUGINS__INTERFACE__MESH__H__
2 #define __CPPLUGINS__INTERFACE__MESH__H__
3
4 #include <map>
5 #include <string>
6 #include <itkProcessObject.h>
7 #include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
8 #include <cpPlugins/Interface/DataObject.h>
9
10 class vtkMapper;
11
12 namespace cpPlugins
13 {
14   namespace Interface
15   {
16     /**
17      */
18     class cpPlugins_Interface_EXPORT Mesh
19       : public DataObject
20     {
21     public:
22       typedef Mesh                            Self;
23       typedef DataObject                      Superclass;
24       typedef itk::SmartPointer< Self >       Pointer;
25       typedef itk::SmartPointer< const Self > ConstPointer;
26
27     public:
28       itkNewMacro( Self );
29       itkTypeMacro( Mesh, DataObject );
30
31     public:
32       virtual std::string GetClassName( ) const;
33       virtual void SetRealDataObject( itk::DataObject* dobj );
34
35       vtkMapper* GetVTKMapper( ) const;
36
37     protected:
38       Mesh( );
39       virtual ~Mesh( );
40
41       template< class M >
42         void _Map( );
43
44     private:
45       // Purposely not implemented
46       Mesh( const Self& );
47       Self& operator=( const Self& );
48
49     protected:
50       /*
51         itk::ProcessObject::Pointer m_Mesh2VTKMeshData;
52         vtkMeshData* m_VTKMeshData;
53       */
54       vtkMapper* m_Mapper;
55     };
56
57   } // ecapseman
58
59 } // ecapseman
60
61 #endif // __CPPLUGINS__INTERFACE__MESH__H__
62
63 // eof - $RCSfile$