]> Creatis software - cpPlugins.git/blob - lib/cpExtensions/Visualization/MeshActor.h
Cast image filter added. ROI filter modified.
[cpPlugins.git] / lib / cpExtensions / Visualization / MeshActor.h
1 #ifndef __cpExtensions__Visualization__MeshActor__h__
2 #define __cpExtensions__Visualization__MeshActor__h__
3
4 #include <cpExtensions/Config.h>
5 #include <vtkSmartPointer.h>
6
7 // -------------------------------------------------------------------------
8 class vtkActor;
9 class vtkPolyData;
10 class vtkPolyDataMapper;
11
12 // -------------------------------------------------------------------------
13 namespace cpExtensions
14 {
15   namespace Visualization
16   {
17     /**
18      */
19     class cpExtensions_EXPORT MeshActor
20     {
21     public:
22       typedef MeshActor Self;
23
24     public:
25       MeshActor( );
26       virtual ~MeshActor( );
27
28       void SetMesh( vtkPolyData* mesh );
29
30       vtkActor* GetActor( );
31       const vtkActor* GetActor( ) const;
32
33     protected:
34       vtkSmartPointer< vtkPolyData >       m_Mesh;
35       vtkSmartPointer< vtkPolyDataMapper > m_Mapper;
36       vtkSmartPointer< vtkActor >          m_Actor;
37     };
38
39   } // ecapseman
40
41 } // ecapseman
42
43 #endif // __cpExtensions__Visualization__MeshActor__h__
44
45 // eof - $RCSfile$