Krita Source Code Documentation
Loading...
Searching...
No Matches
KisWatershedWorker.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISWATERSHEDWORKER_H
8#define KISWATERSHEDWORKER_H
9
10#include <QScopedPointer>
11
12#include "kis_types.h"
13#include "kritaimage_export.h"
14
15class KoColor;
16
17class KRITAIMAGE_EXPORT KisWatershedWorker
18{
19public:
34 const QRect &boundingRect,
35 KoUpdater *progress = 0);
37
47 void addKeyStroke(KisPaintDeviceSP dev, const KoColor &color);
48
56 void run(qreal cleanUpAmount = 0.0);
57
58 int testingGroupPositiveEdge(qint32 group, quint8 level);
59 int testingGroupNegativeEdge(qint32 group, quint8 level);
60 int testingGroupForeignEdge(qint32 group, quint8 level);
61 int testingGroupAllyEdge(qint32 group, quint8 level);
62 int testingGroupConflicts(qint32 group, quint8 level, qint32 withGroup);
63
64 void testingTryRemoveGroup(qint32 group, quint8 level);
65
66private:
67 struct Private;
68 const QScopedPointer<Private> m_d;
69};
70
71#endif // KISWATERSHEDWORKER_H
const QScopedPointer< Private > m_d