diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-05-22 18:40:07 -0300 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-05-22 18:40:07 -0300 |
commit | 6a7b60784a44013156382843a5e72af272810674 (patch) | |
tree | f5cfea6392033e1d4e228eb0f388b343434994ce /scatterplot.h | |
parent | e8bb632cae4e7c9a320a3412cbd487f859ae104c (diff) |
Improvements to UI and performance.
Diffstat (limited to 'scatterplot.h')
-rw-r--r-- | scatterplot.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scatterplot.h b/scatterplot.h index 2b5aed8..a155daf 100644 --- a/scatterplot.h +++ b/scatterplot.h @@ -2,8 +2,7 @@ #define SCATTERPLOT_H #include <armadillo> -#include <QQuickItem> -#include <QSGNode> +#include <QtQuick> #include "colorscale.h" @@ -34,6 +33,11 @@ private: float fromDataXToScreenX(float x); float fromDataYToScreenY(float y); + arma::mat m_data; + float m_xmin, m_xmax, m_ymin, m_ymax; + + ColorScale m_colorScale; + enum InteractionState { INTERACTION_NONE, INTERACTION_SELECTING, @@ -41,12 +45,8 @@ private: INTERACTION_MOVING } m_currentState; QPointF m_dragOriginPos, m_dragCurrentPos; - QList<bool> m_selectedGlyphs; - arma::mat m_data; - float m_xmin, m_xmax, m_ymin, m_ymax; - - ColorScale m_colorScale; + QSet<int> m_selectedGlyphs; }; #endif // SCATTERPLOT_H |