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://oncora1.lyon.fnclcc.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
20 #include <QtDesigner/QDesignerExportWidget>
23 #include "ui_vvIntensityValueSlider.h"
24 #include "clitkCommon.h"
26 #include "vtkImageData.h"
28 //------------------------------------------------------------------------------
29 class vvIntensityValueSlider:
30 public QWidget, private Ui::vvIntensityValueSlider {
33 vvIntensityValueSlider(QWidget * parent=0, Qt::WindowFlags f=0);
34 ~vvIntensityValueSlider();
36 void SetText(QString t);
37 void SetImage(vvImage * im);
39 double GetValue() const { return mValue; }
40 void SetValue(double d);
41 void SetMaximum(double max);
42 void SetMinimum(double min);
43 void SetSingleStep(double step);
44 void resetMinimum() { SetMinimum(mMin); }
45 void resetMaximum() { SetMaximum(mMax); }
48 void valueChangedFromSpinBox(double v);
49 void valueChangedFromSlider(int v);
50 void SingleStepPlusClicked();
51 void SingleStepMinusClicked();
54 void valueChanged(double);
57 Ui::vvIntensityValueSlider ui;
66 }; // end class vvIntensityValueSlider
67 //------------------------------------------------------------------------------