Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ftl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Pope
ftl
Commits
c0307be5
Commit
c0307be5
authored
5 years ago
by
Nicolas Pope
Browse files
Options
Downloads
Patches
Plain Diff
Space to pause in GUI
parent
d93aedad
No related branches found
No related tags found
No related merge requests found
Pipeline
#11763
passed
5 years ago
Stage: all
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/gui/src/main.cpp
+7
-0
7 additions, 0 deletions
applications/gui/src/main.cpp
with
7 additions
and
0 deletions
applications/gui/src/main.cpp
+
7
−
0
View file @
c0307be5
...
...
@@ -244,10 +244,14 @@ class FTLApplication : public nanogui::Screen {
explicit
FTLApplication
(
ftl
::
Configurable
*
root
,
ftl
::
net
::
Universe
*
net
,
ftl
::
ctrl
::
Master
*
controller
)
:
nanogui
::
Screen
(
Eigen
::
Vector2i
(
1024
,
768
),
"FT-Lab GUI"
)
{
using
namespace
nanogui
;
net_
=
net
;
ctrl_
=
controller
;
cwindow_
=
new
ftl
::
gui
::
ControlWindow
(
this
,
controller
);
swindow_
=
new
ftl
::
gui
::
SourceWindow
(
this
,
controller
);
cwindow_
->
setPosition
(
Eigen
::
Vector2i
(
20
,
20
));
swindow_
->
setPosition
(
Eigen
::
Vector2i
(
20
,
400
));
//src_ = nullptr;
eye_
=
Eigen
::
Vector3f
(
0.0
f
,
0.0
f
,
0.0
f
);
neye_
=
Eigen
::
Vector4f
(
0.0
f
,
0.0
f
,
0.0
f
,
0.0
f
);
...
...
@@ -356,6 +360,8 @@ class FTLApplication : public nanogui::Screen {
}
else
if
(
action
==
1
&&
key
==
'H'
)
{
swindow_
->
setVisible
(
!
swindow_
->
visible
());
cwindow_
->
setVisible
(
!
cwindow_
->
visible
());
}
else
if
(
action
==
1
&&
key
==
32
)
{
ctrl_
->
pause
();
}
return
false
;
}
...
...
@@ -477,6 +483,7 @@ class FTLApplication : public nanogui::Screen {
float
ftime_
;
float
delta_
;
Eigen
::
Vector2f
imageSize
;
ftl
::
ctrl
::
Master
*
ctrl_
;
};
int
main
(
int
argc
,
char
**
argv
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment