From e8e889c52c96a3055a1237c389186cb08b0f6708 Mon Sep 17 00:00:00 2001 From: salinasd Date: Tue, 27 Jan 2015 15:09:04 +0000 Subject: critical poitns git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@432 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 27e660f593f25a00cbd8b1794ed83bb76fd34eea --- src/GudhUI/gui/MainWindow.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/GudhUI/gui/MainWindow.cpp') diff --git a/src/GudhUI/gui/MainWindow.cpp b/src/GudhUI/gui/MainWindow.cpp index f1dd8e83..f5abfffc 100644 --- a/src/GudhUI/gui/MainWindow.cpp +++ b/src/GudhUI/gui/MainWindow.cpp @@ -96,8 +96,8 @@ MainWindow::connectActions(){ SLOT(show_euler_characteristic())); QObject::connect(this->actionPersistence, SIGNAL(triggered()), this, SLOT(persistence_menu())); - - + QObject::connect(this->actionEstimate_topological_changes, SIGNAL(triggered()), this, + SLOT(critical_points_menu())); QObject::connect(this, SIGNAL(sceneChanged()), this->viewer_instructor_, SLOT(sceneChanged())); @@ -278,6 +278,14 @@ MainWindow::compute_persistence(int p,double threshold,int max_dim,double min_pe model_.show_persistence(p,threshold,max_dim,min_pers); } +void +MainWindow::critical_points_menu(){ + bool ok; + double max_length = QInputDialog::getDouble(this, tr("Maximal edge length for the Rips"), + tr("Maximal edge length:"), 0, 0, 10000, 3, &ok); + if (ok) + model_.show_critical_points(max_length); +} #include "MainWindow.moc" -- cgit v1.2.3