12 #include "ui_DialogCompressionValence1.h"
14 #include <QFileDialog>
26 ui->verticalLayout->addWidget(
helpButton, 0, Qt::AlignRight);
29 link =
"https://liris.cnrs.fr/mepp/doc/nightly/_filter_compression_valence.html";
36 const std::string &p3dFilePath,
37 bool with_adaptative_quantization,
38 int quantization_bits,
41 Qt::CheckState state = with_adaptative_quantization
42 ? Qt::CheckState::Checked
43 : Qt::CheckState::Unchecked;
45 ui->p3dFilePath->setText(QString::fromStdString(p3dFilePath));
46 ui->with_adaptative_quantization->setCheckState(state);
47 ui->quantization_bits->setText(QString::number(quantization_bits));
48 ui->max_vertices->setText(QString::number(max_vertices));
53 std::string &p3dFilePath,
54 bool &with_adaptative_quantization,
55 int &quantization_bits,
58 p3dFilePath = ui->p3dFilePath->text().toStdString();
59 with_adaptative_quantization = ui->with_adaptative_quantization->isChecked();
60 quantization_bits = ui->quantization_bits->text().toUInt();
61 max_vertices = ui->max_vertices->text().toUInt();
68 QFileDialog::getSaveFileName(
this,
70 ui->p3dFilePath->text(),
71 tr(
"P3D files (*.p3d);;All files (*)"),
73 QFileDialog::DontUseNativeDialog);
75 if(!filename.isEmpty())
76 ui->p3dFilePath->setText(filename);