2
This library is free software; you can redistribute it and/or
3
modify it under the terms of the GNU Library General Public
4
License version 2 as published by the Free Software Foundation.
6
This library is distributed in the hope that it will be useful,
7
but WITHOUT ANY WARRANTY; without even the implied warranty of
8
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9
Library General Public License for more details.
11
You should have received a copy of the GNU Library General Public License
12
along with this library; see the file COPYING.LIB. If not, write to
13
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
14
Boston, MA 02110-1301, USA.
17
#ifndef KIS_HAIRY_INK_OPTION_H
18
#define KIS_HAIRY_INK_OPTION_H
20
#include <kis_paintop_option.h>
21
#include <krita_export.h>
23
const QString HAIRY_INK_AMOUNT = "HairyInk/inkAmount";
24
const QString HAIRY_INK_USE_SATURATION = "HairyInk/useSaturation";
25
const QString HAIRY_INK_USE_OPACITY = "HairyInk/useOpacity";
26
const QString HAIRY_INK_USE_WEIGHTS = "HairyInk/useWeights";
27
const QString HAIRY_INK_PRESSURE_WEIGHT = "HairyInk/pressureWeights";
28
const QString HAIRY_INK_BRISTLE_LENGTH_WEIGHT = "HairyInk/bristleLengthWeights";
29
const QString HAIRY_INK_BRISTLE_INK_AMOUNT_WEIGHT = "HairyInk/bristleInkAmountWeight";
30
const QString HAIRY_INK_DEPLETION_WEIGHT = "HairyInk/inkDepletionWeight";
31
const QString HAIRY_INK_DEPLETION_CURVE = "HairyInk/inkDepletionCurve";
32
const QString HAIRY_INK_SOAK = "HairyInk/soak";
34
class KisInkOptionsWidget;
36
class KisHairyInkOption : public KisPaintOpOption
42
int inkAmount() const;
43
QList<float> curve() const;
45
bool useSaturation() const;
46
bool useOpacity() const;
47
bool useWeights() const;
49
int pressureWeight() const;
50
int bristleLengthWeight() const;
51
int bristleInkAmountWeight() const;
52
int inkDepletionWeight() const;
56
void writeOptionSetting(KisPropertiesConfiguration* config) const;
57
void readOptionSetting(const KisPropertiesConfiguration* config);
59
KisInkOptionsWidget * m_options;
62
#endif // KIS_HAIRY_SHAPE_OPTION_H