From e6fa883b9433a4807bc07e50274421fbfd20128f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Pe=C3=B1aranda?= Date: Fri, 25 Jan 2013 15:49:07 -0200 Subject: [PATCH] display for fov and fov_max --- openglcanvas.cpp | 6 +- panowindow1.ui | 204 +++++++++++++++++++++++++++++++++-------------- 2 files changed, 148 insertions(+), 62 deletions(-) diff --git a/openglcanvas.cpp b/openglcanvas.cpp index b05e166..6fa0b0b 100644 --- a/openglcanvas.cpp +++ b/openglcanvas.cpp @@ -218,6 +218,8 @@ void OpenGLCanvas::read_config_file(){ } fclose(rcfile); } + emit fov_changed((int)fov); + emit max_fov_changed((int)fov_max); } void OpenGLCanvas::load_image(const char *new_image){ @@ -732,8 +734,8 @@ void OpenGLCanvas::paintGL(){ time_fps = time_frames/dt; time_frames = 0; time_time.reset(); - //emit fps(QString("%1 fps").arg((int)(time_fps+0.5))); - printf("fps = %d ", (int)(time_fps+0.5)); + emit fps(QString("%1 fps").arg((int)(time_fps+0.5))); + //printf("fps = %d ", (int)(time_fps+0.5)); // } // } diff --git a/panowindow1.ui b/panowindow1.ui index 9f8ba6e..fabd3c6 100644 --- a/panowindow1.ui +++ b/panowindow1.ui @@ -14,10 +14,47 @@ PanoWindow1 + + + + Visualization + + + - + - Close + Re-center + + + + + + + FOV-Scale Relation + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + + + + FOV max @@ -61,19 +98,25 @@ - - - - - 0 - 0 - + + + + 1 - - - 0 - 0 - + + 359 + + + 60 + + + Qt::Vertical + + + QSlider::NoTicks + + + 10 @@ -96,49 +139,31 @@ - + Input Image - - - - Visualization + + + + QFrame::NoFrame - - - - - - FOV-Scale Relation + + 3 - - - - Re-center - - - - - - - FOV max - - - - - + + - FOV + Close - + 1 @@ -154,25 +179,20 @@ - - - - 1 + + + + QFrame::NoFrame - - 359 + + 3 - - 60 - - - Qt::Vertical - - - QSlider::NoTicks - - - 10 + + + + + + FOV @@ -347,5 +367,69 @@ + + changefov + valueChanged(int) + fovled + display(int) + + + 606 + 245 + + + 606 + 380 + + + + + changefovmax + valueChanged(int) + fovmaxled + display(int) + + + 532 + 248 + + + 532 + 380 + + + + + GLCanvas + fov_changed(int) + fovled + display(int) + + + 250 + 249 + + + 606 + 197 + + + + + GLCanvas + max_fov_changed(int) + fovmaxled + display(int) + + + 250 + 249 + + + 532 + 197 + + + -- GitLab