Debian Codegraph @

libs/image/kis_gauss_rect_mask_generator_p.h

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