diff options
Diffstat (limited to 'barchart.h')
-rw-r--r-- | barchart.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,9 +1,13 @@ #ifndef BARCHART_H #define BARCHART_H +#include <vector> + #include <QtQuick> #include <armadillo> +#include "scale.h" + class BarChart : public QQuickItem { Q_OBJECT @@ -26,9 +30,11 @@ private: QSGNode *newBarNode() const; void updateBarNodeGeom(QSGNode *barNode, float x, float width, float height); void updateBars(QSGNode *root); + bool m_shouldUpdateBars; arma::vec m_values; - bool m_shouldUpdateBars; + std::vector<int> m_originalIndices; + LinearScale<float> m_scale; }; #endif // BARCHART_H |