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