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