diff --git a/applications/gui/src/pose_window.cpp b/applications/gui/src/pose_window.cpp index a3d5da3ba43872ec7183681b88d5acd88509e58f..3dc8d39dc6996147be8b71ad762b5e010ef0bfa3 100644 --- a/applications/gui/src/pose_window.cpp +++ b/applications/gui/src/pose_window.cpp @@ -92,7 +92,13 @@ PoseWindow::PoseWindow(nanogui::Widget *parent, ftl::ctrl::Master *ctrl, const s tools->setFixedWidth(150); - new Widget(tools); + button = new Button(tools, "Up"); + button->setCallback([this]() { + Eigen::Affine3d transform(Eigen::Translation3d(0.0,-pose_precision_,0.0)); + Eigen::Matrix4d matrix = transform.matrix(); + pose_ *= matrix; + ctrl_->setPose(src_, pose_); + }); button = new Button(tools, "", ENTYPO_ICON_CHEVRON_UP); button->setCallback([this]() { Eigen::Affine3d transform(Eigen::Translation3d(0.0,0.0,-pose_precision_)); @@ -100,7 +106,13 @@ PoseWindow::PoseWindow(nanogui::Widget *parent, ftl::ctrl::Master *ctrl, const s pose_ *= matrix; ctrl_->setPose(src_, pose_); }); - new Widget(tools); + button = new Button(tools, "Down"); + button->setCallback([this]() { + Eigen::Affine3d transform(Eigen::Translation3d(0.0,pose_precision_,0.0)); + Eigen::Matrix4d matrix = transform.matrix(); + pose_ *= matrix; + ctrl_->setPose(src_, pose_); + }); button = new Button(tools, "", ENTYPO_ICON_CHEVRON_LEFT); button->setCallback([this]() { diff --git a/applications/gui/src/src_window.cpp b/applications/gui/src/src_window.cpp index 0a6b0feb62cba81eb2b2b331bc7509a79db6ed09..b5e70e898f1c9299a7aa909261ca3324738d2bf2 100644 --- a/applications/gui/src/src_window.cpp +++ b/applications/gui/src/src_window.cpp @@ -125,7 +125,8 @@ SourceWindow::SourceWindow(nanogui::Widget *parent, ftl::ctrl::Master *ctrl) auto button_pose = new Button(this, "Adjust Pose", ENTYPO_ICON_COMPASS); button_pose->setCallback([this]() { - new PoseWindow(screen(), ctrl_, src_->getURI()); + auto posewin = new PoseWindow(screen(), ctrl_, src_->getURI()); + posewin->setTheme(theme()); }); #ifdef HAVE_LIBARCHIVE