ExportCloudsDialog: Updated TextureMesh export. MainWindow: fixed exporting only visible clouds.

This commit is contained in:
matlabbe
2016-03-22 20:44:18 -04:00
parent c43fd6a2a7
commit a01fb82f51
8 changed files with 240 additions and 106 deletions

View File

@@ -45,6 +45,10 @@ MapVisibilityWidget::MapVisibilityWidget(QWidget * parent) : QWidget(parent) {
QVBoxLayout * layout2 = new QVBoxLayout(scrollAreaWidgetContent);
scrollAreaWidgetContent->setLayout(layout2);
scrollArea->setWidget(scrollAreaWidgetContent);
QCheckBox * selectAll = new QCheckBox("Select all", this);
connect(selectAll, SIGNAL(toggled(bool)), this, SLOT(selectAll(bool)));
verticalLayout1->addWidget(selectAll);
verticalLayout1->addWidget(scrollArea);
}
@@ -126,4 +130,14 @@ void MapVisibilityWidget::signalVisibility()
emit visibilityChanged(check->text().split('(').first().toInt(), check->isChecked());
}
void MapVisibilityWidget::selectAll(bool checked)
{
QWidget * area = this->findChild<QWidget*>("area");
QList<QCheckBox*> checkboxes = area->findChildren<QCheckBox*>();
for(int i = 0; i<checkboxes.size(); ++i)
{
checkboxes[i]->setChecked(checked);
}
}
} /* namespace rtabmap */