Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ar_sandbox_lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
AR_Sandbox
ar_sandbox_lib
Commits
7ba1afb0
Commit
7ba1afb0
authored
4 years ago
by
simon.fanetti
Browse files
Options
Downloads
Patches
Plain Diff
clean main SandboxSetup app
parent
32f71cde
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/SandboxSetup/main.cpp
+0
-90
0 additions, 90 deletions
app/SandboxSetup/main.cpp
with
0 additions
and
90 deletions
app/SandboxSetup/main.cpp
+
0
−
90
View file @
7ba1afb0
#include
<QApplication>
#include
"mainwindow.h"
...
...
@@ -10,91 +8,3 @@ int main(int argc, char *argv[])
main
.
show
();
return
app
.
exec
();
}
/*
#include <QApplication>
#include "monitorgui.h"
#include "camerafocus.h"
#include "croppingmask.h"
#include "projectiongui.h"
#include "qtfullscreen.h"
#include "beamerlocationgui.h"
#include <sandboxSetup.h>
void exit_msg(SandboxSetup *setup, std::string msg){
setup->getCamera()->stop();
std::cout << msg << std::endl;
exit(1);
}
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
SandboxSetup setup;
MonitorGui mg;
ProjectionGui pg(&setup, &mg);
CameraFocus cf(&setup);
CroppingMask cm(&setup, &mg);
BeamerLocationGui bl(&setup, &mg);
setup.getCamera()->start();
// Select output screen and projection's resolutions
mg.show();
app.exec();
if(!mg.isOk()){
exit_msg(&setup, "Cancel resolution");
}
setup.getBeamer()->setResolution(cv::Size(mg.getWidth(), mg.getHeight()));
// Setup camera and beamer physically
pg.show();
app.exec();
// Edit frame process profil for the setupBeamerLocation routine
cf.show();
app.exec();
if(!cf.isOk()){
exit_msg(&setup, "Cancel camera parameters");
}
// Setup the adjust matrix and cropping mask
cm.show();
app.exec();
if(!cm.isOk()){
exit_msg(&setup, "Cancel drop");
}
if(cm.updated()){
cv::Size s = setup.getCamera()->getDepthFrame().size();
cv::Point center(s.width / 2, s.height / 2);
std::vector<cv::Point> rectPoints = cm.getRectPoints();
setup.setupAdjustMatrix(rectPoints, center);
setup.setupCroppingMask(rectPoints);
}
// Setup the beamer location
bl.show();
app.exec();
if(!bl.endedSuccessfully()){
exit_msg(&setup, "Cancel beamer position");
}
// Save config in file
if(setup.saveConfig()){
exit_msg(&setup, "Failed to save configuration");
}
setup.getCamera()->stop();
return 0;
}
*/
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