]> Creatis software - cpPlugins.git/blob - lib/cpExtensions/Visualization/WindowLevelImageActor.h
f3e8277e804206b4c8c22d59d6c0a640c266172d
[cpPlugins.git] / lib / cpExtensions / Visualization / WindowLevelImageActor.h
1 #ifndef __cpExtensions__Visualization__WindowLevelImageActor__h__
2 #define __cpExtensions__Visualization__WindowLevelImageActor__h__
3
4 #include <cpExtensions/Visualization/ImageActor.h>
5
6 // -------------------------------------------------------------------------
7 namespace cpExtensions
8 {
9   namespace Visualization
10   {
11     /**
12      */
13     class cpExtensions_EXPORT WindowLevelImageActor
14       : public ImageActor
15     {
16     public:
17       typedef WindowLevelImageActor Self;
18
19     public:
20       vtkTypeMacro( WindowLevelImageActor, ImageActor );
21
22     public:
23       static Self* New( );
24
25       vtkImageData* GetImage( );
26       const vtkImageData* GetImage( ) const;
27       void SetImage( vtkImageData* image );
28
29       double GetLevel( );
30       double GetWindow( );
31       void SetLevel( double l );
32       void SetWindow( double w );
33       void SetWindowLevel( double w, double l );
34       void ResetWindowLevel( );
35       void ConfigureWindowLevel( double min, double max );
36       void GetRange( double r[ 2 ] ) const;
37
38     protected:
39       WindowLevelImageActor( );
40       virtual ~WindowLevelImageActor( );
41
42     private:
43       // Purposely not implemented
44       WindowLevelImageActor( const Self& );
45       Self& operator=( const Self& );
46
47     protected:
48       double m_Range[ 2 ];
49     };
50
51   } // ecapseman
52
53 } // ecapseman
54
55 #endif // __cpExtensions__Visualization__WindowLevelImageActor__h__
56
57 // eof - $RCSfile$