Changeset View
Changeset View
Standalone View
Standalone View
libs/image/kis_curve_circle_mask_generator_p.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * Copyright (c) 2010 Lukáš Tvrdý <lukast.dev@gmail.com> | ||||
3 | * | ||||
4 | * This program is free software; you can redistribute it and/or modify | ||||
5 | * it under the terms of the GNU General Public License as published by | ||||
6 | * the Free Software Foundation; either version 2 of the License, or | ||||
7 | * (at your option) any later version. | ||||
8 | * | ||||
9 | * This program is distributed in the hope that it will be useful, | ||||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
12 | * GNU General Public License for more details. | ||||
13 | * | ||||
14 | * You should have received a copy of the GNU General Public License | ||||
15 | * along with this program; if not, write to the Free Software | ||||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
17 | */ | ||||
18 | | ||||
19 | #ifndef KIS_CURVE_CIRCLE_MASK_GENERATOR_P_H | ||||
20 | #define KIS_CURVE_CIRCLE_MASK_GENERATOR_P_H | ||||
21 | | ||||
22 | #include "kis_antialiasing_fade_maker.h" | ||||
23 | #include "kis_brush_mask_applicator_base.h" | ||||
24 | | ||||
25 | struct Q_DECL_HIDDEN KisCurveCircleMaskGenerator::Private | ||||
26 | { | ||||
27 | Private(bool enableAntialiasing) | ||||
28 | : fadeMaker(*this, enableAntialiasing) | ||||
29 | { | ||||
30 | } | ||||
31 | | ||||
32 | Private(const Private &rhs) | ||||
33 | : xcoef(rhs.xcoef), | ||||
34 | ycoef(rhs.ycoef), | ||||
35 | curveResolution(rhs.curveResolution), | ||||
36 | curveData(rhs.curveData), | ||||
37 | curvePoints(rhs.curvePoints), | ||||
38 | dirty(true), | ||||
39 | fadeMaker(rhs.fadeMaker,*this) | ||||
40 | { | ||||
41 | } | ||||
42 | | ||||
43 | qreal xcoef, ycoef; | ||||
44 | qreal curveResolution; | ||||
45 | QVector<qreal> curveData; | ||||
46 | QList<QPointF> curvePoints; | ||||
47 | bool dirty; | ||||
48 | | ||||
49 | KisAntialiasingFadeMaker1D<Private> fadeMaker; | ||||
50 | QScopedPointer<KisBrushMaskApplicatorBase> applicator; | ||||
51 | | ||||
52 | inline quint8 value(qreal dist) const; | ||||
53 | }; | ||||
54 | | ||||
55 | #endif // KIS_CURVE_CIRCLE_MASK_GENERATOR_P_H |