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
22 #include <QtDesigner/QDesignerExportWidget>
26 #include "clitkCommon.h"
29 #include "ui_vvIntensityValueSlider.h"
31 #include "vtkImageData.h"
33 //------------------------------------------------------------------------------
34 class vvIntensityValueSlider:
35 public QWidget, private Ui::vvIntensityValueSlider {
38 vvIntensityValueSlider(QWidget * parent=0, Qt::WindowFlags f=0);
39 ~vvIntensityValueSlider();
41 void SetText(QString t);
42 void SetImage(vvImage * im);
44 double GetValue() const { return mValue; }
45 void SetValue(double d);
46 void SetMaximum(double max);
47 void SetMinimum(double min);
48 void SetSingleStep(double step);
49 void resetMinimum() { SetMinimum(mMin); }
50 void resetMaximum() { SetMaximum(mMax); }
53 void valueChangedFromSpinBox(double v);
54 void valueChangedFromSlider(int v);
55 void SingleStepPlusClicked();
56 void SingleStepMinusClicked();
59 void valueChanged(double);
62 Ui::vvIntensityValueSlider ui;
71 }; // end class vvIntensityValueSlider
72 //------------------------------------------------------------------------------