aboutsummaryrefslogtreecommitdiff
path: root/historygraph.h
diff options
context:
space:
mode:
Diffstat (limited to 'historygraph.h')
-rw-r--r--historygraph.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/historygraph.h b/historygraph.h
index 564845c..60cce94 100644
--- a/historygraph.h
+++ b/historygraph.h
@@ -11,20 +11,26 @@ public:
HistoryGraph(QQuickItem *parent = 0);
~HistoryGraph();
+signals:
+ void currentItemChanged(const arma::mat &item);
+
public slots:
void addHistoryItem(const arma::mat &item);
protected:
QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *);
+ void mousePressEvent(QMouseEvent *event);
private:
class HistoryItemNode;
+ HistoryItemNode *nodeAt(const QPointF &pos) const;
+ HistoryItemNode *nodeAt(const QPointF &pos, HistoryItemNode *node) const;
+
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;
};