From 2ae04662b85d4898fe7069ed18cce2dd7abc45ad Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Thu, 3 Mar 2016 17:00:47 -0300 Subject: BarChart is now also updated during rewinding. In addition, rewinding is now done with Ctrl+RMB. --- barchart.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'barchart.cpp') diff --git a/barchart.cpp b/barchart.cpp index e651ccd..65db7d8 100644 --- a/barchart.cpp +++ b/barchart.cpp @@ -78,6 +78,17 @@ void BarChart::setValues(const arma::vec &values) update(); } +void BarChart::updateValues(const arma::vec &values) +{ + if (m_values.n_elem != values.n_elem) { + return; + } + + m_values = values; + m_shouldUpdateBars = true; + update(); +} + void BarChart::setColorScale(const ColorScale *scale) { m_colorScale = scale; -- cgit v1.2.3