9 #include <ui_model_input_config.h> 14 ui_ =
new Ui::ModelInputConfigWindow();
23 ui_->lineedit_ref_pt_x->setValidator(
new QDoubleValidator(
this));
24 ui_->lineedit_ref_pt_y->setValidator(
new QDoubleValidator(
this));
25 ui_->lineedit_ref_pt_z->setValidator(
new QDoubleValidator(
this));
26 ui_->lineedit_element_diameter->setValidator(
new QDoubleValidator(
this));
27 ui_->lineedit_shrink_length->setValidator(
new QDoubleValidator(
this));
28 ui_->lineedit_unit_process_timeout->setValidator(
new QDoubleValidator(
this));
29 ui_->lineedit_rrt_timeout->setValidator(
new QDoubleValidator(
this));
36 ui_->lineedit_filepath->setText(QString(
params_.file_name.c_str()));
38 ui_->lineedit_ref_pt_x->setText(QString::number(
params_.ref_pt_x));
39 ui_->lineedit_ref_pt_y->setText(QString::number(
params_.ref_pt_y));
40 ui_->lineedit_ref_pt_z->setText(QString::number(
params_.ref_pt_z));
42 ui_->lineedit_element_diameter->setText(QString::number(
params_.element_diameter));
43 ui_->lineedit_shrink_length->setText(QString::number(
params_.shrink_length));
45 ui_->lineedit_unit_process_timeout->setText(QString::number(
params_.clt_rrt_unit_process_timeout));
46 ui_->lineedit_rrt_timeout->setText(QString::number(
params_.clt_rrt_timeout));
48 ui_->combobox_unit->setCurrentIndex(
params_.unit_type);
53 params_.file_name =
ui_->lineedit_filepath->text().toLocal8Bit().constData();
55 params_.ref_pt_x =
ui_->lineedit_ref_pt_x->text().toDouble();
56 params_.ref_pt_y =
ui_->lineedit_ref_pt_y->text().toDouble();
57 params_.ref_pt_z =
ui_->lineedit_ref_pt_z->text().toDouble();
59 params_.element_diameter =
ui_->lineedit_element_diameter->text().toDouble();
60 params_.shrink_length =
ui_->lineedit_shrink_length->text().toDouble();
62 params_.clt_rrt_unit_process_timeout =
ui_->lineedit_unit_process_timeout->text().toDouble();
63 params_.clt_rrt_timeout =
ui_->lineedit_rrt_timeout->text().toDouble();
65 params_.unit_type =
ui_->combobox_unit->currentIndex();
72 case choreo_msgs::ModelInputParameters::MILLIMETER:
74 case choreo_msgs::ModelInputParameters::CENTIMETER:
76 case choreo_msgs::ModelInputParameters::INCH:
78 case choreo_msgs::ModelInputParameters::FOOT:
80 case choreo_msgs::ModelInputParameters::METER:
89 QString
filename = QFileDialog::getOpenFileName(
93 tr(
"pwf Files (*.pwf)"));
95 params_.file_name = filename.toLocal8Bit().constData();
virtual void accept_changes_handler()
virtual void save_changes_handler()
virtual void cancel_changes_handler()