From 841ede5c34a5cb001b540ed13a8439dc8df7d2a9 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Sat, 19 Dec 2015 22:11:33 +0100 Subject: Experimenting using VoronoiSplat as a texture. --- main.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'main.cpp') 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("PM", 1, 0, "Scatterplot"); - qmlRegisterType("PM", 1, 0, "VoronoiSplat"); qmlRegisterType("PM", 1, 0, "HistoryGraph"); qmlRegisterType("PM", 1, 0, "InteractionHandler"); qmlRegisterSingletonType
("PM", 1, 0, "Main", mainProvider); @@ -190,8 +189,7 @@ int main(int argc, char **argv) // subsamplePlot->setColorData(arma::zeros(subsampleSize)); subsamplePlot->setColorScale(&colorScale); Scatterplot *plot = engine.rootObjects()[0]->findChild("plot"); - VoronoiSplat *splat = engine.rootObjects()[0]->findChild("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(); -- cgit v1.2.3