From 8cc4c24249600392871cc802f3ac4dd27368d335 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Mon, 18 Jan 2016 15:46:05 +0100 Subject: Added observer to update values displayed based on some metric. * Modified main() function to connect signals/slots to display calculated values * Color scales are no longer shared; they are also normalized to each component's own data * Stub mouse handling in BarChart (changes cursor shape) --- scatterplot.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scatterplot.h') diff --git a/scatterplot.h b/scatterplot.h index 3c2d50b..d17341e 100644 --- a/scatterplot.h +++ b/scatterplot.h @@ -17,7 +17,7 @@ public: Scatterplot(QQuickItem *parent = 0); arma::mat XY() const; - void setColorScale(const ColorScale *colorScale); + void setColorScale(const ColorScale &colorScale); void setXY(const arma::mat &xy, bool updateView); void setColorData(const arma::vec &colorData, bool updateView); void setOpacityData(const arma::vec &opacityData, bool updateView); @@ -67,7 +67,7 @@ private: // Visuals float m_glyphSize; - const ColorScale *m_colorScale; + ColorScale m_colorScale; void autoScale(); bool m_autoScale; -- cgit v1.2.3