Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
* SPDX-FileCopyrightText: 2010 Lukáš Tvrdý <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KIS_CURVE_RECT_MASK_GENERATOR_P_H
#define KIS_CURVE_RECT_MASK_GENERATOR_P_H
#include <QScopedPointer>
#include "kis_antialiasing_fade_maker.h"
#include "kis_brush_mask_applicator_base.h"
#include "kis_cubic_curve.h"
struct Q_DECL_HIDDEN KisCurveRectangleMaskGenerator::Private
{
Private(bool enableAntialiasing)
: fadeMaker(*this, enableAntialiasing)
{
}
Private(const Private &rhs)
: xcoeff(rhs.xcoeff),
ycoeff(rhs.ycoeff),
curveResolution(rhs.curveResolution),
curveData(rhs.curveData),
curvePoints(rhs.curvePoints),
dirty(rhs.dirty),
fadeMaker(rhs.fadeMaker, *this)
{
}
qreal xcoeff {0.0};
qreal ycoeff {0.0};
qreal curveResolution {0.0};
QVector<qreal> curveData;
QList<KisCubicCurvePoint> curvePoints;
bool dirty {false};
KisAntialiasingFadeMaker2D<Private> fadeMaker;
QScopedPointer<KisBrushMaskApplicatorBase> applicator;
inline quint8 value(qreal xr, qreal yr) const;
};
#endif // KIS_CURVE_RECT_MASK_GENERATOR_P_H