Engauge Digitizer  2
FormatCoordsUnitsStrategyAbstractBase.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 FORMAT_COORDS_UNITS_STRATEGY_ABSTRACT_BASE_H
8 #define FORMAT_COORDS_UNITS_STRATEGY_ABSTRACT_BASE_H
9 
10 class Transformation;
11 
14 {
15  public:
18 
19  protected:
20 
24  int precisionDigitsForRawNumber (double valueUnformatted,
25  double valueUnformattedOther,
26  bool isXTheta,
27  const Transformation &transformation) const;
28 };
29 
30 #endif // FORMAT_COORDS_UNITS_STRATEGY_ABSTRACT_BASE_H
Common methods for formatting strategies.
Affine transformation between screen and graph coordinates, based on digitized axis points...
int precisionDigitsForRawNumber(double valueUnformatted, double valueUnformattedOther, bool isXTheta, const Transformation &transformation) const
Compute precision for outputting an unformatted value, consistent with the resolution at the point wh...