From 4c3372973c541b502bcd05d388a2985f0e616f67 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Thu, 21 May 2015 14:08:59 -0300 Subject: Added more state variables in Scatterplot to reduce computation time. --- scatterplot.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scatterplot.h') diff --git a/scatterplot.h b/scatterplot.h index 5423a82..2b5aed8 100644 --- a/scatterplot.h +++ b/scatterplot.h @@ -31,6 +31,9 @@ private: bool selectGlyphs(bool mergeSelection); void updateData(); + float fromDataXToScreenX(float x); + float fromDataYToScreenY(float y); + enum InteractionState { INTERACTION_NONE, INTERACTION_SELECTING, @@ -41,6 +44,8 @@ private: QList m_selectedGlyphs; arma::mat m_data; + float m_xmin, m_xmax, m_ymin, m_ymax; + ColorScale m_colorScale; }; -- cgit v1.2.3