From 60a0bfb863aa2a05bafd943423c284f5c2d68863 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Mon, 25 Jan 2016 19:55:52 +0100 Subject: Scatterplots & splat now share the same scaling. --- manipulationhandler.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 manipulationhandler.h (limited to 'manipulationhandler.h') diff --git a/manipulationhandler.h b/manipulationhandler.h new file mode 100644 index 0000000..78ca1c9 --- /dev/null +++ b/manipulationhandler.h @@ -0,0 +1,37 @@ +#ifndef MANIPULATIONHANDLER_H +#define MANIPULATIONHANDLER_H + +#include +#include + +class ManipulationHandler + : public QObject +{ + Q_OBJECT +public: + Q_ENUMS(Technique) + enum Technique { + TECHNIQUE_PLMP, + TECHNIQUE_LAMP, + TECHNIQUE_LSP, + TECHNIQUE_PEKALSKA + }; + + ManipulationHandler(const arma::mat &X, const arma::uvec &cpIndices); + void setTechnique(Technique technique); + +signals: + void cpChanged(const arma::mat &cpY) const; + void rpChanged(const arma::mat &rpY) const; + void mapChanged(const arma::mat &Y) const; + +public slots: + void setCP(const arma::mat &Ys); + +private: + arma::mat m_X, m_Y; + arma::uvec m_cpIndices, m_rpIndices; + Technique m_technique; +}; + +#endif // MANIPULATIONHANDLER_H -- cgit v1.2.3