diff options
author | André Nusser <andre.nusser@googlemail.com> | 2020-04-24 22:23:36 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2020-04-24 22:23:36 +0200 |
commit | e834521b276eda5cff3e422b0372bb1a66e0b98a (patch) | |
tree | a1a4daf7b02bccf6610a348b9179b25441f92ed2 /plugingui | |
parent | e4cee6593e08470342dc1b79d675c2d3845410ec (diff) |
Add the spline nodes to the UI.
Diffstat (limited to 'plugingui')
-rw-r--r-- | plugingui/powerwidget.cc | 9 |
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 |