2
* Copyright (c) 2002 Patrick Julien <freak@codepimps.org>
3
* Copyright (c) 2004-2008 Boudewijn Rempt <boud@valdyas.org>
4
* Copyright (c) 2004 Clarence Dang <dang@kde.org>
5
* Copyright (c) 2004 Adrian Page <adrian@pagenet.plus.com>
6
* Copyright (c) 2004 Cyrille Berger <cberger@cberger.net>
7
* Copyright (c) 2010 José Luis Vergara Toloza <pentalis@gmail.com>
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24
#ifndef KIS_SMUDGEOP_H_
25
#define KIS_SMUDGEOP_H_
27
#include <KoColorSpace.h>
29
#include "kis_brush_based_paintop.h"
30
#include <kis_types.h>
31
#include <kis_pressure_opacity_option.h>
32
#include <kis_pressure_size_option.h>
33
#include <kis_pressure_rate_option.h>
35
class KisBrushBasedPaintOpSettings;
40
class KisSmudgeOp : public KisBrushBasedPaintOp
45
KisSmudgeOp(const KisBrushBasedPaintOpSettings *settings, KisPainter * painter, KisImageWSP image);
46
virtual ~KisSmudgeOp();
48
qreal paintAt(const KisPaintInformation& info);
52
// The "temporary paint device"
53
KisPaintDeviceSP m_tempDev;
54
// The size of the rectangle encompassing the whole data in the temporary device needs to be cached for speed
55
QRect m_wholeTempData;
58
KisPressureSizeOption m_sizeOption;
59
KisPressureOpacityOption m_opacityOption;
60
KisPressureRateOption m_rateOption;
63
#endif // KIS_SMUDGEOP_H_