Krita Source Code Documentation
Loading...
Searching...
No Matches
MyPaintCurveOptionData.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
8
10 const KoID &id,
11 bool isCheckable,
12 bool isChecked,
13 qreal minValue,
14 qreal maxValue)
16 id,
17 isCheckable,
18 isChecked,
19 minValue,
20 maxValue,
22{
23}
24
26 bool isCheckable,
27 bool isChecked,
28 qreal minValue,
29 qreal maxValue)
30 : MyPaintCurveOptionData("", id, isCheckable, isChecked, minValue, maxValue)
31{
32}
33
34MyPaintCurveOptionData::MyPaintCurveOptionData(const QString &prefix, const KoID &id, bool isCheckable, bool isChecked, qreal minValue, qreal maxValue, MyPaintSensorPack *sensorInterface)
36 id,
37 isCheckable,
38 isChecked,
39 minValue,
40 maxValue,
41 sensorInterface)
42{
43}
44
46{
47 return dynamic_cast<MyPaintSensorPack *>(sensorData.data())->sensorsStruct();
48}
49
51{
52 return dynamic_cast<const MyPaintSensorPack*>(sensorData.constData())->constSensorsStruct();
53}
Definition KoID.h:30
QSharedDataPointer< KisSensorPackInterface > sensorData
MyPaintCurveOptionData(const QString &prefix, const KoID &id, bool isCheckable=true, bool isChecked=false, qreal minValue=0.0, qreal maxValue=1.0)
MyPaintSensorData & sensorStruct()