aboutsummaryrefslogtreecommitdiff
path: root/distortionobserver.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-01-18 15:46:05 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2016-01-18 15:46:05 +0100
commit8cc4c24249600392871cc802f3ac4dd27368d335 (patch)
tree9bfde6414953828b379ee3728f5d92bbb772558d /distortionobserver.h
parentd0ba4bbd9eb7b550cf71bb421e2a6f8b83018b48 (diff)
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)
Diffstat (limited to 'distortionobserver.h')
-rw-r--r--distortionobserver.h29
1 files changed, 0 insertions, 29 deletions
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 <QObject>
-#include <armadillo>
-
-#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