]> Creatis software - cpPlugins.git/blob - lib/cpExtensions/Visualization/WindowLevelImageActor.h
Cast image filter added. ROI filter modified.
[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( ) const;
30       double GetWindow( ) const;
31       void GetWindowLevel( double wl[ 2 ] ) const;
32       void ResetWindowLevel( );
33       void SetLevel( double l );
34       void SetWindow( double w );
35       void SetWindowLevel( double w, double l );
36       void SetWindowLevel( double wl[ 2 ] );
37
38       double GetMinimum( ) const;
39       double GetMaximum( ) const;
40       void GetRange( double r[ 2 ] ) const;
41       void ResetRange( );
42       void SetMinimum( double a );
43       void SetMaximum( double b );
44       void SetRange( double a, double b );
45       void SetRange( double r[ 2 ] );
46
47     protected:
48       WindowLevelImageActor( );
49       virtual ~WindowLevelImageActor( );
50
51     private:
52       // Purposely not implemented
53       WindowLevelImageActor( const Self& );
54       Self& operator=( const Self& );
55
56     protected:
57       double m_Range[ 2 ];
58     };
59
60   } // ecapseman
61
62 } // ecapseman
63
64 #endif // __cpExtensions__Visualization__WindowLevelImageActor__h__
65
66 // eof - $RCSfile$