aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-10-13 17:00:54 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2015-10-13 17:00:54 -0300
commit77a784a139531da570de56c8b3e2edf3222baf9e (patch)
treeaded0394f62daafb3aa2600aa03a51b853a4fd6d /main.cpp
parent1f7281e153c656da8161ffb90605bc0595cf64ec (diff)
Updated --help messages.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp29
1 files changed, 12 insertions, 17 deletions
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> 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> 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<int> &)),
@@ -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();