Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_colorize_stroke_strategy.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_COLORIZE_STROKE_STRATEGY_H
8#define __KIS_COLORIZE_STROKE_STRATEGY_H
9
10#include <QScopedPointer>
11#include <QObject>
12
13#include "kis_types.h"
15
16class KoColor;
17
18namespace KisLazyFillTools {
19struct FilteringOptions;
20}
21
22
24{
25 Q_OBJECT
26
27public:
30 KisPaintDeviceSP filteredSource,
31 bool filteredSourceValid,
32 const QRect &boundingRect,
33 KisNodeSP progressNode,
34 bool prefilterOnly = false);
35 KisColorizeStrokeStrategy(const KisColorizeStrokeStrategy &rhs, int levelOfDetail);
37
40
41 void addKeyStroke(KisPaintDeviceSP dev, const KoColor &color);
42
43 void initStrokeCallback() override;
44 void cancelStrokeCallback() override;
45 void tryCancelCurrentStrokeJobAsync() override;
46 // TODO: suspend/resume
47
48 KisStrokeStrategy *createLodClone(int levelOfDetail) override;
49
50Q_SIGNALS:
51 void sigFinished(bool prefilterOnly);
53
54private:
55 struct Private;
56 const QScopedPointer<Private> m_d;
57};
58
59#endif /* __KIS_COLORIZE_STROKE_STRATEGY_H */
float value(const T *src, size_t ch)
void setFilteringOptions(const KisLazyFillTools::FilteringOptions &value)
const QScopedPointer< Private > m_d
void tryCancelCurrentStrokeJobAsync() override
tryCancelCurrentStrokeJobAsync is called by the strokes queue when the stroke is being cancelled....
KisColorizeStrokeStrategy(KisPaintDeviceSP src, KisPaintDeviceSP dst, KisPaintDeviceSP filteredSource, bool filteredSourceValid, const QRect &boundingRect, KisNodeSP progressNode, bool prefilterOnly=false)
KisStrokeStrategy * createLodClone(int levelOfDetail) override
KisLazyFillTools::FilteringOptions filteringOptions() const
void addKeyStroke(KisPaintDeviceSP dev, const KoColor &color)
void sigFinished(bool prefilterOnly)