mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
ExportCloudsDialog: Updated TextureMesh export. MainWindow: fixed exporting only visible clouds.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user