00001 #ifndef IGUANA_GL_BROWSERS_IG_QT_RANGE_MVALUE_FLOAT_H
00002 # define IGUANA_GL_BROWSERS_IG_QT_RANGE_MVALUE_FLOAT_H
00003
00004
00005
00006 # include "Iguana/GLBrowsers/interface/IgQtRangeMValue.h"
00007 # include "Iguana/GLBrowsers/interface/IgQtRangeValuePrecision.h"
00008
00009
00010
00011
00012
00013
00014
00015
00016 class IGUANA_GL_BROWSERS_API IgQtRangeMValueFloat : public IgQtRangeMValue<float>,
00017 public IgQtRangeValuePrecision
00018 {
00019 public:
00020 IgQtRangeMValueFloat (float value = 0.,
00021 float min = SHRT_MIN,
00022 float max = SHRT_MAX);
00023
00024 IgQtRangeMValueFloat (unsigned int size,
00025 const float* values,
00026 float min = SHRT_MIN,
00027 float max = SHRT_MAX);
00028
00029 IgQtRangeMValueFloat (const rangeMValues& values,
00030 float min = SHRT_MIN,
00031 float max = SHRT_MAX);
00032
00033
00034
00035
00036 using inherited::setValue;
00037 virtual void setValue (unsigned int index, float value);
00038
00039 using inherited::isValueChanged;
00040 virtual bool isValueChanged (unsigned int index) const;
00041
00042 float roundOff (float number, float precision = .001);
00043
00044 protected:
00045 using inherited::forceValueChanged;
00046 void forceValueChanged (float delta);
00047 void forceValueChanged (unsigned int index, float delta);
00048 };
00049
00050
00051
00052
00053
00054 #endif // IGUANA_GL_BROWSERS_IG_QT_RANGE_VALUE_FLOAT_H