|
Krita Source Code Documentation
|
A widget that allows to select a combination of auto levels parameters. More...
#include <KisAutoLevelsWidget.h>
Inheritance diagram for KisAutoLevelsWidget:Public Slots | |
| void | lockShadowsAndHighlightsAdjustmentMethod () |
| Disables the contrast method combo box. Use this when only one of the methods makes sense. | |
| void | setHighlightsClipping (qreal newHighlightsClipping) |
| Set the normalized percentage used to clip the highlights. | |
| void | setHighlightsColor (const KoColor &newHighlightsColor) |
| Set the color used to move the highlights towards. | |
| void | setMaximumInputBlackAndWhiteOffset (qreal newMaximumInputBlackAndWhiteOffset) |
| Set the normalized maximum value that the black/white point can be moved from the default position of 0.0/1.0. | |
| void | setMidtonesAdjustmentAmount (qreal newMidtonesAdjustmentAmount) |
| Set how much the reference midtone point is deviated from the center of the histogram to the median/mean (depending on the midtone adjustment method selected) | |
| void | setMidtonesAdjustmentMethod (KisAutoLevels::MidtonesAdjustmentMethod newMethod) |
| Set the method used to adjust the midtones. | |
| void | setMidtonesColor (const KoColor &newMidtonesColor) |
| Set the color used to move the midtones towards. | |
| void | setShadowsAndHighlightsAdjustmentMethod (KisAutoLevels::ShadowsAndHighlightsAdjustmentMethod newMethod) |
| Set the method used to adjust the contrast. | |
| void | setShadowsClipping (qreal newShadowsClipping) |
| Set the normalized percentage used to clip the shadows. | |
| void | setShadowsColor (const KoColor &newShadowsColor) |
| Set the color used to move the shadows towards. | |
| void | unlockShadowsAndHighlightsAdjustmentMethod () |
| Enables the contrast method combo box, allowing the user to choose any of the methods. | |
Signals | |
| void | parametersChanged () |
Public Member Functions | |
| qreal | highlightsClipping () const |
| Get the normalized percentage used to clip the highlights. | |
| KisAutoLevelsWidget (QWidget *parent) | |
| qreal | maximumInputBlackAndWhiteOffset () const |
| Get the normalized maximum value that the black/white point can be moved from the default position of 0.0/1.0. | |
| qreal | midtonesAdjustmentAmount () const |
| Get how much the reference midtone point is deviated from the center of the histogram to the median/mean (depending on the midtone adjustment method selected) | |
| KisAutoLevels::MidtonesAdjustmentMethod | midtonesAdjustmentMethod () const |
| Get the method used to adjust the midtones. | |
| KoColor | outputHighlightsColor () const |
| Get the color used to move the highlights towards. | |
| KoColor | outputMidtonesColor () const |
| Get the color used to move the midtones towards. | |
| KoColor | outputShadowsColor () const |
| Get the color used to move the shadows towards. | |
| KisAutoLevels::ShadowsAndHighlightsAdjustmentMethod | shadowsAndHighlightsAdjustmentMethod () const |
| Get the method used to adjust the contrast. | |
| qreal | shadowsClipping () const |
| Get the normalized percentage used to clip the shadows. | |
| ~KisAutoLevelsWidget () override | |
Private Attributes | |
| Ui_KisAutoLevelsWidget | m_ui |
A widget that allows to select a combination of auto levels parameters.
Definition at line 23 of file KisAutoLevelsWidget.h.
| KisAutoLevelsWidget::KisAutoLevelsWidget | ( | QWidget * | parent | ) |
Definition at line 13 of file KisAutoLevelsWidget.cpp.
References connect(), m_ui, parametersChanged(), and KisSpinBoxI18nHelper::setText().
|
override |
Definition at line 48 of file KisAutoLevelsWidget.cpp.
| qreal KisAutoLevelsWidget::highlightsClipping | ( | ) | const |
Get the normalized percentage used to clip the highlights.
Definition at line 61 of file KisAutoLevelsWidget.cpp.
References m_ui.
|
slot |
Disables the contrast method combo box. Use this when only one of the methods makes sense.
Definition at line 141 of file KisAutoLevelsWidget.cpp.
References m_ui.
| qreal KisAutoLevelsWidget::maximumInputBlackAndWhiteOffset | ( | ) | const |
Get the normalized maximum value that the black/white point can be moved from the default position of 0.0/1.0.
Definition at line 66 of file KisAutoLevelsWidget.cpp.
References m_ui.
| qreal KisAutoLevelsWidget::midtonesAdjustmentAmount | ( | ) | const |
Get how much the reference midtone point is deviated from the center of the histogram to the median/mean (depending on the midtone adjustment method selected)
Definition at line 76 of file KisAutoLevelsWidget.cpp.
References m_ui.
| KisAutoLevels::MidtonesAdjustmentMethod KisAutoLevelsWidget::midtonesAdjustmentMethod | ( | ) | const |
Get the method used to adjust the midtones.
Definition at line 71 of file KisAutoLevelsWidget.cpp.
References m_ui.
| KoColor KisAutoLevelsWidget::outputHighlightsColor | ( | ) | const |
Get the color used to move the highlights towards.
Definition at line 86 of file KisAutoLevelsWidget.cpp.
References m_ui.
| KoColor KisAutoLevelsWidget::outputMidtonesColor | ( | ) | const |
Get the color used to move the midtones towards.
Definition at line 91 of file KisAutoLevelsWidget.cpp.
References m_ui.
| KoColor KisAutoLevelsWidget::outputShadowsColor | ( | ) | const |
Get the color used to move the shadows towards.
Definition at line 81 of file KisAutoLevelsWidget.cpp.
References m_ui.
|
signal |
|
slot |
Set the normalized percentage used to clip the highlights.
Definition at line 106 of file KisAutoLevelsWidget.cpp.
References m_ui.
Set the color used to move the highlights towards.
Definition at line 131 of file KisAutoLevelsWidget.cpp.
References m_ui.
|
slot |
Set the normalized maximum value that the black/white point can be moved from the default position of 0.0/1.0.
Definition at line 111 of file KisAutoLevelsWidget.cpp.
References m_ui.
|
slot |
Set how much the reference midtone point is deviated from the center of the histogram to the median/mean (depending on the midtone adjustment method selected)
Definition at line 121 of file KisAutoLevelsWidget.cpp.
References m_ui.
|
slot |
Set the method used to adjust the midtones.
Definition at line 116 of file KisAutoLevelsWidget.cpp.
References m_ui.
Set the color used to move the midtones towards.
Definition at line 136 of file KisAutoLevelsWidget.cpp.
References m_ui.
|
slot |
Set the method used to adjust the contrast.
Definition at line 96 of file KisAutoLevelsWidget.cpp.
References m_ui.
|
slot |
Set the normalized percentage used to clip the shadows.
Definition at line 101 of file KisAutoLevelsWidget.cpp.
References m_ui.
Set the color used to move the shadows towards.
Definition at line 126 of file KisAutoLevelsWidget.cpp.
References m_ui, and KoColor::setColor().
| KisAutoLevels::ShadowsAndHighlightsAdjustmentMethod KisAutoLevelsWidget::shadowsAndHighlightsAdjustmentMethod | ( | ) | const |
Get the method used to adjust the contrast.
Definition at line 51 of file KisAutoLevelsWidget.cpp.
References m_ui.
| qreal KisAutoLevelsWidget::shadowsClipping | ( | ) | const |
Get the normalized percentage used to clip the shadows.
Definition at line 56 of file KisAutoLevelsWidget.cpp.
References m_ui.
|
slot |
Enables the contrast method combo box, allowing the user to choose any of the methods.
Definition at line 146 of file KisAutoLevelsWidget.cpp.
References m_ui.
|
private |
Definition at line 126 of file KisAutoLevelsWidget.h.