Engauge Digitizer  2
ExportAlignLinear.h
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef EXPORT_ALIGN_LINEAR_H
8 #define EXPORT_ALIGN_LINEAR_H
9 
16 {
17  public:
19  ExportAlignLinear(double xMin,
20  double xMax);
21 
23  double firstSimplestNumber () const;
24 
25  private:
27 
28  double log10 (double in) const;
29  double roundToDigit (double value,
30  int digit) const;
31 
32  double m_firstSimplestNumber;
33 };
34 
35 #endif // EXPORT_ALIGN_LINEAR_H
Pick first simplest x value between specified min and max, for linear scaling.
double firstSimplestNumber() const
Result.