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 <QTextStream>
13
17{
18 public:
19
21 GridLog(bool isGnuplot);
22 virtual ~GridLog();
23
25 void showInputPixel (const QPoint &p,
26 double halfWidth);
27
29 void showOutputScanLinePixel (int x,
30 int y,
31 double radius);
32
34 void showOutputTrapezoid (const QPoint &p0,
35 const QPoint &p1,
36 const QPoint &p2,
37 const QPoint &p3);
38
39private:
40 GridLog();
41
42 bool inBounds (int x, int y) const;
43
44 bool m_isGnuplot;
45 QString m_log;
46 QTextStream m_logStr;
47};
48
49#endif // GRID_LOG_H
const int INNER_RADIUS_MIN
Class that does special logging for GridLog and GridRemoval classes.
Definition GridLog.h:17
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