Engauge Digitizer  2
GridRemoval.h
1 #ifndef GRID_REMOVAL_H
2 #define GRID_REMOVAL_H
3 
4 #include <QPixmap>
5 #include <QPointF>
6 
8 class GridHealer;
9 class QImage;
10 class Transformation;
11 
14 {
15  public:
17  GridRemoval();
18 
20  QPixmap remove (const Transformation &transformation,
21  const DocumentModelGridRemoval &modelGridRemoval,
22  const QImage &imageBefore);
23 
24 private:
25 
27  QPointF clipX (const QPointF &posUnprojected,
28  double xBoundary,
29  const QPointF &posOther) const;
30 
32  QPointF clipY (const QPointF &posUnprojected,
33  double yBoundary,
34  const QPointF &posOther) const;
35 
36  void removeLine (const QPointF &pos1,
37  const QPointF &pos2,
38  QImage &image,
39  GridHealer &gridHealer);
40 };
41 
42 #endif // GRID_REMOVAL_H
Class that 'heals' the curves after grid lines have been removed.
Definition: GridHealer.h:31
Affine transformation between screen and graph coordinates, based on digitized axis points...
Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user...
GridRemoval()
Single constructor.
Definition: GridRemoval.cpp:13
Strategy class for grid removal.
Definition: GridRemoval.h:13