mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
Updated detect more loop closures with optimization check to accept (like in dbviewer). DBViewer: added Depth image edition dialog. GainCompensator: now doing it on 3 channels separatly. Export: removed gain's alpha option, added max polygons option, added brightness/contrast auto balance option
This commit is contained in:
@@ -42,7 +42,8 @@ namespace rtabmap {
|
||||
|
||||
ProgressDialog::ProgressDialog(QWidget *parent, Qt::WindowFlags flags) :
|
||||
QDialog(parent, flags),
|
||||
_delayedClosingTime(1)
|
||||
_delayedClosingTime(1),
|
||||
_canceled(false)
|
||||
{
|
||||
_text = new QLabel(this);
|
||||
_text->setWordWrap(true);
|
||||
@@ -62,7 +63,7 @@ ProgressDialog::ProgressDialog(QWidget *parent, Qt::WindowFlags flags) :
|
||||
_endMessage = "Finished!";
|
||||
this->clear();
|
||||
connect(_closeButton, SIGNAL(clicked()), this, SLOT(close()));
|
||||
connect(_cancelButton, SIGNAL(clicked()), this, SIGNAL(canceled()));
|
||||
connect(_cancelButton, SIGNAL(clicked()), this, SLOT(cancel()));
|
||||
|
||||
QVBoxLayout * layout = new QVBoxLayout(this);
|
||||
layout->addWidget(_text);
|
||||
@@ -146,15 +147,15 @@ void ProgressDialog::incrementStep(int steps)
|
||||
void ProgressDialog::clear()
|
||||
{
|
||||
_text->clear();
|
||||
_progressBar->reset();
|
||||
_detailedText->clear();
|
||||
_closeButton->setEnabled(false);
|
||||
resetProgress();
|
||||
}
|
||||
|
||||
void ProgressDialog::resetProgress()
|
||||
{
|
||||
_progressBar->reset();
|
||||
_closeButton->setEnabled(false);
|
||||
_canceled = false;
|
||||
}
|
||||
|
||||
void ProgressDialog::closeDialog()
|
||||
@@ -169,6 +170,7 @@ void ProgressDialog::closeEvent(QCloseEvent *event)
|
||||
{
|
||||
if(_progressBar->value() == _progressBar->maximum())
|
||||
{
|
||||
_canceled = false;
|
||||
event->accept();
|
||||
}
|
||||
else
|
||||
@@ -177,4 +179,10 @@ void ProgressDialog::closeEvent(QCloseEvent *event)
|
||||
}
|
||||
}
|
||||
|
||||
void ProgressDialog::cancel()
|
||||
{
|
||||
_canceled = true;
|
||||
emit canceled();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user