aboutsummaryrefslogtreecommitdiff
path: root/scatterplot.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-05-21 14:08:59 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2015-05-21 14:08:59 -0300
commite700acce78a80bcae5b8608caaab69d53e09bd5e (patch)
tree060b4dfa6464a008be8dc8c425fde9c689b422af /scatterplot.h
parente4d02b97c960162ef191f6eafadbdfc6b3668973 (diff)
Added more state variables in Scatterplot to reduce computation time.
Diffstat (limited to 'scatterplot.h')
-rw-r--r--scatterplot.h5
1 files changed, 5 insertions, 0 deletions
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<bool> m_selectedGlyphs;
arma::mat m_data;
+ float m_xmin, m_xmax, m_ymin, m_ymax;
+
ColorScale m_colorScale;
};