00001 /****************************************************************************************************** 00002 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released * 00003 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file * 00004 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. * 00005 ******************************************************************************************************/ 00006 00007 #ifndef FORMAT_COORDS_UNITS_STRATEGY_ABSTRACT_BASE_H 00008 #define FORMAT_COORDS_UNITS_STRATEGY_ABSTRACT_BASE_H 00009 00010 class DocumentModelGeneral; 00011 class Transformation; 00012 00014 class FormatCoordsUnitsStrategyAbstractBase 00015 { 00016 public: 00018 FormatCoordsUnitsStrategyAbstractBase(); 00019 00020 protected: 00021 00025 int precisionDigitsForRawNumber (double valueUnformatted, 00026 double valueUnformattedOther, 00027 bool isXTheta, 00028 const DocumentModelGeneral &modelGeneral, 00029 const Transformation &transformation) const; 00030 }; 00031 00032 #endif // FORMAT_COORDS_UNITS_STRATEGY_ABSTRACT_BASE_H