]> Creatis software - cpPlugins.git/blob - lib/cpExtensions/QT/WindowLevelImageConfiguration.h
Cast image filter added. ROI filter modified.
[cpPlugins.git] / lib / cpExtensions / QT / WindowLevelImageConfiguration.h
1 #ifndef __cpExtensions__QT__WindowLevelImageConfiguration__h__
2 #define __cpExtensions__QT__WindowLevelImageConfiguration__h__
3
4 #include <cpExtensions/Config.h>
5
6 #ifdef cpExtensions_QT4
7
8 #include <QWidget>
9
10 // -------------------------------------------------------------------------
11 namespace Ui { class WindowLevelImageConfiguration; }
12
13 // -------------------------------------------------------------------------
14 namespace cpExtensions
15 {
16   namespace QT
17   {
18     class ActorsWidgetInterface;
19
20     /**
21      */
22     class cpExtensions_EXPORT WindowLevelImageConfiguration
23       : public QWidget
24     {
25       Q_OBJECT;
26
27     public:
28       typedef WindowLevelImageConfiguration Self;
29       typedef QWidget                       Superclass;
30
31     public:
32       explicit WindowLevelImageConfiguration(
33         QWidget* parent = NULL, Qt::WindowFlags f = 0
34         );
35       virtual ~WindowLevelImageConfiguration( );
36
37       void setData( ActorsWidgetInterface* data, const std::string& name );
38
39     protected slots:
40       void _maximumValue( int v );
41       void _minimumValue( int v );
42       void _levelValue( int v );
43       void _windowValue( int v );
44       void _opacityValue( int v );
45       void _interpolatorValue( int v );
46
47     protected:
48       Ui::WindowLevelImageConfiguration* m_UI;
49       ActorsWidgetInterface* m_Data;
50       std::string m_Name;
51     };
52
53   } // ecapseman
54
55 } // ecapseman
56
57 #endif // cpExtensions_QT4
58
59 #endif // __cpExtensions__QT__WindowLevelImageConfiguration__h__
60
61 // eof - $RCSfile$