CMS 3D CMS Logo

IgQtRangeValuePrecision.cc

Go to the documentation of this file.
00001 //<<<<<< INCLUDES                                                       >>>>>>
00002 
00003 # include "Iguana/GLBrowsers/interface/IgQtRangeValuePrecision.h"
00004 # include <cmath>
00005 
00006 //<<<<<< PRIVATE DEFINES                                                >>>>>>
00007 //<<<<<< PRIVATE CONSTANTS                                              >>>>>>
00008 //<<<<<< PRIVATE TYPES                                                  >>>>>>
00009 //<<<<<< PRIVATE VARIABLE DEFINITIONS                                   >>>>>>
00010 //<<<<<< PUBLIC VARIABLE DEFINITIONS                                    >>>>>>
00011 //<<<<<< CLASS STRUCTURE INITIALIZATION                                 >>>>>>
00012 //<<<<<< PRIVATE FUNCTION DEFINITIONS                                   >>>>>>
00013 //<<<<<< PUBLIC FUNCTION DEFINITIONS                                    >>>>>>
00014 //<<<<<< MEMBER FUNCTION DEFINITIONS                                    >>>>>>
00015 
00019 
00020 IgQtRangeValuePrecision::IgQtRangeValuePrecision (float precision)
00021 { setPrecision (precision); }
00022 
00023 void
00024 IgQtRangeValuePrecision::setPrecision (float value)
00025 {
00026     if ((value = fabs (value)) > 0 && value < minimumPrecision ())
00027         value = minimumPrecision ();
00028 
00029     m_precision = value;
00030 }
00031 
00032 float
00033 IgQtRangeValuePrecision::precision (void) const
00034 { return m_precision; }
00035 
00036 float
00037 IgQtRangeValuePrecision::minimumPrecision (void)
00038 { return 0.00001; }

Generated on Tue Jun 9 17:38:39 2009 for CMSSW by  doxygen 1.5.4