aboutsummaryrefslogtreecommitdiff
path: root/lineplot.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-04-07 17:01:14 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2016-04-07 17:01:14 -0300
commitcf0a22d22a402f230d834853416a074833fe08bf (patch)
treef7a53773ec7cde56a3928fb75dd1be01be8aa665 /lineplot.h
parent83b2d9518c6ff575606ea56c32f11105a14ee252 (diff)
LinePlot: working relaxation.
Diffstat (limited to 'lineplot.h')
-rw-r--r--lineplot.h5
1 files changed, 3 insertions, 2 deletions
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<float> &values() const { return m_values; }
const std::vector<float> &colorScale() const { return m_cmap; }
LinearScale<float> 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<float> m_cmap;
LinearScale<float> m_sx, m_sy;
- std::unique_ptr<GraphDrawing> m_gdPtr, m_gdBundlePtr;
+ std::unique_ptr<GraphDrawing> m_gdPtr, m_gdBundlePtr, m_gdFinalPtr;
// Internal state
bool m_linesChanged, m_valuesChanged, m_colorScaleChanged;