aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-12-19 22:11:33 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2015-12-19 22:11:33 +0100
commit841ede5c34a5cb001b540ed13a8439dc8df7d2a9 (patch)
tree11970d698ded9c6353895eca37ca662241edda4b /main.cpp
parente20c03905d6f8418963bd3ce63040e2fe571a6da (diff)
Experimenting using VoronoiSplat as a texture.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/main.cpp b/main.cpp
index 64560d3..b9d7232 100644
--- a/main.cpp
+++ b/main.cpp
@@ -157,7 +157,6 @@ int main(int argc, char **argv)
m->setSubsample(Ys);
qmlRegisterType<Scatterplot>("PM", 1, 0, "Scatterplot");
- qmlRegisterType<VoronoiSplat>("PM", 1, 0, "VoronoiSplat");
qmlRegisterType<HistoryGraph>("PM", 1, 0, "HistoryGraph");
qmlRegisterType<InteractionHandler>("PM", 1, 0, "InteractionHandler");
qmlRegisterSingletonType<Main>("PM", 1, 0, "Main", mainProvider);
@@ -190,8 +189,7 @@ int main(int argc, char **argv)
// subsamplePlot->setColorData(arma::zeros<arma::vec>(subsampleSize));
subsamplePlot->setColorScale(&colorScale);
Scatterplot *plot = engine.rootObjects()[0]->findChild<Scatterplot *>("plot");
- VoronoiSplat *splat = engine.rootObjects()[0]->findChild<VoronoiSplat *>("splat");
- skelft2DInitialization(splat->width());
+ skelft2DInitialization(plot->width());
// Keep track of the current subsample (in order to save them later, if requested)
QObject::connect(subsamplePlot, SIGNAL(xyChanged(const arma::mat &)),
@@ -211,10 +209,10 @@ int main(int argc, char **argv)
m->setTechnique(InteractionHandler::TECHNIQUE_LAMP);
// Update splat whenever the main plot is also updated
- QObject::connect(plot, SIGNAL(xyChanged(const arma::mat &)),
- splat, SLOT(setPoints(const arma::mat &)));
- QObject::connect(plot, SIGNAL(colorDataChanged(const arma::vec &)),
- splat, SLOT(setValues(const arma::vec &)));
+ //QObject::connect(plot, SIGNAL(xyChanged(const arma::mat &)),
+ // splat, SLOT(setPoints(const arma::mat &)));
+ //QObject::connect(plot, SIGNAL(colorDataChanged(const arma::vec &)),
+ // splat, SLOT(setValues(const arma::vec &)));
// Linking between selections in subsample plot and full dataset plot
SelectionHandler selectionHandler(sampleIndices);
@@ -252,7 +250,7 @@ int main(int argc, char **argv)
subsamplePlot->setXY(Ys);
subsamplePlot->setColorData(labels(sampleIndices));
plot->setColorScale(&colorScale);
- splat->setColorScale(&colorScale);
+ //splat->setColorScale(&colorScale);
plot->setColorData(labels);
auto ret = app.exec();