Engauge Digitizer 2
Loading...
Searching...
No Matches
FormatCoordsUnitsStrategyPolarTheta.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_POLAR_THETA_H
8#define FORMAT_COORDS_UNITS_STRATEGY_POLAR_THETA_H
9
10#include "CoordUnitsPolarTheta.h"
11#include "FormatCoordsUnitsStrategyAbstractBase.h"
12#include <QString>
13
14class QLocale;
15class Transformation;
16
19 public:
22
24 double formattedToUnformatted (const QString &string,
25 const QLocale &locale,
26 CoordUnitsPolarTheta coordUnits) const;
27
29 QString unformattedToFormatted (double valueUnformatted,
30 const QLocale &locale,
31 CoordUnitsPolarTheta coordUnits,
32 const Transformation &transformation,
33 double valueUnformattedOther) const;
34};
35
36#endif // FORMAT_COORDS_UNITS_STRATEGY_POLAR_THETA_H
Format conversions between unformatted and formatted for CoordUnitsStrategyPolarTheta.
double formattedToUnformatted(const QString &string, const QLocale &locale, CoordUnitsPolarTheta coordUnits) const
Convert formatted string to simple unformatted number.
QString unformattedToFormatted(double valueUnformatted, const QLocale &locale, CoordUnitsPolarTheta coordUnits, const Transformation &transformation, double valueUnformattedOther) const
Convert simple unformatted number to formatted string.
Affine transformation between screen and graph coordinates, based on digitized axis points.