00001
00002
00003
00004
00005
00006
00007 #ifndef GRID_REMOVAL_H
00008 #define GRID_REMOVAL_H
00009
00010 #include <QPixmap>
00011 #include <QPointF>
00012
00013 class DocumentModelGridRemoval;
00014 class GridHealer;
00015 class QImage;
00016 class Transformation;
00017
00019 class GridRemoval
00020 {
00021 public:
00023 GridRemoval();
00024
00026 QPixmap remove (const Transformation &transformation,
00027 const DocumentModelGridRemoval &modelGridRemoval,
00028 const QImage &imageBefore);
00029
00030 private:
00031
00033 QPointF clipX (const QPointF &posUnprojected,
00034 double xBoundary,
00035 const QPointF &posOther) const;
00036
00038 QPointF clipY (const QPointF &posUnprojected,
00039 double yBoundary,
00040 const QPointF &posOther) const;
00041
00042 void removeLine (const QPointF &pos1,
00043 const QPointF &pos2,
00044 QImage &image,
00045 GridHealer &gridHealer);
00046 };
00047
00048 #endif // GRID_REMOVAL_H