|
Krita Source Code Documentation
|
#include <KisCurveOption.h>
Inheritance diagram for KisCurveOption:Classes | |
| struct | ValueComponents |
Public Member Functions | |
| qreal | computeRotationLikeValue (const KisPaintInformation &info, qreal baseValue, bool absoluteAxesFlipped, qreal scalingPartCoeff, bool disableScalingPart) const |
| qreal | computeSizeLikeValue (const KisPaintInformation &info, bool useStrengthValue=true) const |
| ValueComponents | computeValueComponents (const KisPaintInformation &info, bool useStrengthValue) const |
| bool | isChecked () const |
| bool | isRandom () const |
| KisCurveOption (const KisCurveOptionData &data) | |
| KisCurveOption (KisCurveOption &)=delete | |
| KisCurveOption & | operator= (KisCurveOption &)=delete |
| qreal | strengthMaxValue () const |
| qreal | strengthMinValue () const |
| qreal | strengthValue () const |
Private Attributes | |
| int | m_curveMode |
| bool | m_isChecked |
| std::vector< std::unique_ptr< KisDynamicSensor > > | m_sensors |
| qreal | m_strengthMaxValue |
| qreal | m_strengthMinValue |
| qreal | m_strengthValue |
| bool | m_useCurve |
Definition at line 17 of file KisCurveOption.h.
| KisCurveOption::KisCurveOption | ( | const KisCurveOptionData & | data | ) |
Definition at line 91 of file KisCurveOption.cpp.
|
delete |
| qreal KisCurveOption::computeRotationLikeValue | ( | const KisPaintInformation & | info, |
| qreal | baseValue, | ||
| bool | absoluteAxesFlipped, | ||
| qreal | scalingPartCoeff, | ||
| bool | disableScalingPart ) const |
Definition at line 171 of file KisCurveOption.cpp.
References computeValueComponents(), and KisCurveOption::ValueComponents::rotationLikeValue().
| qreal KisCurveOption::computeSizeLikeValue | ( | const KisPaintInformation & | info, |
| bool | useStrengthValue = true ) const |
Definition at line 165 of file KisCurveOption.cpp.
References computeValueComponents(), and KisCurveOption::ValueComponents::sizeLikeValue().
| KisCurveOption::ValueComponents KisCurveOption::computeValueComponents | ( | const KisPaintInformation & | info, |
| bool | useStrengthValue ) const |
Uses the curves set on the sensors to compute a single double value that can control the parameters of a brush.
This value is derives from the values stored in ValuesComponents object.
Definition at line 102 of file KisCurveOption.cpp.
References KisCurveOption::ValueComponents::absoluteOffset, KisCurveOption::ValueComponents::additive, KisCurveOption::ValueComponents::constant, KisCurveOption::ValueComponents::hasAbsoluteOffset, KisCurveOption::ValueComponents::hasAdditive, KisCurveOption::ValueComponents::hasScaling, KisDynamicSensor::isAbsoluteRotation(), KisDynamicSensor::isAdditive(), m_curveMode, m_sensors, m_strengthMaxValue, m_strengthMinValue, m_strengthValue, m_useCurve, KisCurveOption::ValueComponents::maxSizeLikeValue, KisCurveOption::ValueComponents::minSizeLikeValue, KisDynamicSensor::parameter(), and KisCurveOption::ValueComponents::scaling.
| bool KisCurveOption::isChecked | ( | ) | const |
Definition at line 192 of file KisCurveOption.cpp.
References m_isChecked.
| bool KisCurveOption::isRandom | ( | ) | const |
Definition at line 197 of file KisCurveOption.cpp.
References FuzzyPerDabId(), FuzzyPerStrokeId(), KisDynamicSensor::id(), and m_sensors.
|
delete |
| qreal KisCurveOption::strengthMaxValue | ( | ) | const |
Definition at line 187 of file KisCurveOption.cpp.
References m_strengthMaxValue.
| qreal KisCurveOption::strengthMinValue | ( | ) | const |
Definition at line 182 of file KisCurveOption.cpp.
References m_strengthMinValue.
| qreal KisCurveOption::strengthValue | ( | ) | const |
Definition at line 177 of file KisCurveOption.cpp.
References m_strengthValue.
|
private |
Definition at line 68 of file KisCurveOption.h.
|
private |
Definition at line 66 of file KisCurveOption.h.
|
private |
Definition at line 72 of file KisCurveOption.h.
|
private |
Definition at line 71 of file KisCurveOption.h.
|
private |
Definition at line 70 of file KisCurveOption.h.
|
private |
Definition at line 69 of file KisCurveOption.h.
|
private |
Definition at line 67 of file KisCurveOption.h.