|
Krita Source Code Documentation
|
#include <KisMaskedFreehandStrokePainter.h>
Public Member Functions | |
| std::pair< int, bool > | doAsynchronousUpdate (QVector< KisRunnableStrokeJobData * > &jobs) |
| void | drawAndFillPainterPath (const QPainterPath &path, const QPen &pen, const KoColor &customColor) |
| void | drawPainterPath (const QPainterPath &path, const QPen &pen) |
| bool | hasDirtyRegion () const |
| bool | hasMasking () const |
| KisMaskedFreehandStrokePainter (KisFreehandStrokeInfo *strokeData, KisFreehandStrokeInfo *maskData) | |
| void | paintAt (const KisPaintInformation &pi) |
| void | paintBezierCurve (const KisPaintInformation &pi1, const QPointF &control1, const QPointF &control2, const KisPaintInformation &pi2) |
| void | paintEllipse (const QRectF &rect) |
| void | paintLine (const KisPaintInformation &pi1, const KisPaintInformation &pi2) |
| void | paintPainterPath (const QPainterPath &path) |
| void | paintPolygon (const QVector< QPointF > &points) |
| void | paintPolyline (const QVector< QPointF > &points, int index=0, int numPoints=-1) |
| void | paintRect (const QRectF &rect) |
| KisPaintOpPresetSP | preset () const |
| QVector< QRect > | takeDirtyRegion () |
Private Member Functions | |
| template<class Func > | |
| void | applyToAllPainters (Func func) |
Private Attributes | |
| KisFreehandStrokeInfo * | m_mask = 0 |
| KisFreehandStrokeInfo * | m_stroke = 0 |
Definition at line 30 of file KisMaskedFreehandStrokePainter.h.
| KisMaskedFreehandStrokePainter::KisMaskedFreehandStrokePainter | ( | KisFreehandStrokeInfo * | strokeData, |
| KisFreehandStrokeInfo * | maskData ) |
Definition at line 16 of file KisMaskedFreehandStrokePainter.cpp.
|
inlineprivate |
Definition at line 28 of file KisMaskedFreehandStrokePainter.cpp.
References KIS_SAFE_ASSERT_RECOVER_NOOP, m_mask, and m_stroke.
| std::pair< int, bool > KisMaskedFreehandStrokePainter::doAsynchronousUpdate | ( | QVector< KisRunnableStrokeJobData * > & | jobs | ) |
Definition at line 110 of file KisMaskedFreehandStrokePainter.cpp.
References KisPaintOp::doAsynchronousUpdate(), KIS_SAFE_ASSERT_RECOVER_NOOP, m_mask, m_stroke, KisFreehandStrokeInfo::painter, and KisPainter::paintOp.
| void KisMaskedFreehandStrokePainter::drawAndFillPainterPath | ( | const QPainterPath & | path, |
| const QPen & | pen, | ||
| const KoColor & | customColor ) |
Definition at line 101 of file KisMaskedFreehandStrokePainter.cpp.
References applyToAllPainters(), KisPainter::drawPainterPath(), KisPainter::fillPainterPath(), KisFreehandStrokeInfo::painter, and KisPainter::setBackgroundColor().
| void KisMaskedFreehandStrokePainter::drawPainterPath | ( | const QPainterPath & | path, |
| const QPen & | pen ) |
Definition at line 94 of file KisMaskedFreehandStrokePainter.cpp.
References applyToAllPainters(), KisPainter::drawPainterPath(), and KisFreehandStrokeInfo::painter.
| bool KisMaskedFreehandStrokePainter::hasDirtyRegion | ( | ) | const |
Definition at line 131 of file KisMaskedFreehandStrokePainter.cpp.
References KisPainter::hasDirtyRegion(), KIS_SAFE_ASSERT_RECOVER_NOOP, m_mask, m_stroke, and KisFreehandStrokeInfo::painter.
| bool KisMaskedFreehandStrokePainter::hasMasking | ( | ) | const |
Definition at line 157 of file KisMaskedFreehandStrokePainter.cpp.
References m_mask.
| void KisMaskedFreehandStrokePainter::paintAt | ( | const KisPaintInformation & | pi | ) |
Definition at line 38 of file KisMaskedFreehandStrokePainter.cpp.
References applyToAllPainters(), KisFreehandStrokeInfo::dragDistance, KisPainter::paintAt(), and KisFreehandStrokeInfo::painter.
| void KisMaskedFreehandStrokePainter::paintBezierCurve | ( | const KisPaintInformation & | pi1, |
| const QPointF & | control1, | ||
| const QPointF & | control2, | ||
| const KisPaintInformation & | pi2 ) |
Definition at line 52 of file KisMaskedFreehandStrokePainter.cpp.
References applyToAllPainters(), KisFreehandStrokeInfo::dragDistance, KisPainter::paintBezierCurve(), and KisFreehandStrokeInfo::painter.
| void KisMaskedFreehandStrokePainter::paintEllipse | ( | const QRectF & | rect | ) |
Definition at line 80 of file KisMaskedFreehandStrokePainter.cpp.
References applyToAllPainters(), KisPainter::paintEllipse(), and KisFreehandStrokeInfo::painter.
| void KisMaskedFreehandStrokePainter::paintLine | ( | const KisPaintInformation & | pi1, |
| const KisPaintInformation & | pi2 ) |
Definition at line 45 of file KisMaskedFreehandStrokePainter.cpp.
References applyToAllPainters(), KisFreehandStrokeInfo::dragDistance, KisFreehandStrokeInfo::painter, and KisPainter::paintLine().
| void KisMaskedFreehandStrokePainter::paintPainterPath | ( | const QPainterPath & | path | ) |
Definition at line 87 of file KisMaskedFreehandStrokePainter.cpp.
References applyToAllPainters(), KisFreehandStrokeInfo::painter, and KisPainter::paintPainterPath().
Definition at line 66 of file KisMaskedFreehandStrokePainter.cpp.
References applyToAllPainters(), KisFreehandStrokeInfo::painter, and KisPainter::paintPolygon().
| void KisMaskedFreehandStrokePainter::paintPolyline | ( | const QVector< QPointF > & | points, |
| int | index = 0, | ||
| int | numPoints = -1 ) |
Definition at line 59 of file KisMaskedFreehandStrokePainter.cpp.
References applyToAllPainters(), KisFreehandStrokeInfo::painter, and KisPainter::paintPolyline().
| void KisMaskedFreehandStrokePainter::paintRect | ( | const QRectF & | rect | ) |
Definition at line 73 of file KisMaskedFreehandStrokePainter.cpp.
References applyToAllPainters(), KisFreehandStrokeInfo::painter, and KisPainter::paintRect().
| KisPaintOpPresetSP KisMaskedFreehandStrokePainter::preset | ( | ) | const |
Definition at line 22 of file KisMaskedFreehandStrokePainter.cpp.
References m_stroke, KisFreehandStrokeInfo::painter, and KisPainter::preset().
| QVector< QRect > KisMaskedFreehandStrokePainter::takeDirtyRegion | ( | ) |
Definition at line 144 of file KisMaskedFreehandStrokePainter.cpp.
References KIS_SAFE_ASSERT_RECOVER_NOOP, m_mask, m_stroke, KisFreehandStrokeInfo::painter, and KisPainter::takeDirtyRegion().
|
private |
Definition at line 74 of file KisMaskedFreehandStrokePainter.h.
|
private |
Definition at line 73 of file KisMaskedFreehandStrokePainter.h.