diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-09-17 12:20:24 -0300 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-09-17 12:20:24 -0300 |
commit | 0518b806d8ce25c69847ec8c403276193611b2e1 (patch) | |
tree | f008385354f24ab2fadca171d27d8f2656244d89 /scatterplot.h | |
parent | 8b1e2720b1253a91e3b75a08e2f5a38deb55affa (diff) |
Additional interactive functionalities.
- Selection linking between subsample plot and main plot
- Dumb "effectiveness" coloring
Diffstat (limited to 'scatterplot.h')
-rw-r--r-- | scatterplot.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scatterplot.h b/scatterplot.h index 4275561..2d91a63 100644 --- a/scatterplot.h +++ b/scatterplot.h @@ -18,10 +18,12 @@ public: signals: void xyChanged(const arma::mat &XY); void colorDataChanged(const arma::vec &colorData); + void selectionChanged(const arma::uvec &selection); public slots: void setXY(const arma::mat &xy); void setColorData(const arma::vec &colorData); + void setSelection(const arma::uvec &selection); protected: QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *); @@ -31,7 +33,7 @@ protected: private: QSGNode *createGlyphNodeTree(); - bool selectGlyphs(bool mergeSelection); + arma::uvec findSelection(bool mergeSelection); float fromDataXToScreenX(float x); float fromDataYToScreenY(float y); |