Engauge Digitizer 2
Loading...
Searching...
No Matches
FormatCoordsUnitsStrategyAbstractBase.h
Go to the documentation of this file.
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
11class Transformation;
12
15{
16 public:
19
20 protected:
21
25 int precisionDigitsForRawNumber (double valueUnformatted,
26 double valueUnformattedOther,
27 bool isXTheta,
28 const DocumentModelGeneral &modelGeneral,
29 const Transformation &transformation) const;
30};
31
32#endif // FORMAT_COORDS_UNITS_STRATEGY_ABSTRACT_BASE_H
Model for DlgSettingsGeneral and CmdSettingsGeneral.
int precisionDigitsForRawNumber(double valueUnformatted, double valueUnformattedOther, bool isXTheta, const DocumentModelGeneral &modelGeneral, const Transformation &transformation) const
Compute precision for outputting an unformatted value, consistent with the resolution at the point wh...
Affine transformation between screen and graph coordinates, based on digitized axis points.