]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/Mesh.h
Widget integration (step 3/6). WARNING: IT DOES NOT COMPILE YET
[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 #include <vtkSmartPointer.h>
8 #include <vtkActor.h>
9 #include <vtkPolyDataMapper.h>
10
11 namespace cpPlugins
12 {
13   namespace Interface
14   {
15     /**
16      */
17     class cpPlugins_Interface_EXPORT Mesh
18       : public DataObject
19     {
20     public:
21       typedef Mesh                            Self;
22       typedef DataObject                      Superclass;
23       typedef itk::SmartPointer< Self >       Pointer;
24       typedef itk::SmartPointer< const Self > ConstPointer;
25
26     public:
27       itkNewMacro( Self );
28       itkTypeMacro( Mesh, DataObject );
29
30     public:
31       template< class M >
32         inline void SetITK( itk::Object* object );
33
34       virtual void SetVTK( vtkObject* mesh );
35
36       virtual void CreateVTKActor( );
37       virtual vtkActor* GetVTKActor( );
38       virtual const vtkActor* GetVTKActor( ) const;
39
40     protected:
41       Mesh( );
42       virtual ~Mesh( );
43
44     private:
45       // Purposely not implemented
46       Mesh( const Self& );
47       Self& operator=( const Self& );
48
49     protected:
50       vtkSmartPointer< vtkActor >          m_Actor;
51       vtkSmartPointer< vtkPolyDataMapper > m_Mapper;
52     };
53
54   } // ecapseman
55
56 } // ecapseman
57
58 #include <cpPlugins/Interface/Mesh.hxx>
59
60 #endif // __CPPLUGINS__INTERFACE__MESH__H__
61
62 // eof - $RCSfile$