diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-21 14:50:39 +0100 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-21 14:50:39 +0100 |
commit | e9d14f93498832687cbdbeb79748f9030e49fb2f (patch) | |
tree | d74e54789518e422cfcfe55347038991fbab7645 /main.h | |
parent | 664dc43127bf0dc5791423898ffab6748f016dd7 (diff) |
Added second bar chart.
Bar charts are now exclusive to the type of points they are assigned
to (either CPs or RPs).
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -93,8 +93,12 @@ public: colormap->setColorScale(getColorScale(colorScaleType)); } - Q_INVOKABLE void setBarChartColorScale(ColorScaleType colorScaleType) { - barChart->setColorScale(getColorScale(colorScaleType)); + Q_INVOKABLE void setCPBarChartColorScale(ColorScaleType colorScaleType) { + cpBarChart->setColorScale(getColorScale(colorScaleType)); + } + + Q_INVOKABLE void setRPBarChartColorScale(ColorScaleType colorScaleType) { + rpBarChart->setColorScale(getColorScale(colorScaleType)); } Q_INVOKABLE void setSplatColorScale(ColorScaleType colorScaleType) { @@ -103,7 +107,7 @@ public: // Pointer to visual components whose values are set in the main() function // after components are instantiated by the QtQuick engine - BarChart *barChart; + BarChart *cpBarChart, *rpBarChart; Colormap *colormap; Scatterplot *cpPlot, *rpPlot; VoronoiSplat *splat; @@ -132,7 +136,8 @@ private: , COLOR_SCALE_CONTINUOUS{ContinuousColorScale::builtin(ContinuousColorScale::HEATED_OBJECTS)} , COLOR_SCALE_DIVERGENT{ContinuousColorScale::builtin(ContinuousColorScale::RED_GRAY_BLUE)} , COLOR_SCALE_RAINBOW{ContinuousColorScale::builtin(ContinuousColorScale::RAINBOW)} - , barChart(0) + , cpBarChart(0) + , rpBarChart(0) , cpPlot(0) , rpPlot(0) , splat(0) |