Krita Source Code Documentation
Loading...
Searching...
No Matches
HistogramComputationStrokeStrategy.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Agata Cacko <tamtamy.tymona@gmail.com>
3 * SPDX-FileCopyrightText: 2023 Dmitry Kazakov <dimula73@gmail.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7#ifndef HISTOGRAMCOMPUTATIONSTROKESTRATEGY_H
8#define HISTOGRAMCOMPUTATIONSTROKESTRATEGY_H
9
11#include <vector>
12
13class KoColorSpace;
14
15
16using HistVector = std::vector<std::vector<quint32> >; //Don't use QVector here - it's too slow for this purpose
17
24
25
27{
28 Q_OBJECT
29public:
32
33private:
34 void initStrokeCallback() override;
35 void doStrokeCallback(KisStrokeJobData *data) override;
36 void finishStrokeCallback() override;
37
38 void initiateVector(HistVector &vec, const KoColorSpace* colorSpace);
39
40Q_SIGNALS:
41 //Emitted when thumbnail is updated and overviewImage is fully generated.
43
44private:
45 struct Private;
46 const QScopedPointer<Private> m_d;
47};
48
49#endif // HISTOGRAMCOMPUTATIONSTROKESTRATEGY_H
std::vector< std::vector< quint32 > > HistVector
void computationResultReady(HistogramData data)
Q_DECLARE_METATYPE(KisPaintopLodLimitations)