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
26
27
29{
30 Q_OBJECT
31public:
34
35private:
36 void initStrokeCallback() override;
37 void doStrokeCallback(KisStrokeJobData *data) override;
38 void finishStrokeCallback() override;
39
40 void initiateVector(HistVector &vec, const KoColorSpace* colorSpace);
41
42Q_SIGNALS:
43 //Emitted when thumbnail is updated and overviewImage is fully generated.
45
46private:
47 struct Private;
48 const QScopedPointer<Private> m_d;
49};
50
51#endif // HISTOGRAMCOMPUTATIONSTROKESTRATEGY_H
std::vector< std::vector< quint32 > > HistVector
void computationResultReady(HistogramData data)
Q_DECLARE_METATYPE(KisPaintopLodLimitations)