mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
Save/view high-res point clouds depending on the visible clouds in Map view (only those checked in MapVisibility view)
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1437 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -2324,12 +2324,21 @@ void PreferencesDialog::updateKpROI()
|
||||
|
||||
void PreferencesDialog::changeDatabasePath()
|
||||
{
|
||||
QString path = QFileDialog::getSaveFileName(
|
||||
this,
|
||||
tr("Select database file..."),
|
||||
_ui->lineEdit_databasePath->text(),
|
||||
tr("RTAB-Map database files (*.db)"),
|
||||
0);
|
||||
QFileDialog fileDialog;
|
||||
fileDialog.setFileMode(QFileDialog::AnyFile);
|
||||
fileDialog.setNameFilter(tr("RTAB-Map database files (*.db)"));
|
||||
fileDialog.setDefaultSuffix("db");
|
||||
fileDialog.setDirectory(QFileInfo(_ui->lineEdit_databasePath->text()).dir());
|
||||
fileDialog.selectFile (_ui->lineEdit_databasePath->text());
|
||||
QStringList fileNames;
|
||||
QString path;
|
||||
if(fileDialog.exec())
|
||||
{
|
||||
if(!fileDialog.selectedFiles().empty())
|
||||
{
|
||||
path = fileDialog.selectedFiles().first();
|
||||
}
|
||||
}
|
||||
|
||||
if(!path.isEmpty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user