Engauge Digitizer 2
Loading...
Searching...
No Matches
GridLog.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2018 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef GRID_LOG_H
8#define GRID_LOG_H
9
11#include <QString>
12#include <QPoint>
13#include <QTextStream>
14
18{
19 public:
20
22 GridLog(bool isGnuplot);
23 virtual ~GridLog();
24
26 void showInputPixel (const QPoint &p,
27 double halfWidth);
28
30 void showOutputScanLinePixel (int x,
31 int y,
32 double radius);
33
35 void showOutputTrapezoid (const QPoint &p0,
36 const QPoint &p1,
37 const QPoint &p2,
38 const QPoint &p3);
39
40private:
41 GridLog();
42
43 bool inBounds (int x, int y) const;
44
45 bool m_isGnuplot;
46 QString m_log;
47 QTextStream m_logStr;
48};
49
50#endif // GRID_LOG_H
GridLog(bool isGnuplot)
Single constructor.
Definition GridLog.cpp:26
void showOutputScanLinePixel(int x, int y, double radius)
Show scan line pixel that is the output of GridHealer.
Definition GridLog.cpp:88
void showOutputTrapezoid(const QPoint &p0, const QPoint &p1, const QPoint &p2, const QPoint &p3)
Show trapezoids that are intermediate results in GridHealer.
Definition GridLog.cpp:104
virtual ~GridLog()
Definition GridLog.cpp:42
void showInputPixel(const QPoint &p, double halfWidth)
Show pixels that are inputs to GridHealer.
Definition GridLog.cpp:68