diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-18 15:46:05 +0100 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-18 15:46:05 +0100 |
commit | 8cc4c24249600392871cc802f3ac4dd27368d335 (patch) | |
tree | 9bfde6414953828b379ee3728f5d92bbb772558d /scatterplot.h | |
parent | d0ba4bbd9eb7b550cf71bb421e2a6f8b83018b48 (diff) |
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)
Diffstat (limited to 'scatterplot.h')
-rw-r--r-- | scatterplot.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |