]> Creatis software - cpPlugins.git/blob - lib/cpExtensions/Visualization/ImageActor.h
c62c1328461820704653153859d0223f44e3b281
[cpPlugins.git] / lib / cpExtensions / Visualization / ImageActor.h
1 #ifndef __cpExtensions__Visualization__ImageActor__h__
2 #define __cpExtensions__Visualization__ImageActor__h__
3
4 #include <cpExtensions/Config.h>
5 #include <vtkImageSlice.h>
6 #include <vtkSmartPointer.h>
7
8 // -------------------------------------------------------------------------
9 class vtkImageAlgorithm;
10 class vtkImageData;
11 class vtkPlane;
12
13 // -------------------------------------------------------------------------
14 namespace cpExtensions
15 {
16   namespace Visualization
17   {
18     class ImageSliceMapper;
19
20     /**
21      */
22     class cpExtensions_EXPORT ImageActor
23       : public vtkImageSlice
24     {
25     public:
26       typedef ImageActor Self;
27
28     public:
29       vtkTypeMacro( ImageActor, vtkImageSlice );
30
31     public:
32       virtual void Modified( ) cpExtensions_OVERRIDE;
33
34       int GetOrientation( ) const;
35       void SetOrientation( int orientation );
36
37       int GetSliceNumber( ) const;
38       void SetSliceNumber( int slice );
39
40       vtkPlane* GetSlicePlane( );
41       const vtkPlane* GetSlicePlane( ) const;
42
43     protected:
44       ImageActor( );
45       virtual ~ImageActor( );
46
47     private:
48       // Purposely not implemented
49       ImageActor( const Self& );
50       Self& operator=( const Self& );
51
52     protected:
53       vtkSmartPointer< ImageSliceMapper > m_Mapper;
54     };
55
56   } // ecapseman
57
58 } // ecapseman
59
60 #endif // __cpExtensions__Visualization__ImageActor__h__
61
62 // eof - $RCSfile$