summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2020-04-24 22:23:36 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2020-04-24 22:23:36 +0200
commite834521b276eda5cff3e422b0372bb1a66e0b98a (patch)
treea1a4daf7b02bccf6610a348b9179b25441f92ed2 /plugingui
parente4cee6593e08470342dc1b79d675c2d3845410ec (diff)
Add the spline nodes to the UI.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/powerwidget.cc9
1 files changed, 9 insertions, 0 deletions
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