From 8cc4c24249600392871cc802f3ac4dd27368d335 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Mon, 18 Jan 2016 15:46:05 +0100 Subject: Added observer to update values displayed based on some metric. * Modified main() function to connect signals/slots to display calculated values * Color scales are no longer shared; they are also normalized to each component's own data * Stub mouse handling in BarChart (changes cursor shape) --- distortionobserver.h | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 distortionobserver.h (limited to 'distortionobserver.h') diff --git a/distortionobserver.h b/distortionobserver.h deleted file mode 100644 index 101c53d..0000000 --- a/distortionobserver.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef DISTORTIONOBSERVER_H -#define DISTORTIONOBSERVER_H - -#include -#include - -#include "distortionmeasure.h" - -class DistortionObserver : public QObject -{ - Q_OBJECT -public: - DistortionObserver(const arma::mat &X, const arma::uvec &sampleIndices); - void setMeasure(DistortionMeasure *measure); - -signals: - void mapChanged(const arma::vec &distortion); - -public slots: - void setMap(const arma::mat &Y); - -private: - arma::mat m_X, m_Y, m_distX; - arma::uvec m_sampleIndices; - DistortionMeasure *m_distortionMeasure; - arma::vec m_measures; -}; - -#endif // DISTORTIONOBSERVER_H -- cgit v1.2.3