|
Krita Source Code Documentation
|
#include <KisCurveOptionData.h>
Inheritance diagram for KisCurveOptionData:Public Types | |
| using | Checkability = KisKritaSensorPack::Checkability |
Public Types inherited from KisCurveOptionDataCommon | |
| using | ValueFixUpReadCallback = std::function<void (KisCurveOptionDataCommon *, const KisPropertiesConfiguration *)> |
| using | ValueFixUpWriteCallback = std::function<void (qreal, KisPropertiesConfiguration *)> |
Public Member Functions | |
| KisCurveOptionData (const KoID &id, Checkability checkability=Checkability::Checkable, std::optional< bool > isChecked=std::nullopt, const std::pair< qreal, qreal > &valueRange={0.0, 1.0}) | |
| KisCurveOptionData (const QString &prefix, const KoID &id, Checkability checkability=Checkability::Checkable, std::optional< bool > isChecked=std::nullopt, const std::pair< qreal, qreal > &valueRange={0.0, 1.0}) | |
| KisKritaSensorData & | sensorStruct () |
| const KisKritaSensorData & | sensorStruct () 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 |
Additional Inherited Members | |
Public Attributes inherited from KisCurveOptionDataCommon | |
| QString | commonCurve = DEFAULT_CURVE_STRING |
| int | curveMode = 0 |
| KoID | id |
| bool | isCheckable = true |
| bool | isChecked = true |
| QString | prefix |
| QSharedDataPointer< KisSensorPackInterface > | sensorData |
| 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 |
Definition at line 14 of file KisCurveOptionData.h.
Definition at line 16 of file KisCurveOptionData.h.
| KisCurveOptionData::KisCurveOptionData | ( | const QString & | prefix, |
| const KoID & | id, | ||
| Checkability | checkability = Checkability::Checkable, | ||
| std::optional< bool > | isChecked = std::nullopt, | ||
| const std::pair< qreal, qreal > & | valueRange = {0.0, 1.0} ) |
When isChecked is std::nullopt, then the initial checked state is deduced from the checkability property. Non-checkable options will always be checked, checkable — unchecked
Definition at line 9 of file KisCurveOptionData.cpp.
| KisCurveOptionData::KisCurveOptionData | ( | const KoID & | id, |
| Checkability | checkability = Checkability::Checkable, | ||
| std::optional< bool > | isChecked = std::nullopt, | ||
| const std::pair< qreal, qreal > & | valueRange = {0.0, 1.0} ) |
Definition at line 25 of file KisCurveOptionData.cpp.
| KisKritaSensorData & KisCurveOptionData::sensorStruct | ( | ) |
Definition at line 33 of file KisCurveOptionData.cpp.
References KisCurveOptionDataCommon::sensorData.
| const KisKritaSensorData & KisCurveOptionData::sensorStruct | ( | ) | const |
Definition at line 38 of file KisCurveOptionData.cpp.
References KisCurveOptionDataCommon::sensorData.