aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-09-29 16:01:00 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2015-09-29 16:01:00 -0300
commit75c5affd4d7919a969ab65a4a28b6306686e5f9c (patch)
treea2f7da22e641dfaba352da42e066e8e659cf72f8 /main.cpp
parent30f327b2fd25104916bffe6fe76823f0dbe35a72 (diff)
HistoryGraph now notifies when the active item changes. Scatterplot now differentiates between interactive and programatic changes in x/y data.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index e8a826e..7027be8 100644
--- a/main.cpp
+++ b/main.cpp
@@ -72,8 +72,10 @@ int main(int argc, char **argv)
&interactionHandler, SLOT(setSubsample(const arma::mat &)));
QObject::connect(&interactionHandler, SIGNAL(subsampleChanged(const arma::mat &)),
plot, SLOT(setXY(const arma::mat &)));
- QObject::connect(subsamplePlot, SIGNAL(xyChanged(const arma::mat &)),
+ QObject::connect(subsamplePlot, SIGNAL(xyInteractivelyChanged(const arma::mat &)),
history, SLOT(addHistoryItem(const arma::mat &)));
+ QObject::connect(history, SIGNAL(currentItemChanged(const arma::mat &)),
+ subsamplePlot, SLOT(setXY(const arma::mat &)));
SelectionHandler selectionHandler(sampleIndices);
QObject::connect(subsamplePlot, SIGNAL(selectionChanged(const QSet<int> &)),
@@ -107,7 +109,6 @@ int main(int argc, char **argv)
plot->setColorScale(&colorScale);
plot->setColorData(labels);
- //interactionHandler.setSubsample(Ys);
subsamplePlot->setXY(Ys);
subsamplePlot->setColorData(labels(sampleIndices));