Changeset View
Changeset View
Standalone View
Standalone View
plugins/paintops/colorsmudge/kis_smudge_radius_option.h
Show All 23 Lines | |||||
24 | class KisPropertiesConfiguration; | 24 | class KisPropertiesConfiguration; | ||
25 | class KisPainter; | 25 | class KisPainter; | ||
26 | 26 | | |||
27 | class KisSmudgeRadiusOption: public KisRateOption | 27 | class KisSmudgeRadiusOption: public KisRateOption | ||
28 | { | 28 | { | ||
29 | public: | 29 | public: | ||
30 | KisSmudgeRadiusOption(); | 30 | KisSmudgeRadiusOption(); | ||
31 | 31 | | |||
32 | QRect sampleRect(const KisPaintInformation &info, qreal diameter, const QPoint &pos) const; | ||||
33 | | ||||
32 | /** | 34 | /** | ||
33 | * Set the opacity of the painter based on the rate | 35 | * Set the opacity of the painter based on the rate | ||
34 | * and the curve (if checked) | 36 | * and the curve (if checked) | ||
35 | */ | 37 | */ | ||
36 | void apply(KisPainter& painter, | 38 | void apply(KoColor *resultColor, | ||
37 | const KisPaintInformation& info, | 39 | const KisPaintInformation& info, | ||
38 | qreal diameter, | 40 | qreal diameter, | ||
39 | qreal posx, | 41 | qreal posx, | ||
40 | qreal posy, | 42 | qreal posy, | ||
41 | KisPaintDeviceSP dev) const; | 43 | KisPaintDeviceSP dev) const; | ||
42 | 44 | | |||
43 | void writeOptionSetting(KisPropertiesConfigurationSP setting) const override; | 45 | void writeOptionSetting(KisPropertiesConfigurationSP setting) const override; | ||
44 | void readOptionSetting(const KisPropertiesConfigurationSP setting) override; | 46 | void readOptionSetting(const KisPropertiesConfigurationSP setting) override; | ||
45 | 47 | | |||
46 | 48 | | |||
47 | 49 | | |||
48 | }; | 50 | }; | ||
49 | #endif // KIS_SMUDGE_RADIUS_OPTION_H | 51 | #endif // KIS_SMUDGE_RADIUS_OPTION_H |