Engauge Digitizer 2
Loading...
Searching...
No Matches
Transformation.cpp File Reference
#include "CallbackUpdateTransform.h"
#include "Document.h"
#include "EngaugeAssert.h"
#include "FormatCoordsUnits.h"
#include "Logger.h"
#include <QDebug>
#include <qmath.h>
#include <QObject>
#include <QtGlobal>
#include "QtToString.h"
#include "Transformation.h"
#include <ostream>
Include dependency graph for Transformation.cpp:

Go to the source code of this file.

Functions

ostream & operator<< (ostream &strOuter, const Transformation &transformation)
QDebug operator<< (QDebug debug, const Transformation &transformation)

Variables

const int PRECISION_DIGITS = 4
 Max number of significant digits.
const double ZERO_OFFSET_AFTER_LOG = 1

Function Documentation

◆ operator<<() [1/2]

ostream & operator<< ( ostream & strOuter,
const Transformation & transformation )

Definition at line 277 of file Transformation.cpp.

279{
280 QString text;
281 QTextStream strInner (&text);
282 transformation.printStream ("", strInner);
283
284 strOuter << text.toLatin1().data ();
285
286 return strOuter;
287}
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...

◆ operator<<() [2/2]

QDebug operator<< ( QDebug debug,
const Transformation & transformation )

Definition at line 289 of file Transformation.cpp.

291{
292 QString text;
293 QTextStream strInner (&text);
294 transformation.printStream ("", strInner);
295
296 debug << text;
297
298 return debug;
299}

Variable Documentation

◆ PRECISION_DIGITS

const int PRECISION_DIGITS = 4

Max number of significant digits.

Number of pixels in each direction should just fit into this number of characters.

Definition at line 24 of file Transformation.cpp.

◆ ZERO_OFFSET_AFTER_LOG

const double ZERO_OFFSET_AFTER_LOG = 1

Definition at line 26 of file Transformation.cpp.