From e834521b276eda5cff3e422b0372bb1a66e0b98a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Fri, 24 Apr 2020 22:23:36 +0200 Subject: Add the spline nodes to the UI. --- plugingui/powerwidget.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'plugingui/powerwidget.cc') diff --git a/plugingui/powerwidget.cc b/plugingui/powerwidget.cc index 1cecafc..e459503 100644 --- a/plugingui/powerwidget.cc +++ b/plugingui/powerwidget.cc @@ -181,6 +181,15 @@ void PowerWidget::Canvas::repaintEvent(GUI::RepaintEvent *repaintEvent) // p.setColour(c); // p.drawFilledRectangle(0, 0, width(), height()); + // draw the fixed nodes of the spline + p.setColour(GUI::Colour{0.f, 0.7f, .5f, 1.f}); + p.drawFilledCircle( + power_map.getFixed0().in*width(), height() - power_map.getFixed0().out*height(), 3); + p.drawFilledCircle( + power_map.getFixed1().in*width(), height() - power_map.getFixed1().out*height(), 3); + p.drawFilledCircle( + power_map.getFixed2().in*width(), height() - power_map.getFixed2().out*height(), 3); + if(enabled) { // enabled green -- cgit v1.2.3