aboutsummaryrefslogtreecommitdiff
path: root/barchart.h
diff options
context:
space:
mode:
Diffstat (limited to 'barchart.h')
-rw-r--r--barchart.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/barchart.h b/barchart.h
index 164e0eb..ba96470 100644
--- a/barchart.h
+++ b/barchart.h
@@ -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