Engauge Digitizer  2
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 
11 class 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
Transformation
Affine transformation between screen and graph coordinates, based on digitized axis points.
Definition: Transformation.h:30
DocumentModelGeneral
Model for DlgSettingsGeneral and CmdSettingsGeneral.
Definition: DocumentModelGeneral.h:15
FormatCoordsUnitsStrategyAbstractBase::FormatCoordsUnitsStrategyAbstractBase
FormatCoordsUnitsStrategyAbstractBase()
Single constructor.
Definition: FormatCoordsUnitsStrategyAbstractBase.cpp:12
FormatCoordsUnitsStrategyAbstractBase::precisionDigitsForRawNumber
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...
Definition: FormatCoordsUnitsStrategyAbstractBase.cpp:16
FormatCoordsUnitsStrategyAbstractBase
Common methods for formatting strategies.
Definition: FormatCoordsUnitsStrategyAbstractBase.h:13