Solving issue 2610: "Display curve node input/output values" + add a new tone curve mode (Luminance)
This commit is contained in:
@@ -36,6 +36,7 @@ MyCurve::MyCurve () : pipetteR(-1.f), pipetteG(-1.f), pipetteB(-1.f), pipetteVal
|
||||
sized = RS_Pending;
|
||||
snapToElmt = -100;
|
||||
curveIsDirty = true;
|
||||
edited_point = -1;
|
||||
|
||||
set_extension_events(Gdk::EXTENSION_EVENTS_ALL);
|
||||
#if defined (__APPLE__)
|
||||
@@ -114,6 +115,15 @@ bool MyCurve::snapCoordinateY(double testedVal, double realVal) {
|
||||
return false;
|
||||
}
|
||||
|
||||
float MyCurve::getVal(LUTf &curve, int x) {
|
||||
if ((graphW-2) == curve.getSize()) {
|
||||
return curve[x];
|
||||
}
|
||||
else {
|
||||
return curve.getVal01(float(x)/(graphW-3));
|
||||
}
|
||||
}
|
||||
|
||||
void MyCurve::on_style_changed (const Glib::RefPtr<Gtk::Style>& style) {
|
||||
setDirty(true);
|
||||
queue_draw ();
|
||||
|
Reference in New Issue
Block a user