Process QImage into QPixmap, removing the grid lines.
58 <<
" transformationIsDefined=" << (transformation.
transformIsDefined() ?
"true" :
"false")
61 QImage image = imageBefore;
70 double yGraphMin = modelGridRemoval.
startY();
71 double yGraphMax = modelGridRemoval.
stopY();
72 for (
int i = 0; i < modelGridRemoval.
countX(); i++) {
73 double xGraph = modelGridRemoval.
startX() + i * modelGridRemoval.
stepX();
76 QPointF posScreenMin, posScreenMax;
84 removeLine (posScreenMin,
91 double xGraphMin = modelGridRemoval.
startX();
92 double xGraphMax = modelGridRemoval.
stopX();
93 for (
int j = 0; j < modelGridRemoval.
countY(); j++) {
94 double yGraph = modelGridRemoval.
startY() + j * modelGridRemoval.
stepY();
97 QPointF posScreenMin, posScreenMax;
105 removeLine (posScreenMin,
113 GridHealers::iterator itr;
114 for (itr = gridHealers.begin(); itr != gridHealers.end(); itr++) {
116 gridHealer->
healed (image);
121 return QPixmap::fromImage (image);
double stopY() const
Get method for y stop.
double stopX() const
Get method for x stop.
int countY() const
Get method for y count.
double startY() const
Get method for y start.
#define LOG4CPP_INFO_S(logger)
void healed(QImage &image)
Return healed image after grid removal.
double stepX() const
Get method for x step.
Class that 'heals' the curves after one grid line has been removed.
bool removeDefinedGridLines() const
Get method for removing defined grid lines.
log4cpp::Category * mainCat
int countX() const
Get method for x count.
double startX() const
Get method for x start.
QList< GridHealerAbstractBase * > GridHealers
Storage of GridHealer instances.
double stepY() const
Get method for y step.