aboutsummaryrefslogtreecommitdiff
path: root/scatterplot.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-01-16 21:46:53 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2016-01-16 21:46:53 +0100
commit748049f5a3e364d92f2eb2ec188a6cd657ef1087 (patch)
tree111d0433cc6ddcedaa6382fb495becb53c327ffb /scatterplot.h
parent2251ea8e63bd513ce12e709a6fd27d12565bc169 (diff)
Changed color scale internal point to const.
Diffstat (limited to 'scatterplot.h')
-rw-r--r--scatterplot.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/scatterplot.h b/scatterplot.h
index f577819..2997425 100644
--- a/scatterplot.h
+++ b/scatterplot.h
@@ -17,7 +17,7 @@ public:
Scatterplot(QQuickItem *parent = 0);
arma::mat XY() const;
- void setColorScale(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);
@@ -78,7 +78,7 @@ private:
bool m_shouldUpdateGeometry, m_shouldUpdateMaterials;
- ColorScale *m_colorScale;
+ const ColorScale *m_colorScale;
arma::vec m_colorData;
arma::vec m_opacityData;