Debian Codegraph @

libs/image/kis_curve_rect_mask_generator_p.h

raw symbols SCIP
1 /*
2 * SPDX-FileCopyrightText: 2010 Lukáš Tvrdý <[email protected]om>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7 #ifndef KIS_CURVE_RECT_MASK_GENERATOR_P_H
8 #define KIS_CURVE_RECT_MASK_GENERATOR_P_H
9
10 #include <QScopedPointer>
11
12 #include "kis_antialiasing_fade_maker.h"
13 #include "kis_brush_mask_applicator_base.h"
14 #include "kis_cubic_curve.h"
15
16 struct Q_DECL_HIDDEN KisCurveRectangleMaskGenerator::Private
17 {
18 Private(bool enableAntialiasing)
19 : fadeMaker(*this, enableAntialiasing)
20 {
21 }
22
23 Private(const Private &rhs)
24 : xcoeff(rhs.xcoeff),
25 ycoeff(rhs.ycoeff),
26 curveResolution(rhs.curveResolution),
27 curveData(rhs.curveData),
28 curvePoints(rhs.curvePoints),
29 dirty(rhs.dirty),
30 fadeMaker(rhs.fadeMaker, *this)
31 {
32 }
33
34 qreal xcoeff {0.0};
35 qreal ycoeff {0.0};
36 qreal curveResolution {0.0};
37 QVector<qreal> curveData;
38 QList<KisCubicCurvePoint> curvePoints;
39 bool dirty {false};
40
41 KisAntialiasingFadeMaker2D<Private> fadeMaker;
42 QScopedPointer<KisBrushMaskApplicatorBase> applicator;
43
44 inline quint8 value(qreal xr, qreal yr) const;
45 };
46
47 #endif // KIS_CURVE_RECT_MASK_GENERATOR_P_H