aboutsummaryrefslogtreecommitdiff
path: root/scatterplot.h
diff options
context:
space:
mode:
Diffstat (limited to 'scatterplot.h')
-rw-r--r--scatterplot.h13
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;
};