Skip to content
Snippets Groups Projects
Commit 8f850909 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Add hide window shortcut in GUI

parent e76caa94
Branches
No related tags found
No related merge requests found
...@@ -118,7 +118,7 @@ class FTLApplication : public nanogui::Screen { ...@@ -118,7 +118,7 @@ class FTLApplication : public nanogui::Screen {
using namespace nanogui; using namespace nanogui;
net_ = net; net_ = net;
auto cwindow = new ftl::gui::ControlWindow(this, controller); cwindow_ = new ftl::gui::ControlWindow(this, controller);
swindow_ = new ftl::gui::SourceWindow(this, controller); swindow_ = new ftl::gui::SourceWindow(this, controller);
//src_ = nullptr; //src_ = nullptr;
...@@ -203,6 +203,9 @@ class FTLApplication : public nanogui::Screen { ...@@ -203,6 +203,9 @@ class FTLApplication : public nanogui::Screen {
float scalar = (key == 264) ? 0.99f : 1.01f; float scalar = (key == 264) ? 0.99f : 1.01f;
eye_ = ((eye_ - centre_) * scalar) + centre_; eye_ = ((eye_ - centre_) * scalar) + centre_;
return true; return true;
} else if (action == 1 && key == 'H') {
swindow_->setVisible(!swindow_->visible());
cwindow_->setVisible(!cwindow_->visible());
} }
return false; return false;
} }
...@@ -277,6 +280,7 @@ class FTLApplication : public nanogui::Screen { ...@@ -277,6 +280,7 @@ class FTLApplication : public nanogui::Screen {
private: private:
ftl::gui::SourceWindow *swindow_; ftl::gui::SourceWindow *swindow_;
ftl::gui::ControlWindow *cwindow_;
//std::vector<SourceViews> sources_; //std::vector<SourceViews> sources_;
ftl::net::Universe *net_; ftl::net::Universe *net_;
nanogui::GLShader mShader; nanogui::GLShader mShader;
......
...@@ -233,7 +233,7 @@ Eigen::Matrix4f findTransformation(vector<PointCloud<PointXYZ>::Ptr> clouds_sour ...@@ -233,7 +233,7 @@ Eigen::Matrix4f findTransformation(vector<PointCloud<PointXYZ>::Ptr> clouds_sour
// score new transformation // score new transformation
double score = 0.0; double score = 0.0;
for (size_t j = 0; j < n_clouds; ++j) { for (size_t j = 0; j < n_clouds; ++j) {
score += validate.validateTransformation(clouds_source[j], clouds_target[j], T); // CHECK Is use of T here a mistake?? score += validate.validateTransformation(clouds_source[j], clouds_target[j], T_tmp); // CHECK Is use of T here a mistake??
} }
score /= n_clouds; score /= n_clouds;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment