35 #include "ui_transform.h"
40 qRegisterMetaType<Eigen::Quaterniond>(
"Eigen::Vector3d");
41 qRegisterMetaType<Eigen::Quaterniond>(
"Eigen::Quaterniond");
46 auto valueChanged =
static_cast<void (QDoubleSpinBox::*)(
double)
>(&QDoubleSpinBox::valueChanged);
59 return ui_->euler_widget_->value();
68 ui_->pos_x->blockSignals(
true);
69 ui_->pos_y->blockSignals(
true);
70 ui_->pos_z->blockSignals(
true);
72 ui_->pos_x->setValue(p.x());
73 ui_->pos_y->setValue(p.y());
74 ui_->pos_z->setValue(p.z());
76 ui_->pos_x->blockSignals(
false);
77 ui_->pos_y->blockSignals(
false);
78 ui_->pos_z->blockSignals(
false);
84 ui_->euler_widget_->setValue(q);
88 QDoubleSpinBox*
s = qobject_cast<QDoubleSpinBox*>(sender());
98 if (Eigen::internal::isApprox(
pos_[i], value))