Engauge Digitizer  2
FormatCoordsUnits.h
1 #ifndef FORMAT_COORDS_UNITS_H
2 #define FORMAT_COORDS_UNITS_H
3 
5 class QString;
6 class Transformation;
7 
10  public:
13 
15  void formattedToUnformatted (const QString &xThetaFormatted,
16  const QString &yRadiusFormatted,
17  const DocumentModelCoords &modelCoords,
18  double &xThetaUnformatted,
19  double &yRadiusUnformatted) const;
20 
22  void unformattedToFormatted (double xThetaUnformatted,
23  double yRadiusUnformatted,
24  const DocumentModelCoords &modelCoords,
25  QString &xThetaFormatted,
26  QString &yRadiusFormatted,
27  const Transformation &transformation) const;
28 };
29 
30 #endif // FORMAT_COORDS_UNITS_H
FormatCoordsUnits()
Single constructor.
void unformattedToFormatted(double xThetaUnformatted, double yRadiusUnformatted, const DocumentModelCoords &modelCoords, QString &xThetaFormatted, QString &yRadiusFormatted, const Transformation &transformation) const
Convert unformatted numeric value to formatted string. Transformation is used to determine best resol...
Affine transformation between screen and graph coordinates, based on digitized axis points...
Model for DlgSettingsCoords and CmdSettingsCoords.
Highest-level wrapper around other Formats classes.
void formattedToUnformatted(const QString &xThetaFormatted, const QString &yRadiusFormatted, const DocumentModelCoords &modelCoords, double &xThetaUnformatted, double &yRadiusUnformatted) const
Convert formatted string to unformatted numeric value.