diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-20 01:00:56 +0100 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-20 01:00:56 +0100 |
commit | eb214cd50e8a36318c7012545d142d5133e95415 (patch) | |
tree | 0b50897fad528ed8515d6debd8f872784ce4a6e1 /main.cpp | |
parent | c99756c9a4a144530da0b20bb5fd75e64014b83a (diff) |
Added color scale selection and aggregate error.
* Projection metrics can be shown as current, diff to previous and
diff to original (original seems bugged, beware)
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -162,18 +162,22 @@ int main(int argc, char **argv) QObject::connect(m->rpPlot, SIGNAL(scaleChanged(const LinearScale<float> &, const LinearScale<float> &)), m->cpPlot, SLOT(setScale(const LinearScale<float> &, const LinearScale<float> &))); + QObject::connect(m->splat, SIGNAL(colorScaleChanged(const ColorScale &)), + m->colormap, SLOT(setColorScale(const ColorScale &))); + m->barChart = engine.rootObjects()[0]->findChild<BarChart *>("barChart"); m->barChart->setAcceptedMouseButtons(Qt::LeftButton); m->setBarChartColorScale(Main::ColorScaleContinuous); ProjectionObserver projectionObserver(X, cpIndices); + m->projectionObserver = &projectionObserver; QObject::connect(&interactionHandler, SIGNAL(cpChanged(const arma::mat &)), - &projectionObserver, SLOT(setMap(const arma::mat &))); - QObject::connect(&projectionObserver, SIGNAL(mapChanged(const arma::vec &)), + m->projectionObserver, SLOT(setMap(const arma::mat &))); + QObject::connect(m->projectionObserver, SIGNAL(valuesChanged(const arma::vec &)), m->rpPlot, SLOT(setColorData(const arma::vec &))); - QObject::connect(&projectionObserver, SIGNAL(mapChanged(const arma::vec &)), + QObject::connect(m->projectionObserver, SIGNAL(valuesChanged(const arma::vec &)), m->splat, SLOT(setValues(const arma::vec &))); - QObject::connect(&projectionObserver, SIGNAL(mapChanged(const arma::vec &)), + QObject::connect(m->projectionObserver, SIGNAL(valuesChanged(const arma::vec &)), m->barChart, SLOT(setValues(const arma::vec &))); //history->addHistoryItem(Ys); |