25const double PI = 3.1415926535;
29 m_transformIsDefined (
false)
34 m_transformIsDefined (
other.transformIsDefined()),
35 m_transform (
other.transformMatrix())
37 setModelCoords (
other.modelCoords(),
39 other.modelMainWindow());
44 m_transformIsDefined =
other.transformIsDefined();
45 m_transform =
other.transformMatrix ();
46 setModelCoords (
other.modelCoords(),
48 other.modelMainWindow());
55 return (m_transformIsDefined !=
other.transformIsDefined()) ||
56 (m_transform !=
other.transformMatrix ());
90 double angleRadians = 0;
178 QObject::tr (
"Need scale bar") :
179 QObject::tr (
"Need more axis points"));
195 if (m_transformIsDefined) {
245 m_transformIsDefined =
true;
264 return m_modelCoords;
269 return m_modelGeneral;
274 return m_modelMainWindow;
292 str <<
"Transformation\n";
296 if (m_transformIsDefined) {
298 str <<
indentation <<
"affine=" << (m_transform.isAffine() ?
"yes" :
"no") <<
" matrix=("
299 << m_transform.m11() <<
", " << m_transform.m12() <<
", " << m_transform.m13() <<
", "
300 << m_transform.m21() <<
", " << m_transform.m22() <<
", " << m_transform.m23() <<
", "
301 << m_transform.m31() <<
", " << m_transform.m32() <<
", " << m_transform.m33() <<
")";
314 m_transformIsDefined =
false;
317double Transformation::roundOffSmallValues (
double value,
double range)
337 return m_transformIsDefined;
471 m_transformIsDefined =
false;
486 if (
ftor.transformIsDefined ()) {
488 updateTransformFromMatrices (
ftor.matrixScreen(),
493 m_transformIsDefined =
false;
499void Transformation::updateTransformFromMatrices (
const QTransform &matrixScreen,
504 m_transformIsDefined =
true;
524 QPointF (matrixScreen.m12(), matrixScreen.m22()),
525 QPointF (matrixScreen.m13(), matrixScreen.m23()),
@ COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS_NSEW
@ COORD_UNITS_POLAR_THETA_TURNS
@ COORD_UNITS_POLAR_THETA_RADIANS
@ COORD_UNITS_POLAR_THETA_DEGREES_MINUTES
@ COORD_UNITS_POLAR_THETA_DEGREES
@ COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS
@ COORD_UNITS_POLAR_THETA_GRADIANS
const int INNER_RADIUS_MIN
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS) define ENGAUGE...
log4cpp::Category * mainCat
const QString INDENTATION_DELTA
QString QTransformToString(const QTransform &transform)
QString QPointFToString(const QPointF &pos)
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
Model for DlgSettingsCoords and CmdSettingsCoords.
CoordScale coordScaleYRadius() const
Get method for linear/log scale on y/radius.
CoordUnitsPolarTheta coordUnitsTheta() const
Get method for theta unit.
CoordScale coordScaleXTheta() const
Get method for linear/log scale on x/theta.
CoordsType coordsType() const
Get method for coordinates type.
double originRadius() const
Get method for origin radius in polar mode.
Model for DlgSettingsGeneral and CmdSettingsGeneral.
DocumentModelGeneral modelGeneral() const
Get method for DocumentModelGeneral.
DocumentModelCoords modelCoords() const
Get method for DocumentModelCoords.
DocumentAxesPointsRequired documentAxesPointsRequired() const
Get method for DocumentAxesPointsRequired.
Model for DlgSettingsMainWindow.
#define LOG4CPP_INFO_S(logger)
#define LOG4CPP_DEBUG_S(logger)