Changeset View
Changeset View
Standalone View
Standalone View
libs/image/kis_painter.h
Show First 20 Lines • Show All 445 Lines • ▼ Show 20 Line(s) | 91 | public: | |||
---|---|---|---|---|---|
446 | void paintPolyline(const QVector <QPointF> &points, | 446 | void paintPolyline(const QVector <QPointF> &points, | ||
447 | int index = 0, int numPoints = -1); | 447 | int index = 0, int numPoints = -1); | ||
448 | 448 | | |||
449 | /** | 449 | /** | ||
450 | * Draw a line between pos1 and pos2 using the currently set brush and color. | 450 | * Draw a line between pos1 and pos2 using the currently set brush and color. | ||
451 | * If savedDist is less than zero, the brush is painted at pos1 before being | 451 | * If savedDist is less than zero, the brush is painted at pos1 before being | ||
452 | * painted along the line using the spacing setting. | 452 | * painted along the line using the spacing setting. | ||
453 | * @return the drag distance, that is the remains of the distance between p1 and p2 not covered | 453 | * @return the drag distance, that is the remains of the distance between p1 and p2 not covered | ||
454 | * because the currenlty set brush has a spacing greater than that distance. | 454 | * because the currently set brush has a spacing greater than that distance. | ||
455 | */ | 455 | */ | ||
456 | void paintLine(const KisPaintInformation &pi1, | 456 | void paintLine(const KisPaintInformation &pi1, | ||
457 | const KisPaintInformation &pi2, | 457 | const KisPaintInformation &pi2, | ||
458 | KisDistanceInformation *currentDistance); | 458 | KisDistanceInformation *currentDistance); | ||
459 | 459 | | |||
460 | /** | 460 | /** | ||
461 | * Draw a Bezier curve between pos1 and pos2 using control points 1 and 2. | 461 | * Draw a Bezier curve between pos1 and pos2 using control points 1 and 2. | ||
462 | * If savedDist is less than zero, the brush is painted at pos1 before being | 462 | * If savedDist is less than zero, the brush is painted at pos1 before being | ||
463 | * painted along the curve using the spacing setting. | 463 | * painted along the curve using the spacing setting. | ||
464 | * @return the drag distance, that is the remains of the distance between p1 and p2 not covered | 464 | * @return the drag distance, that is the remains of the distance between p1 and p2 not covered | ||
465 | * because the currenlty set brush has a spacing greater than that distance. | 465 | * because the currently set brush has a spacing greater than that distance. | ||
466 | */ | 466 | */ | ||
467 | void paintBezierCurve(const KisPaintInformation &pi1, | 467 | void paintBezierCurve(const KisPaintInformation &pi1, | ||
468 | const QPointF &control1, | 468 | const QPointF &control1, | ||
469 | const QPointF &control2, | 469 | const QPointF &control2, | ||
470 | const KisPaintInformation &pi2, | 470 | const KisPaintInformation &pi2, | ||
471 | KisDistanceInformation *currentDistance); | 471 | KisDistanceInformation *currentDistance); | ||
472 | /** | 472 | /** | ||
473 | * Fill the given vector points with the points needed to draw the Bezier curve between | 473 | * Fill the given vector points with the points needed to draw the Bezier curve between | ||
▲ Show 20 Lines • Show All 406 Lines • Show Last 20 Lines |