Krita Source Code Documentation
Loading...
Searching...
No Matches
KisDabRenderingExecutor.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 KISDABRENDERINGEXECUTOR_H
8#define KISDABRENDERINGEXECUTOR_H
9
10#include "kritadefaultpaintops_export.h"
11
12#include <QScopedPointer>
13
14#include <QList>
15struct KisRenderedDab;
16
17#include "KisDabCacheUtils.h"
18
19class KisMirrorOption;
22
23
24class KRITADEFAULTPAINTOPS_EXPORT KisDabRenderingExecutor
25{
26public:
29 KisRunnableStrokeJobsInterface *runnableJobsInterface,
30 KisMirrorOption *mirrorOption = 0,
31 KisPrecisionOption *precisionOption = 0);
33
34 void addDab(const KisDabCacheUtils::DabRequestInfo &request,
35 qreal opacity, qreal flow);
36
37 QList<KisRenderedDab> takeReadyDabs(bool returnMutableDabs = false, int oneTimeLimit = -1, bool *someDabsLeft = 0);
38
39 bool hasPreparedDabs() const;
40
41 qreal averageDabRenderingTime() const; // msecs
42 int averageDabSize() const;
43
44private:
46
47 struct Private;
48 const QScopedPointer<Private> m_d;
49};
50
51#endif // KISDABRENDERINGEXECUTOR_H
KisDabRenderingExecutor(const KisDabRenderingExecutor &rhs)=delete
const QScopedPointer< Private > m_d
std::function< DabRenderingResources *()> ResourcesFactory