1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef VVINTENSITYVALUESLIDER_H
19 #define VVINTENSITYVALUESLIDER_H
23 #if QT_VERSION < 0x050000
24 #include <QtDesigner/QDesignerExportWidget>
26 #include <QtUiPlugin/QDesignerExportWidget>
31 #include "clitkCommon.h"
34 #include "ui_vvIntensityValueSlider.h"
36 #include "vtkImageData.h"
38 //------------------------------------------------------------------------------
39 class vvIntensityValueSlider:
40 public QWidget, private Ui::vvIntensityValueSlider {
43 vvIntensityValueSlider(QWidget * parent=0, Qt::WindowFlags f=0);
44 ~vvIntensityValueSlider();
46 void SetText(QString t);
47 void SetImage(vvImage * im);
49 double GetValue() const { return mValue; }
50 void SetValue(double d);
51 void SetMaximum(double max);
52 void SetMinimum(double min);
53 void SetSingleStep(double step);
54 void resetMinimum() { SetMinimum(mMin); }
55 void resetMaximum() { SetMaximum(mMax); }
58 void valueChangedFromSpinBox(double v);
59 void valueChangedFromSlider(int v);
60 void SingleStepPlusClicked();
61 void SingleStepMinusClicked();
64 void valueChanged(double);
67 Ui::vvIntensityValueSlider ui;
76 }; // end class vvIntensityValueSlider
77 //------------------------------------------------------------------------------