aboutsummaryrefslogtreecommitdiff
path: root/historygraph.h
diff options
context:
space:
mode:
Diffstat (limited to 'historygraph.h')
-rw-r--r--historygraph.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/historygraph.h b/historygraph.h
index b854d1e..564845c 100644
--- a/historygraph.h
+++ b/historygraph.h
@@ -1,20 +1,32 @@
#ifndef HISTORYGRAPH_H
#define HISTORYGRAPH_H
-#include <armadillo>
#include <QtQuick>
+#include <armadillo>
class HistoryGraph : public QQuickItem
{
Q_OBJECT
public:
HistoryGraph(QQuickItem *parent = 0);
+ ~HistoryGraph();
public slots:
- void addHistoryItem(const int &item);
+ void addHistoryItem(const arma::mat &item);
protected:
QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *);
+
+private:
+ class HistoryItemNode;
+
+ QSGNode *createNodeTree();
+ void updateNodeTree(QSGNode *root);
+ void addScatterplot(QSGNode *node, const HistoryItemNode *historyItemNode, float x, float y, float w, float h);
+
+
+ HistoryItemNode *m_firstNode, *m_currentNode;
+ bool m_needsUpdate;
};
#endif // HISTORYGRAPH_H