~smartboyhw/ubuntu/raring/calligra/2.6.0-0ubuntu1

« back to all changes in this revision

Viewing changes to krita/plugins/paintops/defaultpaintops/smudge/kis_smudgeop.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-07-16 10:51:29 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20120716105129-es1ebubwiwlsfvv0
Tags: 1:2.4.92-0ubuntu1
New upstream RC release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
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>
8
 
 *
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.
13
 
 *
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.
18
 
 *
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.
22
 
 */
23
 
 
24
 
#ifndef KIS_SMUDGEOP_H_
25
 
#define KIS_SMUDGEOP_H_
26
 
 
27
 
#include <KoColorSpace.h>
28
 
 
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>
34
 
 
35
 
class KisBrushBasedPaintOpSettings;
36
 
 
37
 
class QPointF;
38
 
class KisPainter;
39
 
 
40
 
class KisSmudgeOp : public KisBrushBasedPaintOp
41
 
{
42
 
 
43
 
public:
44
 
 
45
 
    KisSmudgeOp(const KisBrushBasedPaintOpSettings *settings, KisPainter * painter, KisImageWSP image);
46
 
    virtual ~KisSmudgeOp();
47
 
 
48
 
    qreal paintAt(const KisPaintInformation& info);
49
 
 
50
 
private:
51
 
    bool m_firstRun;
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;
56
 
    KoColor m_color;
57
 
    
58
 
    KisPressureSizeOption m_sizeOption;
59
 
    KisPressureOpacityOption m_opacityOption;
60
 
    KisPressureRateOption m_rateOption;
61
 
};
62
 
 
63
 
#endif // KIS_SMUDGEOP_H_