From 77a784a139531da570de56c8b3e2edf3222baf9e Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Tue, 13 Oct 2015 17:00:54 -0300 Subject: Updated --help messages. --- main.cpp | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index e9492f7..4d0d594 100644 --- a/main.cpp +++ b/main.cpp @@ -44,12 +44,12 @@ int main(int argc, char **argv) parser.addPositionalArgument("dataset", "Dataset filename (.tbl)"); QCommandLineOption indicesFileOutputOption(QStringList() << "i" << "indices", - "Filename to store the subsample indices.", - "indices_path"); + "Filename to store the subsample indices. Omitting this option disables saving indices.", + "filename"); parser.addOption(indicesFileOutputOption); QCommandLineOption subsampleFileOutputOption(QStringList() << "s" << "subsample", - "Filename to store subsample mapping.", - "subsample_path"); + "Filename to store subsample mapping. Omitting this option disables saving subsamples.", + "filename"); parser.addOption(subsampleFileOutputOption); parser.process(app); @@ -135,13 +135,13 @@ int main(int argc, char **argv) subsamplePlot, SLOT(setXY(const arma::mat &))); // Map distortion as the glyph color - DistortionObserver distortionObs(X, sampleIndices); - std::unique_ptr distortionMeasure(new NPDistortion()); - distortionObs.setMeasure(distortionMeasure.get()); - QObject::connect(&interactionHandler, SIGNAL(subsampleChanged(const arma::mat &)), - &distortionObs, SLOT(setMap(const arma::mat &))); - QObject::connect(&distortionObs, SIGNAL(mapChanged(const arma::vec &)), - plot, SLOT(setColorData(const arma::vec &))); + //DistortionObserver distortionObs(X, sampleIndices); + //std::unique_ptr distortionMeasure(new NPDistortion()); + //distortionObs.setMeasure(distortionMeasure.get()); + //QObject::connect(&interactionHandler, SIGNAL(subsampleChanged(const arma::mat &)), + // &distortionObs, SLOT(setMap(const arma::mat &))); + //QObject::connect(&distortionObs, SIGNAL(mapChanged(const arma::vec &)), + // plot, SLOT(setColorData(const arma::vec &))); //EffectiveInteractionEnforcer enforcer(sampleIndices); //QObject::connect(subsamplePlot, SIGNAL(selectionChanged(const QSet &)), @@ -151,16 +151,11 @@ int main(int argc, char **argv) //QObject::connect(&enforcer, SIGNAL(effectivenessChanged(const arma::vec &)), // subsamplePlot, SLOT(setColorData(const arma::vec &))); - /* - ContinuousColorScale ccolorScale = ContinuousColorScale::builtin(ContinuousColorScale::RED_GRAY_BLUE); - ccolorScale.setExtents(-1, 1); - plot->setColorScale(&ccolorScale); - */ - plot->setColorScale(&colorScale); history->addHistoryItem(Ys); subsamplePlot->setXY(Ys); subsamplePlot->setColorData(labels(sampleIndices)); + plot->setColorScale(&colorScale); plot->setColorData(labels); return app.exec(); -- cgit v1.2.3