8#include <QtTest/QtTest>
21void TestGridLineLimiter::cleanupTestCase ()
25void TestGridLineLimiter::initTestCase ()
58void TestGridLineLimiter::testBadStepLinearX ()
60 bool success = testLinearX (0,
70void TestGridLineLimiter::testBadStepLinearY ()
72 bool success = testLinearY (0,
82void TestGridLineLimiter::testBadStepLogX ()
84 bool success = testLogX (0,
94void TestGridLineLimiter::testBadStepLogY ()
96 bool success = testLogY (0,
106bool TestGridLineLimiter::testLinearX (
double start,
109 double x1,
double y1,
110 double x2,
double y2,
111 double x3,
double y3)
120 double startX, stepX, stopX;
131 limiter.limitForXTheta (document,
149 success = (startX == stopX);
156bool TestGridLineLimiter::testLinearY (
double start,
159 double x1,
double y1,
160 double x2,
double y2,
161 double x3,
double y3)
170 double startY, stepY, stopY;
181 limiter.limitForYRadius (document,
199 success = (startY == stopY);
206bool TestGridLineLimiter::testLogX (
double start,
209 double x1,
double y1,
210 double x2,
double y2,
211 double x3,
double y3)
220 double startX, stepX, stopX;
231 limiter.limitForXTheta (document,
240 bool success = (startX > 0) && (stepX > 0);
252bool TestGridLineLimiter::testLogY (
double start,
255 double x1,
double y1,
256 double x2,
double y2,
257 double x3,
double y3)
266 double startY, stepY, stopY;
277 limiter.limitForYRadius (document,
286 bool success = (startY > 0) && (stepY > 0);
298void TestGridLineLimiter::testTransitionLinearToLogX ()
300 bool success = testLogX (0,
310void TestGridLineLimiter::testTransitionLinearToLogY ()
312 bool success = testLogY (0,
const int INNER_RADIUS_MIN
void initializeLogging(const QString &name, const QString &filename, bool isDebug)
const bool NO_EXPORT_ONLY
const QStringList NO_COMMAND_LINE
const QString NO_EXTRACT_IMAGE_EXTENSION
const QString NO_ERROR_REPORT_LOG_FILE
const bool NO_GNUPLOT_LOG_FILES
const QString NO_REGRESSION_OPEN_FILE
const QStringList NO_LOAD_STARTUP_FILES
const bool NO_REGRESSION_IMPORT
const bool NO_EXTRACT_IMAGE_ONLY
const bool NO_DROP_REGRESSION
Model for DlgSettingsCoords and CmdSettingsCoords.
void setCoordScaleXTheta(CoordScale coordScale)
Set method for linear/log scale on x/theta.
void setCoordScaleYRadius(CoordScale coordScale)
Set method for linear/log scale on y/radius.
Model for DlgSettingsGridDisplay and CmdSettingsGridDisplay.
Storage of one imported image and the data attached to that image.
Limit the number of grid lines so a bad combination of start/step/stop value will not lead to extreme...
Model for DlgSettingsMainWindow.
void setMaximumGridLines(int maximumGridLines)
Set method for maximum number of grid lines.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Unit test of GridLineLimiter class.
TestGridLineLimiter(QObject *parent=0)
Single constructor.