diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-09-29 16:01:00 -0300 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-09-29 16:01:00 -0300 |
commit | 75c5affd4d7919a969ab65a4a28b6306686e5f9c (patch) | |
tree | a2f7da22e641dfaba352da42e066e8e659cf72f8 /main.cpp | |
parent | 30f327b2fd25104916bffe6fe76823f0dbe35a72 (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.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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)); |