aboutsummaryrefslogtreecommitdiff
path: root/selectionhandler.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-09-17 12:20:24 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2015-09-17 12:20:24 -0300
commit0518b806d8ce25c69847ec8c403276193611b2e1 (patch)
treef008385354f24ab2fadca171d27d8f2656244d89 /selectionhandler.h
parent8b1e2720b1253a91e3b75a08e2f5a38deb55affa (diff)
Additional interactive functionalities.
- Selection linking between subsample plot and main plot - Dumb "effectiveness" coloring
Diffstat (limited to 'selectionhandler.h')
-rw-r--r--selectionhandler.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/selectionhandler.h b/selectionhandler.h
new file mode 100644
index 0000000..4c4a2ca
--- /dev/null
+++ b/selectionhandler.h
@@ -0,0 +1,23 @@
+#ifndef SELECTIONHANDLER_H
+#define SELECTIONHANDLER_H
+
+#include <QObject>
+#include <armadillo>
+
+class SelectionHandler : public QObject
+{
+ Q_OBJECT
+public:
+ SelectionHandler(const arma::uvec &sampleIndices);
+
+signals:
+ void selectionChanged(const arma::uvec &selection);
+
+public slots:
+ void setSelection(const arma::uvec &selection);
+
+private:
+ arma::uvec m_sampleIndices;
+};
+
+#endif // SELECTIONHANDLER_H