From b3c7ac156e1c4ac5d7455ce61e89549291ac85b1 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Wed, 20 May 2015 18:53:07 -0300 Subject: Nearly complete implementation of interaction. Interaction still does not work due to signals not being correctly emitted. --- interactionhandler.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 interactionhandler.h (limited to 'interactionhandler.h') diff --git a/interactionhandler.h b/interactionhandler.h new file mode 100644 index 0000000..3dbeb8a --- /dev/null +++ b/interactionhandler.h @@ -0,0 +1,33 @@ +#ifndef INTERACTIONHANDLER_H +#define INTERACTIONHANDLER_H + +#include + +#include "scatterplot.h" + +class InteractionHandler : public QObject +{ + Q_OBJECT +public: + enum InteractiveTechnique { + TECHNIQUE_PLMP, + TECHNIQUE_LAMP, + TECHNIQUE_LSP + }; + + InteractionHandler(const arma::mat &X, const arma::vec &labels, const arma::uvec &sampleIndices); + +signals: + void subsampleChanged(const arma::mat &Y); + +public slots: + void setSubsample(const arma::mat &Ys); + +private: + arma::mat m_X; + arma::vec m_labels; + arma::uvec m_sampleIndices; + InteractiveTechnique m_technique; +}; + +#endif // INTERACTIONHANDLER_H -- cgit v1.2.3