From c0386be098480ad029a5ddf284c9b94487551460 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Mon, 11 May 2015 14:20:04 -0400 Subject: [PATCH] DbViewer: remove constraint clouds when 3D words are not available and referred checkbox checked --- guilib/src/DatabaseViewer.cpp | 4 ++++ guilib/src/ui/preferencesDialog.ui | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/guilib/src/DatabaseViewer.cpp b/guilib/src/DatabaseViewer.cpp index 9054f6b0..34fc6092 100644 --- a/guilib/src/DatabaseViewer.cpp +++ b/guilib/src/DatabaseViewer.cpp @@ -2112,6 +2112,7 @@ void DatabaseViewer::updateConstraintView( else { UWARN("Empty 3D words for node %d", link.from()); + ui_->constraintsViewer->removeCloud("cloud0"); } if(cloudTo->size()) { @@ -2120,11 +2121,14 @@ void DatabaseViewer::updateConstraintView( else { UWARN("Empty 3D words for node %d", link.to()); + ui_->constraintsViewer->removeCloud("cloud1"); } } else { UERROR("Not found signature %d or %d in RAM", link.from(), link.to()); + ui_->constraintsViewer->removeCloud("cloud0"); + ui_->constraintsViewer->removeCloud("cloud1"); } } } diff --git a/guilib/src/ui/preferencesDialog.ui b/guilib/src/ui/preferencesDialog.ui index 212898b8..3d457a19 100644 --- a/guilib/src/ui/preferencesDialog.ui +++ b/guilib/src/ui/preferencesDialog.ui @@ -63,9 +63,9 @@ 0 - -591 - 760 - 1502 + 0 + 755 + 1557 @@ -86,7 +86,7 @@ QFrame::Raised - 3 + 19 @@ -5007,7 +5007,7 @@ If set to false, classic RTAB-Map loop closure detection is done using only imag m - 2 + 3 0.100000000000000