Krita Source Code Documentation
Loading...
Searching...
No Matches
KisColorSmudgeStrategyLightness.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KRITA_KISCOLORSMUDGESTRATEGYLIGHTNESS_H
8#define KRITA_KISCOLORSMUDGESTRATEGYLIGHTNESS_H
9
11#include "kis_painter.h"
13
15{
16public:
17
19 bool smearAlpha,
20 bool useDullingMode,
21 KisPaintThicknessOptionData::ThicknessMode thicknessMode);
22
23 void initializePainting() override;
24
26
27 void updateMask(KisDabCache *dabCache,
28 const KisPaintInformation& info,
29 const KisDabShape &shape,
30 const QPointF &cursorPoint,
31 QRect *dstDabRect, qreal lightnessStrength) override;
32
33 QVector<QRect> paintDab(const QRect &srcRect, const QRect &dstRect, const KoColor &currentPaintColor, qreal opacity,
34 qreal colorRateValue, qreal smudgeRateValue, qreal maxPossibleSmudgeRateValue,
35 qreal lightnessStrengthValue, qreal smudgeRadiusValue) override;
36private:
48 bool m_smearAlpha {true};
50 KisPaintThicknessOptionData::ThicknessMode m_thicknessMode;
51};
52
53
54#endif //KRITA_KISCOLORSMUDGESTRATEGYLIGHTNESS_H
DabColoringStrategy & coloringStrategy() override
void updateMask(KisDabCache *dabCache, const KisPaintInformation &info, const KisDabShape &shape, const QPointF &cursorPoint, QRect *dstDabRect, qreal lightnessStrength) override
QVector< QRect > paintDab(const QRect &srcRect, const QRect &dstRect, const KoColor &currentPaintColor, qreal opacity, qreal colorRateValue, qreal smudgeRateValue, qreal maxPossibleSmudgeRateValue, qreal lightnessStrengthValue, qreal smudgeRadiusValue) override
KisColorSmudgeStrategyLightness(KisPainter *painter, bool smearAlpha, bool useDullingMode, KisPaintThicknessOptionData::ThicknessMode thicknessMode)
KisOverlayPaintDeviceWrapper * m_layerOverlayDevice
KisPaintThicknessOptionData::ThicknessMode m_thicknessMode
The KisDabCache class provides caching for dabs into the brush paintop.