26 #include <VisionX/gui-plugins/PointCloudViewer/ui_SaveDialog.h>
31 QDialog(parent), ui(new
Ui::
SaveDialog), fileDialog(this)
36 connect(ui->pushButton, SIGNAL(pressed()),
this, SLOT(
openFile()));
39 fileDialog.setNameFilter(tr(
"Point Clouds (*.pcd)"));
40 fileDialog.setAcceptMode(QFileDialog::AcceptSave);
51 this->ui->widget->getDisplay()->getRootNode()->addChild(cloud);
52 this->ui->widget->getDisplay()->cameraViewAll();
58 this->ui->widget->getDisplay()->getRootNode()->removeAllChildren();
64 return ui->lineEdit->text().toStdString();
70 if (fileDialog.exec())
72 ui->lineEdit->setText(fileDialog.selectedFiles()[0]);