Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

trying to pass down vector + some changes

Ken Lobeed88ccd799
diff --git a/libs/image/brushengine/kis_paintop.cc b/libs/image/brushengine/kis_paintop.cc
index cfa122d9d9..74145215f7 100644
--- a/libs/image/brushengine/kis_paintop.cc
+++ b/libs/image/brushengine/kis_paintop.cc
@@ -100,7 +100,8 @@ static void paintBezierCurve(KisPaintOp *paintOp,
const KisVector2D &control1,
const KisVector2D &control2,
const KisPaintInformation &pi2,
- KisDistanceInformation *currentDistance)
+ KisDistanceInformation *currentDistance,
+ const std::vector<QPoint>& smoothedPoints)
{
LineEquation line = LineEquation::Through(toKisVector2D(pi1.pos()), toKisVector2D(pi2.pos()));
qreal d1 = line.absDistance(control1);
@@ -110,7 +111,7 @@ static void paintBezierCurve(KisPaintOp *paintOp,
|| qIsNaN(d1) || qIsNaN(d2)) {
//qDebug() << "kis_paintop:paintBeziercurve -> paintline"; this one
//qDebug() << "kis_paintop bezier curve" << "pi1: " << pi1 << "pi2: " << pi2 << "currentDistance" << currentDistance;
- paintOp->paintLine(pi1, pi2, currentDistance);
+ paintOp->paintLine(pi1, pi2, currentDistance, smoothedPoints);
} else {
//qDebug() << "kis_paintop:paintBeziercurve -> else";
// Midpoint subdivision. See Foley & Van Dam Computer Graphics P.508
diff --git a/libs/image/brushengine/kis_paintop.h b/libs/image/brushengine/kis_paintop.h
index 76fa825520..74e31e3d62 100644
--- a/libs/image/brushengine/kis_paintop.h
+++ b/libs/image/brushengine/kis_paintop.h
@@ -84,7 +84,8 @@ public:
const QPointF &control1,
const QPointF &control2,
const KisPaintInformation &pi2,
- KisDistanceInformation *currentDistance);
+ KisDistanceInformation *currentDistance,
+ const std::vector<QPoint>& smoothedPoints);
/**
diff --git a/libs/image/kis_painter.cc b/libs/image/kis_painter.cc
index 347139e153..077448c3ea 100644
--- a/libs/image/kis_painter.cc
+++ b/libs/image/kis_painter.cc
@@ -1238,7 +1238,7 @@ void KisPainter::paintBezierCurve(const KisPaintInformation &pi1,
const QPointF &control1,
const QPointF &control2,
const KisPaintInformation &pi2,
- KisDistanceInformation *currentDistance)
+ KisDistanceInformation *currentDistance)
{
//qDebug() << "KisPainter::paintBezierCurve";
if (d->paintOp && d->paintOp->canPaint()) {
@@ -1246,6 +1246,19 @@ void KisPainter::paintBezierCurve(const KisPaintInformation &pi1,
}
}
+void KisPainter::paintBezierCurve(const KisPaintInformation &pi1,
+ const QPointF &control1,
+ const QPointF &control2,
+ const KisPaintInformation &pi2,
+ KisDistanceInformation *currentDistance,
+ const std::vector<QPoint>& smoothedPoints)
+{
+ //qDebug() << "KisPainter::paintBezierCurve";
+ if (d->paintOp && d->paintOp->canPaint()) {
+ d->paintOp->paintBezierCurve(pi1, control1, control2, pi2, currentDistance, smoothedPoints);
+ }
+}
+
void KisPainter::paintRect(const QRectF &rect)
{
QRectF normalizedRect = rect.normalized();
diff --git a/libs/image/kis_painter.h b/libs/image/kis_painter.h
index 77759f70e3..86e9d056f5 100644
--- a/libs/image/kis_painter.h
+++ b/libs/image/kis_painter.h
@@ -464,10 +464,19 @@ public:
* because the currently set brush has a spacing greater than that distance.
*/
void paintBezierCurve(const KisPaintInformation &pi1,
- const QPointF &control1,
- const QPointF &control2,
- const KisPaintInformation &pi2,
- KisDistanceInformation *currentDistance);
+ const QPointF &control1,
+ const QPointF &control2,
+ const KisPaintInformation &pi2,
+ KisDistanceInformation *currentDistance) ;
+
+ void paintBezierCurve(const KisPaintInformation &pi1,
+ const QPointF &control1,
+ const QPointF &control2,
+ const KisPaintInformation &pi2,
+ KisDistanceInformation *currentDistance,
+ const std::vector<QPoint>& smoothedPoints) ;
+
+
/**
* Fill the given vector points with the points needed to draw the Bezier curve between
* @p pos1 and @p pos2 using control points @p control1 and @p control2, excluding the final pos2.
diff --git a/libs/ui/tool/kis_tool_freehand.cc b/libs/ui/tool/kis_tool_freehand.cc
index bfa2a1eb19..19428c2375 100644
--- a/libs/ui/tool/kis_tool_freehand.cc
+++ b/libs/ui/tool/kis_tool_freehand.cc
@@ -12,7 +12,7 @@
#include "kis_tool_freehand.h"
//#include "../../../plugins/paintops/defaultpaintops/brush/kis_brushop.h"
//#include <../../../plugins/paintops/defaultpaintops/brush/kis_brushop.>
-#include "plugins/paintops/defaultpaintops/brush/kis_brushop.h"
+//#include "plugins/paintops/defaultpaintops/brush/kis_brushop.h"
#include <QPainter>
#include <QRect>
#include <QThreadPool>
@@ -184,41 +184,41 @@ void KisToolFreehand::deactivate()
// image().data());
// }
-void KisToolFreehand::initStroke(KoPointerEvent *event)
-{
- // qDebug() << "KisToolFreehand:initStroke";
- // qDebug() << "Event Position (global):" << event->globalPos();
- // qDebug() << "Event Position (widget):" << event->pos();
- // qDebug() << "Event Document Coordinates:" << event->point;
- // qDebug() << "Event Pressure:" << event->pressure();
- // qDebug() << "Event Rotation:" << event->rotation();
- // qDebug() << "Event Tangential Pressure:" << event->tangentialPressure();
- // qDebug() << "Event xTilt:" << event->xTilt();
- // qDebug() << "Event yTilt:" << event->yTilt();
- // qDebug() << "Event z Position:" << event->z();
- // qDebug() << "Event Time:" << event->time();
- // qDebug() << "Event isTabletEvent:" << event->isTabletEvent();
-
- m_helper->initPaint(event,
- convertToPixelCoord(event),
- image(),
- currentNode(),
- image().data());
-}
-
// void KisToolFreehand::initStroke(KoPointerEvent *event)
// {
-// qDebug() << "KisToolFreehand:initStroke";
+// // qDebug() << "KisToolFreehand:initStroke";
+// // qDebug() << "Event Position (global):" << event->globalPos();
+// // qDebug() << "Event Position (widget):" << event->pos();
+// // qDebug() << "Event Document Coordinates:" << event->point;
+// // qDebug() << "Event Pressure:" << event->pressure();
+// // qDebug() << "Event Rotation:" << event->rotation();
+// // qDebug() << "Event Tangential Pressure:" << event->tangentialPressure();
+// // qDebug() << "Event xTilt:" << event->xTilt();
+// // qDebug() << "Event yTilt:" << event->yTilt();
+// // qDebug() << "Event z Position:" << event->z();
+// // qDebug() << "Event Time:" << event->time();
+// // qDebug() << "Event isTabletEvent:" << event->isTabletEvent();
+
// m_helper->initPaint(event,
// convertToPixelCoord(event),
// image(),
// currentNode(),
// image().data());
-
-// strokeCoordinates.clear();
-// strokeCoordinates.push_back(convertToPixelCoord(event));
// }
+void KisToolFreehand::initStroke(KoPointerEvent *event)
+{
+ qDebug() << "KisToolFreehand:initStroke";
+ m_helper->initPaint(event,
+ convertToPixelCoord(event),
+ image(),
+ currentNode(),
+ image().data());
+
+ strokeCoordinates.clear();
+ strokeCoordinates.push_back(convertToPixelCoord(event));
+}
+
//original
// void KisToolFreehand::doStroke(KoPointerEvent *event)
// {
@@ -228,7 +228,7 @@ void KisToolFreehand::initStroke(KoPointerEvent *event)
void KisToolFreehand::doStroke(KoPointerEvent *event)
{
// qDebug() << "KisToolFreehand:doStroke";
- m_helper->paintEvent(event);
+ m_helper->paintEvent(event, m_smoothedPoints);
strokeCoordinates.push_back(convertToPixelCoord(event)); // Track the coordinates
}
@@ -259,16 +259,21 @@ void KisToolFreehand::endStroke()
std::vector<QPoint> smoothedPoints = removeLShapes(uniquePoints);
- for (const QPoint& point : smoothedPoints) {
- qDebug() << "Smoothed Stroke Point (Integer):" << point.x() << point.y();
- }
+ // for (const QPoint& point : smoothedPoints) {
+ // qDebug() << "Smoothed Stroke Point (Integer):" << point.x() << point.y();
+ // }
//KisBrushOp::smoothedPoints = smoothedPoints;
- KisBrushOp* brushOp = dynamic_cast<KisBrushOp*>(currentPaintOp());
- if (brushOp) {
- brushOp->setSmoothedPoints(smoothedPoints);
- }
+ // KisBrushOp* brushOp = dynamic_cast<KisBrushOp*>(currentPaintOp());
+ // if (brushOp) {
+ // brushOp->setSmoothedPoints(smoothedPoints);
+ // }
+ m_smoothedPoints = smoothedPoints;
+ for (const QPoint& point : m_smoothedPoints) {
+ qDebug() << "Smoothed Stroke Point (Integer):" << point.x() << point.y();
+ }
+
strokeCoordinates.clear();
}
diff --git a/libs/ui/tool/kis_tool_freehand.h b/libs/ui/tool/kis_tool_freehand.h
index 2cef2b2c94..60fb48d2df 100644
--- a/libs/ui/tool/kis_tool_freehand.h
+++ b/libs/ui/tool/kis_tool_freehand.h
@@ -36,7 +36,8 @@ public:
int flags() const override;
void mouseMoveEvent(KoPointerEvent *event) override;
//const std::vector<QPoint>& getSmoothedPoints() const { return smoothedPoints; }
- std::vector<QPoint> smoothedPoints;
+ std::vector<QPoint> m_smoothedPoints;
+
public Q_SLOTS:
void activate(const QSet<KoShape*> &shapes) override;
diff --git a/libs/ui/tool/kis_tool_freehand_helper.cpp b/libs/ui/tool/kis_tool_freehand_helper.cpp
index ee28b9815e..a7c7f48f11 100644
--- a/libs/ui/tool/kis_tool_freehand_helper.cpp
+++ b/libs/ui/tool/kis_tool_freehand_helper.cpp
@@ -448,7 +448,19 @@ void KisToolFreehandHelper::paintEvent(KoPointerEvent *event)
paint(info);
}
-void KisToolFreehandHelper::paint(KisPaintInformation &info)
+void KisToolFreehandHelper::paintEvent(KoPointerEvent *event, const std::vector<QPoint>& smoothedPoints)
+{
+ KisPaintInformation info =
+ m_d->infoBuilder->continueStroke(event,
+ elapsedStrokeTime());
+ KisUpdateTimeMonitor::instance()->reportMouseMove(info.pos());
+
+ paint(info, smoothedPoints);
+}
+
+
+
+void KisToolFreehandHelper::paint(KisPaintInformation &info, const std::vector<QPoint>& smoothedPoints)
{
//qDebug()<< "kis_tool_freehand_helper::paint";
/**
@@ -586,7 +598,7 @@ void KisToolFreehandHelper::paint(KisPaintInformation &info)
//qDebug() << m_d->olderPaintInformation << m_d->previousPaintInformation << m_d->previousTangent << newTangent;
paintBezierSegment(m_d->olderPaintInformation, m_d->previousPaintInformation,
- m_d->previousTangent, newTangent);
+ m_d->previousTangent, newTangent, smoothedPoints);
}
m_d->previousTangent = newTangent;
diff --git a/libs/ui/tool/kis_tool_freehand_helper.h b/libs/ui/tool/kis_tool_freehand_helper.h
index 0d7391bd53..55ac52d027 100644
--- a/libs/ui/tool/kis_tool_freehand_helper.h
+++ b/libs/ui/tool/kis_tool_freehand_helper.h
@@ -64,7 +64,7 @@ public:
KisStrokesFacade *strokesFacade,
KisNodeSP overrideNode = 0,
KisDefaultBoundsBaseSP bounds = 0);
- void paintEvent(KoPointerEvent *event);
+ void paintEvent(KoPointerEvent *event , const std::vector<QPoint>& smoothedPoints);
void endPaint();
KisOptimizedBrushOutline paintOpOutline(const QPointF &savedCursorPos,
@@ -128,9 +128,10 @@ protected:
const KisPaintInformation &pi2);
private:
- void paint(KisPaintInformation &info);
+ void paint(KisPaintInformation &info , const std::vector<QPoint>& smoothedPoints);
void paintBezierSegment(KisPaintInformation pi1, KisPaintInformation pi2,
- QPointF tangent1, QPointF tangent2);
+ QPointF tangent1, QPointF tangent2,
+ const std::vector<QPoint>& smoothedPoints);
void stabilizerStart(KisPaintInformation firstPaintInfo);
void stabilizerEnd();
diff --git a/plugins/paintops/defaultpaintops/brush/kis_brushop.cpp b/plugins/paintops/defaultpaintops/brush/kis_brushop.cpp
index 182c1772b7..5258139414 100644
--- a/plugins/paintops/defaultpaintops/brush/kis_brushop.cpp
+++ b/plugins/paintops/defaultpaintops/brush/kis_brushop.cpp
@@ -385,37 +385,9 @@ KisTimingInformation KisBrushOp::updateTimingImpl(const KisPaintInformation &inf
return KisPaintOpPluginUtils::effectiveTiming(&m_airbrushData, &m_rateOption, info);
}
//original kisbrushop:paintline
-void KisBrushOp::paintLine(const KisPaintInformation& pi1, const KisPaintInformation& pi2, KisDistanceInformation *currentDistance)
-{
- //qDebug() << "KisBrushOp::paintLine";
- if (m_sharpnessOption.isChecked() && m_brush && (m_brush->width() == 1) && (m_brush->height() == 1)) {
-
- if (!m_lineCacheDevice) {
- m_lineCacheDevice = source()->createCompositionSourceDevice();
- }
- else {
- m_lineCacheDevice->clear();
- }
-
- KisPainter p(m_lineCacheDevice);
- //qDebug()<< "p(m_lineCacheDevice): " << m_lineCacheDevice;
- p.setPaintColor(painter()->paintColor());
- //qDebug() << "pi1.posx: "<< pi1.pos().x()<< "pi1.posy: "<< pi1.pos().y();
- p.drawDDALine(pi1.pos(), pi2.pos());
-
- QRect rc = m_lineCacheDevice->extent();
- painter()->bitBlt(rc.x(), rc.y(), m_lineCacheDevice, rc.x(), rc.y(), rc.width(), rc.height());
- //fixes Bug 338011
- painter()->renderMirrorMask(rc, m_lineCacheDevice);
- }
- else {
- KisPaintOp::paintLine(pi1, pi2, currentDistance);
- }
-}
-// This is a vector approach where we populate/filter out corner pixels in kis_tool_freehand and than call draw line on that (don't know how to get the vector here)
-// std::vector<QPoint> KisBrushOp::smoothedPoints;
-// void KisBrushOp::paintLine(const KisPaintInformation& pi1, const KisPaintInformation& pi2, KisDistanceInformation *currentDistance) {
-
+// void KisBrushOp::paintLine(const KisPaintInformation& pi1, const KisPaintInformation& pi2, KisDistanceInformation *currentDistance)
+// {
+// //qDebug() << "pi1 " << pi1.pos().toPoint() << "pi2 " << pi2.pos().toPoint();
// if (m_sharpnessOption.isChecked() && m_brush && (m_brush->width() == 1) && (m_brush->height() == 1)) {
// if (!m_lineCacheDevice) {
@@ -426,28 +398,55 @@ void KisBrushOp::paintLine(const KisPaintInformation& pi1, const KisPaintInforma
// }
// KisPainter p(m_lineCacheDevice);
+// //qDebug()<< "p(m_lineCacheDevice): " << m_lineCacheDevice;
// p.setPaintColor(painter()->paintColor());
-
-// // Use smoothedPoints to draw lines
-// for (size_t i = 0; i < smoothedPoints.size() - 1; ++i) {
-// qDebug() << "smoothedPoints[i], smoothedPoints[i + 1]: " << smoothedPoints[i], smoothedPoints[i + 1];
-// p.drawDDALine(smoothedPoints[i], smoothedPoints[i + 1]);
-// }
+// //qDebug() << "pi1.posx: "<< pi1.pos().x()<< "pi1.posy: "<< pi1.pos().y();
+// p.drawDDALine(pi1.pos(), pi2.pos());
// QRect rc = m_lineCacheDevice->extent();
// painter()->bitBlt(rc.x(), rc.y(), m_lineCacheDevice, rc.x(), rc.y(), rc.width(), rc.height());
-
-// // Fixes Bug 338011
-// painter()->renderMirrorMask(rc, m_lineCacheDevice);
+// //fixes Bug 338011
+// painter()->renderMirrorMask(rc, m_lineCacheDevice);
// }
// else {
// KisPaintOp::paintLine(pi1, pi2, currentDistance);
// }
// }
+// This is a vector approach where we populate/filter out corner pixels in kis_tool_freehand and than call draw line on that (don't know how to get the vector here)
+void KisBrushOp::paintLine(const KisPaintInformation& pi1, const KisPaintInformation& pi2, KisDistanceInformation *currentDistance, const std::vector<QPoint>& smoothedPoints) {
-// void KisBrushOp::setSmoothedPoints(const std::vector<QPoint>& points) {
-// smoothedPoints = points;
-// }
+ if (m_sharpnessOption.isChecked() && m_brush && (m_brush->width() == 1) && (m_brush->height() == 1)) {
+
+ if (!m_lineCacheDevice) {
+ m_lineCacheDevice = source()->createCompositionSourceDevice();
+ }
+ else {
+ m_lineCacheDevice->clear();
+ }
+
+ KisPainter p(m_lineCacheDevice);
+ p.setPaintColor(painter()->paintColor());
+
+ // Use smoothedPoints to draw lines
+ for (size_t i = 0; i < smoothedPoints.size() - 1; ++i) {
+ qDebug() << "smoothedPoints[i], smoothedPoints[i + 1]: " << smoothedPoints[i], smoothedPoints[i + 1];
+ p.drawDDALine(smoothedPoints[i], smoothedPoints[i + 1]);
+ }
+
+ QRect rc = m_lineCacheDevice->extent();
+ painter()->bitBlt(rc.x(), rc.y(), m_lineCacheDevice, rc.x(), rc.y(), rc.width(), rc.height());
+
+ // Fixes Bug 338011
+ painter()->renderMirrorMask(rc, m_lineCacheDevice);
+ }
+ else {
+ KisPaintOp::paintLine(pi1, pi2, currentDistance);
+ }
+}
+
+void KisBrushOp::setSmoothedPoints(const std::vector<QPoint>& points) {
+ smoothedPoints = points;
+}
// Trying the 3 pixel approach where we track current/lastdrawn/waiting pixel see blog 1 for more info
@@ -455,7 +454,7 @@ void KisBrushOp::paintLine(const KisPaintInformation& pi1, const KisPaintInforma
// void KisBrushOp::paintLine(const KisPaintInformation& pi1, const KisPaintInformation& pi2, KisDistanceInformation *currentDistance) {
// static bool lastDrawnPixelInitialized = false;
// static QPoint lastDrawnPixel;
-
+// qDebug() << "pi1 " << pi1.pos().toPoint() << "pi2 " << pi2.pos().toPoint();
// if (m_sharpnessOption.isChecked() && m_brush && (m_brush->width() == 1) && (m_brush->height() == 1)) {
// if (!m_lineCacheDevice) {
@@ -468,16 +467,15 @@ void KisBrushOp::paintLine(const KisPaintInformation& pi1, const KisPaintInforma
// p.setPaintColor(painter()->paintColor());
// QPoint currentPixel = pi2.pos().toPoint();
- //this is for the case where last drawn isn't initialized so we draw at least one pixel
+// //this is for the case where last drawn isn't initialized so we draw at least one pixel
// if (!lastDrawnPixelInitialized) {
// // First call, initialize lastDrawnPixel and set the flag
-// lastDrawnPixel = pi1.pos().toPoint();
-// lastDrawnPixelInitialized = true;
// p.drawDDALine(pi1.pos(), pi2.pos());
-
+// lastDrawnPixel = pi2.pos().toPoint();
+// lastDrawnPixelInitialized = true;
// // update lastDrawnPixel to the endpoint of the first drawDDALine call (might not work)
-// lastDrawnPixel = currentPixel;
+// // lastDrawnPixel = currentPixel;
// } else {
// //
@@ -501,7 +499,6 @@ void KisBrushOp::paintLine(const KisPaintInformation& pi1, const KisPaintInforma
// for (int i = 0; i <= steps; ++i) {
// QPoint tempPixel = QPoint(qRound(x), qRound(y));
-
// // check if tempPixel is in the same direction as lastDrawnPixel
// if ((abs(tempPixel.x() - lastDrawnPixel.x()) <= 1 && tempPixel.y() == lastDrawnPixel.y()) ||
// (abs(tempPixel.y() - lastDrawnPixel.y()) <= 1 && tempPixel.x() == lastDrawnPixel.x())) {
@@ -528,3 +525,56 @@ void KisBrushOp::paintLine(const KisPaintInformation& pi1, const KisPaintInforma
// lastDrawnPixelInitialized = false;
// }
// }
+
+// void KisBrushOp::paintLine(const KisPaintInformation& pi1, const KisPaintInformation& pi2, KisDistanceInformation *currentDistance) {
+// static bool lastDrawnPixelInitialized = false;
+// static QPoint lastDrawnPixel;
+// static QPoint waitingPixel;
+
+// qDebug() << "pi1 " << pi1.pos().toPoint() << "pi2 " << pi2.pos().toPoint();
+
+// if (m_sharpnessOption.isChecked() && m_brush && (m_brush->width() == 1) && (m_brush->height() == 1)) {
+
+// if (!m_lineCacheDevice) {
+// m_lineCacheDevice = source()->createCompositionSourceDevice();
+// } else {
+// m_lineCacheDevice->clear();
+// }
+
+// KisPainter p(m_lineCacheDevice);
+// p.setPaintColor(painter()->paintColor());
+
+// QPoint currentPixel = pi2.pos().toPoint();
+
+// if (!lastDrawnPixelInitialized) {
+// // First call, initialize lastDrawnPixel and set the flag
+// p.drawDDALine(pi1.pos(), pi2.pos());
+// lastDrawnPixel =
+// waitingPixel = lastDrawnPixel;
+// lastDrawnPixelInitialized = true;
+// } else {
+// qDebug() << "waitingPixel: " << waitingPixel << "currentPixel: " << currentPixel << "lastDrawnPixel: " << lastDrawnPixel;
+
+// // Determine if the currentPixel is in the same axis direction as lastDrawnPixel
+// if ((abs(currentPixel.x() - lastDrawnPixel.x()) <= 1 && currentPixel.y() == lastDrawnPixel.y()) ||
+// (abs(currentPixel.y() - lastDrawnPixel.y()) <= 1 && currentPixel.x() == lastDrawnPixel.x())) {
+
+// // Current pixel is in the same direction, continue drawing
+// waitingPixel = currentPixel;
+// p.drawDDALine(QPointF(lastDrawnPixel), QPointF(waitingPixel));
+// lastDrawnPixel = waitingPixel;
+// } else {
+// // Current pixel deviates from the axis direction, skip drawing
+// lastDrawnPixel = currentPixel;
+// }
+// }
+
+// QRect rc = m_lineCacheDevice->extent();
+// painter()->bitBlt(rc.x(), rc.y(), m_lineCacheDevice, rc.x(), rc.y(), rc.width(), rc.height());
+// painter()->renderMirrorMask(rc, m_lineCacheDevice);
+// } else {
+// KisPaintOp::paintLine(pi1, pi2, currentDistance);
+// // Reset the flag when not in pixel-perfect mode
+// lastDrawnPixelInitialized = false;
+// }
+// }
\ No newline at end of file
diff --git a/plugins/paintops/defaultpaintops/brush/kis_brushop.h b/plugins/paintops/defaultpaintops/brush/kis_brushop.h
index 6d8cfa1a6e..9e87676728 100644
--- a/plugins/paintops/defaultpaintops/brush/kis_brushop.h
+++ b/plugins/paintops/defaultpaintops/brush/kis_brushop.h
@@ -41,7 +41,7 @@ public:
KisBrushOp(const KisPaintOpSettingsSP settings, KisPainter * painter, KisNodeSP node, KisImageSP image);
~KisBrushOp() override;
- void paintLine(const KisPaintInformation &pi1, const KisPaintInformation &pi2, KisDistanceInformation *currentDistance) override;
+ void paintLine(const KisPaintInformation &pi1, const KisPaintInformation &pi2, KisDistanceInformation *currentDistance, const std::vector<QPoint>& smoothedPoints) override;
std::pair<int, bool> doAsynchronousUpdate(QVector<KisRunnableStrokeJobData *> &jobs) override;