Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_gauss_rect_mask_generator_p.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2010 Lukáš Tvrdý <lukast.dev@gmail.com>
3 * SPDX-FileCopyrightText: 2011 Geoffry Song <goffrie@gmail.com>
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
15
16struct 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
quint8 value(qreal x, qreal y) const
KisAntialiasingFadeMaker2D< Private > fadeMaker
QScopedPointer< KisBrushMaskApplicatorBase > applicator