summaryrefslogtreecommitdiff
path: root/src/GudhUI/gui/MainWindow.cpp
diff options
context:
space:
mode:
authorsalinasd <salinasd@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-01-27 15:09:04 +0000
committersalinasd <salinasd@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-01-27 15:09:04 +0000
commite8e889c52c96a3055a1237c389186cb08b0f6708 (patch)
treec7879f69d52a9cdde35f38ac2718ec9d8ce7815a /src/GudhUI/gui/MainWindow.cpp
parentd7a3c90ef611b1c104b6a4ee900b56bf39d56cf5 (diff)
critical poitns
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@432 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 27e660f593f25a00cbd8b1794ed83bb76fd34eea
Diffstat (limited to 'src/GudhUI/gui/MainWindow.cpp')
-rw-r--r--src/GudhUI/gui/MainWindow.cpp12
1 files changed, 10 insertions, 2 deletions
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"