Engauge Digitizer 2
Loading...
Searching...
No Matches
TestTransformation.h
Go to the documentation of this file.
1#ifndef TEST_TRANSFORMATION_H
2#define TEST_TRANSFORMATION_H
3
6#include <QObject>
7#include <QPointF>
8
10class TestTransformation : public QObject
11{
12 Q_OBJECT
13public:
15 explicit TestTransformation(QObject *parent = 0);
16
17private slots:
18 void cleanupTestCase ();
19 void initTestCase ();
20
21 void testCartesianLinearLinear ();
22 void testCartesianLinearLog ();
23 void testCartesianLogLinear ();
24 void testCartesianLogLog ();
25 void testPolarLinear ();
26 void testPolarLogOffset1 ();
27 void testPolarLogOffset10 ();
28
29private:
30 DocumentModelCoords modelCoordsDefault() const;
31 DocumentModelGeneral modelGeneralDefault() const;
32
33 double differenceMagnitude (const QPointF &vector1,
34 const QPointF &vector2) const;
35 void initTransformation (const QPointF &s0,
36 const QPointF &s1,
37 const QPointF &s2,
38 const QPointF &g0,
39 const QPointF &g1,
40 const QPointF &g2,
41 const DocumentModelCoords &modelCoords,
42 const DocumentModelGeneral &modelGeneral);
43
44 QPointF m_g0Transformed;
45 QPointF m_g1Transformed;
46 QPointF m_g2Transformed;
47 QPointF m_s0Transformed;
48 QPointF m_s1Transformed;
49 QPointF m_s2Transformed;
50};
51
52#endif // TEST_TRANSFORMATION_H
Model for DlgSettingsCoords and CmdSettingsCoords.
Model for DlgSettingsGeneral and CmdSettingsGeneral.
TestTransformation(QObject *parent=0)
Single constructor.