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 #include <QtDesigner/QDesignerExportWidget>
27 #include "clitkCommon.h"
30 #include "ui_vvIntensityValueSlider.h"
32 #include "vtkImageData.h"
34 //------------------------------------------------------------------------------
35 class vvIntensityValueSlider:
36 public QWidget, private Ui::vvIntensityValueSlider {
39 vvIntensityValueSlider(QWidget * parent=0, Qt::WindowFlags f=0);
40 ~vvIntensityValueSlider();
42 void SetText(QString t);
43 void SetImage(vvImage * im);
45 double GetValue() const { return mValue; }
46 void SetValue(double d);
47 void SetMaximum(double max);
48 void SetMinimum(double min);
49 void SetSingleStep(double step);
50 void resetMinimum() { SetMinimum(mMin); }
51 void resetMaximum() { SetMaximum(mMax); }
54 void valueChangedFromSpinBox(double v);
55 void valueChangedFromSlider(int v);
56 void SingleStepPlusClicked();
57 void SingleStepMinusClicked();
60 void valueChanged(double);
63 Ui::vvIntensityValueSlider ui;
72 }; // end class vvIntensityValueSlider
73 //------------------------------------------------------------------------------