Krita Source Code Documentation
Loading...
Searching...
No Matches
MyPaintCurveOptionData Struct Reference

#include <MyPaintCurveOptionData.h>

+ Inheritance diagram for MyPaintCurveOptionData:

Public Member Functions

 MyPaintCurveOptionData (const KoID &id, bool isCheckable=true, bool isChecked=false, qreal minValue=0.0, qreal maxValue=1.0)
 
 MyPaintCurveOptionData (const QString &prefix, const KoID &id, bool isCheckable=true, bool isChecked=false, qreal minValue=0.0, qreal maxValue=1.0)
 
MyPaintSensorDatasensorStruct ()
 
const MyPaintSensorDatasensorStruct () const
 
- Public Member Functions inherited from KisCurveOptionDataCommon
 KisCurveOptionDataCommon (const KoID &id, bool isCheckable, bool isChecked, qreal minValue, qreal maxValue, KisSensorPackInterface *sensorInterface)
 
 KisCurveOptionDataCommon (const QString &prefix, const KoID &id, bool isCheckable, bool isChecked, qreal minValue, qreal maxValue, KisSensorPackInterface *sensorInterface)
 
bool read (const KisPropertiesConfiguration *setting)
 
std::vector< KisSensorData * > sensors ()
 
std::vector< const KisSensorData * > sensors () const
 
void write (KisPropertiesConfiguration *setting) const
 

Protected Member Functions

 MyPaintCurveOptionData (const QString &prefix, const KoID &id, bool isCheckable, bool isChecked, qreal minValue, qreal maxValue, MyPaintSensorPack *sensorInterface)
 

Additional Inherited Members

- Public Types inherited from KisCurveOptionDataCommon
using ValueFixUpReadCallback = std::function<void (KisCurveOptionDataCommon *, const KisPropertiesConfiguration *)>
 
using ValueFixUpWriteCallback = std::function<void (qreal, KisPropertiesConfiguration *)>
 
- Public Attributes inherited from KisCurveOptionDataCommon
QString commonCurve = DEFAULT_CURVE_STRING
 
int curveMode = 0
 
KoID id
 
bool isCheckable = true
 
bool isChecked = true
 
QString prefix
 
QSharedDataPointer< KisSensorPackInterfacesensorData
 
qreal strengthMaxValue = 1.0
 
qreal strengthMinValue = 0.0
 
qreal strengthValue = 1.0
 
bool useCurve = true
 
bool useSameCurve = true
 
ValueFixUpReadCallback valueFixUpReadCallback
 
ValueFixUpWriteCallback valueFixUpWriteCallback
 
- Static Public Attributes inherited from KisCurveOptionDataCommon
static constexpr bool supports_prefix = true
 

Detailed Description

Definition at line 14 of file MyPaintCurveOptionData.h.

Constructor & Destructor Documentation

◆ MyPaintCurveOptionData() [1/3]

MyPaintCurveOptionData::MyPaintCurveOptionData ( const QString & prefix,
const KoID & id,
bool isCheckable = true,
bool isChecked = false,
qreal minValue = 0.0,
qreal maxValue = 1.0 )

Definition at line 9 of file MyPaintCurveOptionData.cpp.

16 id,
19 minValue,
20 maxValue,
22{
23}
MyPaintCurveOptionData(const QString &prefix, const KoID &id, bool isCheckable=true, bool isChecked=false, qreal minValue=0.0, qreal maxValue=1.0)

◆ MyPaintCurveOptionData() [2/3]

MyPaintCurveOptionData::MyPaintCurveOptionData ( const KoID & id,
bool isCheckable = true,
bool isChecked = false,
qreal minValue = 0.0,
qreal maxValue = 1.0 )

Definition at line 25 of file MyPaintCurveOptionData.cpp.

30 : MyPaintCurveOptionData("", id, isCheckable, isChecked, minValue, maxValue)
31{
32}

◆ MyPaintCurveOptionData() [3/3]

MyPaintCurveOptionData::MyPaintCurveOptionData ( const QString & prefix,
const KoID & id,
bool isCheckable,
bool isChecked,
qreal minValue,
qreal maxValue,
MyPaintSensorPack * sensorInterface )
protected

Definition at line 34 of file MyPaintCurveOptionData.cpp.

36 id,
39 minValue,
40 maxValue,
41 sensorInterface)
42{
43}
KisCurveOptionDataCommon(const QString &prefix, const KoID &id, bool isCheckable, bool isChecked, qreal minValue, qreal maxValue, KisSensorPackInterface *sensorInterface)

Member Function Documentation

◆ sensorStruct() [1/2]

MyPaintSensorData & MyPaintCurveOptionData::sensorStruct ( )

Definition at line 45 of file MyPaintCurveOptionData.cpp.

46{
47 return dynamic_cast<MyPaintSensorPack *>(sensorData.data())->sensorsStruct();
48}
QSharedDataPointer< KisSensorPackInterface > sensorData

References KisCurveOptionDataCommon::sensorData.

◆ sensorStruct() [2/2]

const MyPaintSensorData & MyPaintCurveOptionData::sensorStruct ( ) const

Definition at line 50 of file MyPaintCurveOptionData.cpp.

51{
52 return dynamic_cast<const MyPaintSensorPack*>(sensorData.constData())->constSensorsStruct();
53}

References KisCurveOptionDataCommon::sensorData.


The documentation for this struct was generated from the following files: