Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_curve_circle_mask_generator_p.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2010 Lukáš Tvrdý <lukast.dev@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KIS_CURVE_CIRCLE_MASK_GENERATOR_P_H
8#define KIS_CURVE_CIRCLE_MASK_GENERATOR_P_H
9
12#include "kis_cubic_curve.h"
13
14struct Q_DECL_HIDDEN KisCurveCircleMaskGenerator::Private
15{
16 Private(bool enableAntialiasing)
17 : fadeMaker(*this, enableAntialiasing)
18 {
19 }
20
21 Private(const Private &rhs)
22 : xcoef(rhs.xcoef),
23 ycoef(rhs.ycoef),
24 curveResolution(rhs.curveResolution),
25 curveData(rhs.curveData),
26 curvePoints(rhs.curvePoints),
27 dirty(true),
28 fadeMaker(rhs.fadeMaker,*this)
29 {
30 }
31
32 qreal xcoef {0.0};
33 qreal ycoef {0.0};
34 qreal curveResolution {0.0};
37 bool dirty {false};
38
40 QScopedPointer<KisBrushMaskApplicatorBase> applicator;
41
42 inline quint8 value(qreal dist) const;
43};
44
45#endif // KIS_CURVE_CIRCLE_MASK_GENERATOR_P_H
quint8 value(qreal dist) const
KisAntialiasingFadeMaker1D< Private > fadeMaker
QScopedPointer< KisBrushMaskApplicatorBase > applicator