From 0518b806d8ce25c69847ec8c403276193611b2e1 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Thu, 17 Sep 2015 12:20:24 -0300 Subject: Additional interactive functionalities. - Selection linking between subsample plot and main plot - Dumb "effectiveness" coloring --- effectivenessobserver.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 effectivenessobserver.h (limited to 'effectivenessobserver.h') diff --git a/effectivenessobserver.h b/effectivenessobserver.h new file mode 100644 index 0000000..8331916 --- /dev/null +++ b/effectivenessobserver.h @@ -0,0 +1,26 @@ +#ifndef EFFECTIVEINTERACTIONENFORCER_H +#define EFFECTIVEINTERACTIONENFORCER_H + +#include +#include + +class EffectiveInteractionEnforcer : public QObject +{ + Q_OBJECT +public: + EffectiveInteractionEnforcer(const arma::uvec &sampleIndices); + +signals: + void effectivenessChanged(const arma::vec &effectiveness); + +public slots: + void setSelection(const arma::uvec &selection); + void setMeasureDifference(const arma::vec &measure); + +private: + arma::mat m_effectiveness; + arma::uvec m_sampleIndices, m_selection; + arma::vec m_measure; +}; + +#endif // EFFECTIVEINTERACTIONENFORCER_H -- cgit v1.2.3