From dc0701ce9164c6496b85476b64f3033538d51e77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Pe=C3=B1aranda?= Date: Fri, 11 Oct 2013 14:27:43 -0300 Subject: [PATCH] improved look for the video -resized interface, so as to have a 1280x720 window -changed the word 'Naive' to 'Simple' -swapped positions of the pop-down menus -made LED digits more visible --- openglcanvas.cpp | 4 +- panowindow1.ui | 212 ++++++++++++++++++++++++----------------------- 2 files changed, 111 insertions(+), 105 deletions(-) diff --git a/openglcanvas.cpp b/openglcanvas.cpp index a2326e1..47d5a0e 100644 --- a/openglcanvas.cpp +++ b/openglcanvas.cpp @@ -37,7 +37,7 @@ OpenGLCanvas::OpenGLCanvas(QWidget *parent) : scale = 1.0f; center_lambda = 0.f; center_phi = 0.f; - fov_scale_relation = "Naive"; + fov_scale_relation = "Simple"; visualization = "Moebius"; auto_fov_max=false; shrink_for_all=false; @@ -606,7 +606,7 @@ void OpenGLCanvas::compute_scale(){ //else if (fov>295.f) // scale = 0.02f; // TODO: check this value wrt fov_max }else{ - if(fov_scale_relation == "Naive") + if(fov_scale_relation == "Simple") scale=fov_max/fov; else if(fov_scale_relation == "Square Root") scale=sqrtf((360.f-fov_max-fov)/(360.f-2.f*fov_max)); diff --git a/panowindow1.ui b/panowindow1.ui index 3206d50..1e01796 100644 --- a/panowindow1.ui +++ b/panowindow1.ui @@ -6,8 +6,8 @@ 0 0 - 650 - 500 + 1278 + 691 @@ -19,10 +19,23 @@ - - + + - Visualization + FOV + + + + + + + QFrame::NoFrame + + + 3 + + + QLCDNumber::Flat @@ -34,29 +47,13 @@ - + - FOV-Scale Relation - - - - - - - - 0 - 0 - - - - - 0 - 0 - + Visualization - + false @@ -66,7 +63,7 @@ - Naive + Simple @@ -96,6 +93,50 @@ + + + + + Moebius + + + + + 3D Sphere + + + + + Equi-Rectangular + + + + + Perspective + + + + + Stereographic + + + + + Orthographic + + + + + Mercator + + + + + Zorin-Barr + + + + @@ -118,27 +159,33 @@ - - + + + + true + + + + 0 + 0 + + - Input Image + Auto FOV max - - - - QFrame::NoFrame - - - 3 + + + + Shrink computation - - + + - Close + FOV max @@ -158,6 +205,13 @@ + + + + Input Image + + + @@ -166,86 +220,38 @@ 3 + + QLCDNumber::Flat + - - + + - FOV + Shrink all - - - - - Moebius - - - - - 3D Sphere - - - - - Equi-Rectangular - - - - - Perspective - - - - - Stereographic - - - - - Orthographic - - - - - Mercator - - - - - Zorin-Barr - - - - - - + + - FOV max + Close - - - - true - + + - + 0 0 - - Auto FOV max - - - - - - - Shrink all + + + 0 + 0 + -- GitLab