|
| QVector< KisPainter * > | finalPainters () |
| |
| void | initializePainting () override |
| |
| | KisColorSmudgeStrategyWithOverlay (KisPainter *painter, KisImageSP image, bool smearAlpha, bool useDullingMode, bool useOverlayMode) |
| |
| QVector< QRect > | paintDab (const QRect &srcRect, const QRect &dstRect, const KoColor ¤tPaintColor, qreal opacity, qreal colorRateValue, qreal smudgeRateValue, qreal maxPossibleSmudgeRateValue, qreal lightnessStrengthValue, qreal smudgeRadiusValue) override |
| |
| virtual | ~KisColorSmudgeStrategyWithOverlay () |
| |
| void | blendBrush (const QVector< KisPainter * > dstPainters, KisColorSmudgeSourceSP srcSampleDevice, KisFixedPaintDeviceSP maskDab, bool preserveMaskDab, const QRect &srcRect, const QRect &dstRect, const KoColor ¤tPaintColor, qreal opacity, qreal smudgeRateValue, qreal maxPossibleSmudgeRateValue, qreal colorRateValue, qreal smudgeRadiusValue) |
| |
| void | blendInBackgroundWithDulling (KisFixedPaintDeviceSP dst, KisColorSmudgeSourceSP src, const QRect &dstRect, const KoColor &preparedDullingColor, const qreal smudgeRateOpacity) |
| |
| void | blendInBackgroundWithSmearing (KisFixedPaintDeviceSP dst, KisColorSmudgeSourceSP src, const QRect &srcRect, const QRect &dstRect, const qreal smudgeRateOpacity) |
| |
| virtual DabColoringStrategy & | coloringStrategy ()=0 |
| |
| virtual qreal | colorRateOpacity (qreal opacity, qreal smudgeRateValue, qreal colorRateValue, qreal maxPossibleSmudgeRateValue) |
| |
| virtual qreal | dullingRateOpacity (qreal opacity, qreal smudgeRateValue) |
| |
| virtual QString | finalCompositeOp (bool smearAlpha) const |
| |
| virtual qreal | finalPainterOpacity (qreal opacity, qreal smudgeRateValue) |
| |
| void | initializePaintingImpl (const KoColorSpace *dstColorSpace, bool smearAlpha, const QString &colorRateCompositeOpId) |
| |
| | KisColorSmudgeStrategyBase (bool useDullingMode) |
| |
| const KoColorSpace * | preciseColorSpace () const override |
| |
| virtual void | sampleDullingColor (const QRect &srcRect, qreal sampleRadiusValue, KisColorSmudgeSourceSP sourceDevice, KisFixedPaintDeviceSP tempFixedDevice, KisFixedPaintDeviceSP maskDab, KoColor *resultColor) |
| |
| virtual QString | smearCompositeOp (bool smearAlpha) const |
| |
| virtual qreal | smearRateOpacity (qreal opacity, qreal smudgeRateValue) |
| |
| | KisColorSmudgeStrategy () |
| |
| virtual void | updateMask (KisDabCache *dabCache, const KisPaintInformation &info, const KisDabShape &shape, const QPointF &cursorPoint, QRect *dstDabRect, qreal lightnessStrength)=0 |
| |
| virtual | ~KisColorSmudgeStrategy ()=default |
| |
| QVector< QRect > KisColorSmudgeStrategyWithOverlay::paintDab |
( |
const QRect & | srcRect, |
|
|
const QRect & | dstRect, |
|
|
const KoColor & | currentPaintColor, |
|
|
qreal | opacity, |
|
|
qreal | colorRateValue, |
|
|
qreal | smudgeRateValue, |
|
|
qreal | maxPossibleSmudgeRateValue, |
|
|
qreal | lightnessStrengthValue, |
|
|
qreal | smudgeRadiusValue ) |
|
overridevirtual |
If we have m_imageOverlayDevice set, then m_sourceWrapperOverlay points to it, not to the layer's overlay. Therefore, we should read from it as well.
Implements KisColorSmudgeStrategy.
Definition at line 72 of file KisColorSmudgeStrategyWithOverlay.cpp.
77{
78 Q_UNUSED(lightnessStrengthValue);
79
81
83 readRects << mirroredRects;
84 readRects << srcRect;
85
87
94 }
95
99 srcRect, dstRect,
100 currentPaintColor,
101 opacity,
102 smudgeRateValue,
103 maxPossibleSmudgeRateValue,
104 colorRateValue, smudgeRadiusValue);
105
107
108 return mirroredRects;
109}
void blendBrush(const QVector< KisPainter * > dstPainters, KisColorSmudgeSourceSP srcSampleDevice, KisFixedPaintDeviceSP maskDab, bool preserveMaskDab, const QRect &srcRect, const QRect &dstRect, const KoColor ¤tPaintColor, qreal opacity, qreal smudgeRateValue, qreal maxPossibleSmudgeRateValue, qreal colorRateValue, qreal smudgeRadiusValue)
QVector< KisPainter * > finalPainters()
bool m_shouldPreserveMaskDab
const QVector< QRect > calculateAllMirroredRects(const QRect &rc)
References KisColorSmudgeStrategyBase::blendBrush(), KisPainter::calculateAllMirroredRects(), finalPainters(), m_finalPainter, m_imageOverlayDevice, m_layerOverlayDevice, m_maskDab, m_shouldPreserveMaskDab, and m_sourceWrapperDevice.