From cf0a22d22a402f230d834853416a074833fe08bf Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Thu, 7 Apr 2016 17:01:14 -0300 Subject: LinePlot: working relaxation. --- lineplot.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lineplot.h') diff --git a/lineplot.h b/lineplot.h index bc6340c..facb138 100644 --- a/lineplot.h +++ b/lineplot.h @@ -44,7 +44,7 @@ public: void setColorScale(const ColorScale *scale); - const GraphDrawing *bundleGraphDrawing() const { return m_gdBundlePtr.get(); } + const GraphDrawing *graphDrawing() const { return m_gdFinalPtr.get(); } const std::vector &values() const { return m_values; } const std::vector &colorScale() const { return m_cmap; } LinearScale scaleX() const { return m_sx; } @@ -131,6 +131,7 @@ public slots: private: void bundle(); + void relax(); // Data arma::mat m_lines; @@ -139,7 +140,7 @@ private: // Visuals std::vector m_cmap; LinearScale m_sx, m_sy; - std::unique_ptr m_gdPtr, m_gdBundlePtr; + std::unique_ptr m_gdPtr, m_gdBundlePtr, m_gdFinalPtr; // Internal state bool m_linesChanged, m_valuesChanged, m_colorScaleChanged; -- cgit v1.2.3