Krita Source Code Documentation
Loading...
Searching...
No Matches
KisColorSmudgeStrategyWithOverlay.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_KISCOLORSMUDGESTRATEGYWITHOVERLAY_H
8#define KRITA_KISCOLORSMUDGESTRATEGYWITHOVERLAY_H
9
11#include "kis_painter.h"
12
13
15{
16public:
18 KisImageSP image,
19 bool smearAlpha,
20 bool useDullingMode,
21 bool useOverlayMode);
22
24
25 void initializePainting() override;
26
28
29 QVector<QRect> paintDab(const QRect &srcRect, const QRect &dstRect, const KoColor &currentPaintColor, qreal opacity,
30 qreal colorRateValue, qreal smudgeRateValue, qreal maxPossibleSmudgeRateValue,
31 qreal lightnessStrengthValue, qreal smudgeRadiusValue) override;
32
33protected:
36 QScopedPointer<KisOverlayPaintDeviceWrapper> m_layerOverlayDevice;
37
38private:
39 QScopedPointer<KisOverlayPaintDeviceWrapper> m_imageOverlayDevice;
42 QScopedPointer<KisPainter> m_overlayPainter;
43 bool m_smearAlpha = true;
45};
46
47
48#endif //KRITA_KISCOLORSMUDGESTRATEGYWITHOVERLAY_H
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
QScopedPointer< KisOverlayPaintDeviceWrapper > m_layerOverlayDevice
QScopedPointer< KisOverlayPaintDeviceWrapper > m_imageOverlayDevice
KisColorSmudgeStrategyWithOverlay(KisPainter *painter, KisImageSP image, bool smearAlpha, bool useDullingMode, bool useOverlayMode)