X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvIntensityValueSlider.h;h=be6e7138ed816f2c4f1938efd21e55a6a3c24771;hb=61d57d331b0459560f6714c0c6bb8298868a662e;hp=831d29b37c7c91334cf146563c87561b820fd682;hpb=f7dee5f397e4efa933ef32507698ff1c1e573c2e;p=clitk.git diff --git a/vv/vvIntensityValueSlider.h b/vv/vvIntensityValueSlider.h index 831d29b..be6e713 100644 --- a/vv/vvIntensityValueSlider.h +++ b/vv/vvIntensityValueSlider.h @@ -3,8 +3,8 @@ Program: vv Module: $RCSfile: vvIntensityValueSlider.h,v $ Language: C++ - Date: $Date: 2010/01/29 13:54:37 $ - Version: $Revision: 1.1 $ + Date: $Date: 2010/03/05 10:32:33 $ + Version: $Revision: 1.3 $ Author : David Sarrut (david.sarrut@creatis.insa-lyon.fr) Copyright (C) 2008 @@ -37,7 +37,7 @@ #include "vtkImageData.h" //------------------------------------------------------------------------------ -class QDESIGNER_WIDGET_EXPORT vvIntensityValueSlider: +class vvIntensityValueSlider: public QWidget, private Ui::vvIntensityValueSlider { Q_OBJECT public: @@ -50,13 +50,16 @@ class QDESIGNER_WIDGET_EXPORT vvIntensityValueSlider: double GetValue() const { return mValue; } void SetValue(double d); void SetMaximum(double max); - void SetMinimum(double min); + void SetMinimum(double min); + void SetSingleStep(double step); void resetMinimum() { SetMinimum(mMin); } void resetMaximum() { SetMaximum(mMax); } public slots: void valueChangedFromSpinBox(double v); void valueChangedFromSlider(int v); + void SingleStepPlusClicked(); + void SingleStepMinusClicked(); signals: void valueChanged(double); @@ -64,10 +67,12 @@ class QDESIGNER_WIDGET_EXPORT vvIntensityValueSlider: protected: Ui::vvIntensityValueSlider ui; vvImage * mImage; + double mMin; + double mMax; + double mWidth; double mSliderFactor; double mValue; - double mMax; - double mMin; + bool mIsInteger; }; // end class vvIntensityValueSlider //------------------------------------------------------------------------------