diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-05-19 18:54:20 -0300 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-05-19 18:54:20 -0300 |
commit | ecc6ada9f64a9858f29b5da2e733fec0ec6f8bad (patch) | |
tree | b46d14818c3e4fba0de968f7fde55eddc7d743a1 /scatterplot.h | |
parent | 7c4333eed407886114f33d803a3199c50556e4e3 (diff) |
Initial selection implementation.
Diffstat (limited to 'scatterplot.h')
-rw-r--r-- | scatterplot.h | 13 |
1 files changed, 13 insertions, 0 deletions
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; }; |