diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-18 15:46:05 +0100 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-18 15:46:05 +0100 |
commit | 8cc4c24249600392871cc802f3ac4dd27368d335 (patch) | |
tree | 9bfde6414953828b379ee3728f5d92bbb772558d /distortionobserver.h | |
parent | d0ba4bbd9eb7b550cf71bb421e2a6f8b83018b48 (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.h | 29 |
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 |