Engauge Digitizer 2
Loading...
Searching...
No Matches
GridRemoval.h
1/******************************************************************************************************
2 * (C) 2014 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_REMOVAL_H
8#define GRID_REMOVAL_H
9
10#include <QPixmap>
11#include <QPointF>
12
14class GridHealer;
15class QImage;
16class Transformation;
17
20{
21 public:
24
26 QPixmap remove (const Transformation &transformation,
27 const DocumentModelGridRemoval &modelGridRemoval,
28 const QImage &imageBefore);
29
30private:
31
33 QPointF clipX (const QPointF &posUnprojected,
34 double xBoundary,
35 const QPointF &posOther) const;
36
38 QPointF clipY (const QPointF &posUnprojected,
39 double yBoundary,
40 const QPointF &posOther) const;
41
42 void removeLine (const QPointF &pos1,
43 const QPointF &pos2,
44 QImage &image,
45 GridHealer &gridHealer);
46};
47
48#endif // GRID_REMOVAL_H
Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user...
Class that 'heals' the curves after grid lines have been removed.
Definition GridHealer.h:38
Strategy class for grid removal.
Definition GridRemoval.h:20
QPixmap remove(const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const QImage &imageBefore)
Process QImage into QPixmap, removing the grid lines.
GridRemoval()
Single constructor.
Affine transformation between screen and graph coordinates, based on digitized axis points.