From ecc6ada9f64a9858f29b5da2e733fec0ec6f8bad Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Tue, 19 May 2015 18:54:20 -0300 Subject: Initial selection implementation. --- scatterplot.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'scatterplot.h') diff --git a/scatterplot.h b/scatterplot.h index 3f2fee6..58774a9 100644 --- a/scatterplot.h +++ b/scatterplot.h @@ -22,8 +22,21 @@ public slots: protected: QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *); + void mousePressEvent(QMouseEvent *event); + void mouseMoveEvent(QMouseEvent *event); + void mouseReleaseEvent(QMouseEvent *event); private: + QSGNode *newGlyphNodeTree(); + + enum InteractionState { + INTERACTION_NONE, + INTERACTION_SELECTING, + INTERACTION_SELECTED, + INTERACTION_MOVING + } m_currentState; + QPointF m_dragOriginPos, m_dragCurrentPos; + arma::mat m_data; ColorScale m_colorScale; }; -- cgit v1.2.3