Adding per curve default curve capabilities, used in the Color Toning tool as of now. See issue 2014

This commit is contained in:
Hombre
2014-07-15 22:07:11 +02:00
parent 918a922499
commit 1921141cb7
20 changed files with 247 additions and 183 deletions

View File

@@ -1079,7 +1079,12 @@ void MyDiagonalCurve::updateBackgroundHistogram (LUTu & hist) {
}
void MyDiagonalCurve::reset(double identityValue) {
void MyDiagonalCurve::reset(const std::vector<double> &resetCurve, double identityValue) {
if (!resetCurve.empty()) {
setPoints(resetCurve);
return;
}
switch (curve.type) {
case DCT_Spline :