Krita Source Code Documentation
Loading...
Searching...
No Matches
KisColorSmudgeStrategy.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_KISCOLORSMUDGESTRATEGY_H
8#define KRITA_KISCOLORSMUDGESTRATEGY_H
9
11#include <kis_dab_cache.h>
12
14{
15public:
17
18 virtual ~KisColorSmudgeStrategy() = default;
19
20 virtual void initializePainting() = 0;
21
22 virtual void updateMask(KisDabCache *dabCache,
23 const KisPaintInformation& info,
24 const KisDabShape &shape,
25 const QPointF &cursorPoint,
26 QRect *dstDabRect,
27 qreal lightnessStrength) = 0;
28
29 virtual QVector<QRect> paintDab(const QRect &srcRect, const QRect &dstRect,
30 const KoColor &currentPaintColor,
31 qreal opacity,
32 qreal colorRateValue,
33 qreal smudgeRateValue,
34 qreal maxPossibleSmudgeRateValue,
35 qreal lightnessStrengthValue,
36 qreal smudgeRadiusValue) = 0;
37
38 virtual const KoColorSpace* preciseColorSpace() const = 0;
39
40protected:
42};
43
44
45#endif //KRITA_KISCOLORSMUDGESTRATEGY_H
KisOptimizedByteArray::MemoryAllocatorSP m_memoryAllocator
virtual QVector< QRect > paintDab(const QRect &srcRect, const QRect &dstRect, const KoColor &currentPaintColor, qreal opacity, qreal colorRateValue, qreal smudgeRateValue, qreal maxPossibleSmudgeRateValue, qreal lightnessStrengthValue, qreal smudgeRadiusValue)=0
virtual ~KisColorSmudgeStrategy()=default
virtual void initializePainting()=0
virtual const KoColorSpace * preciseColorSpace() const =0
virtual void updateMask(KisDabCache *dabCache, const KisPaintInformation &info, const KisDabShape &shape, const QPointF &cursorPoint, QRect *dstDabRect, qreal lightnessStrength)=0
The KisDabCache class provides caching for dabs into the brush paintop.