Commit a8d3155a by Luis Peñaranda

added controls for Zorin-Barr transformation

Only when using the compilation flag PANO_EXTENDED_CONTROLS. It is not
yet working, it remains to implement in the vertex shader.
1 parent 032ed1ab
......@@ -96,6 +96,18 @@ void OpenGLCanvas::change_fov_max(int new_fov_max){
updateGL();
}
void OpenGLCanvas::change_zb_lambda(int new_zb_lambda){
zblambda=(float)new_zb_lambda/1000;
fprintf(stderr,"zb_lambda=%f\n",zblambda);
updateGL();
}
void OpenGLCanvas::change_zb_R(int new_zb_R){
zbR=(float)new_zb_R/1000;
fprintf(stderr,"zb_R=%f\n",zbR);
updateGL();
}
//void OpenGLCanvas::change_scale(double s){
// if (scale!=s && s>=0.0 && s<=1.0) scale = s;
......
......@@ -53,6 +53,8 @@ public slots:
void change_fov(double f);
void change_fov(int new_fov);
void change_fov_max(int new_fov_max);
void change_zb_lambda(int new_zb_lambda);
void change_zb_R(int new_zb_R);
// void change_scale(double s);
void change_center_lambda(double lambda);
void change_center_phi(double phi);
......
......@@ -6,6 +6,9 @@
QT += core gui opengl
# uncomment to show in the main window controls for other methods
DEFINES += PANO_EXTENDED_CONTROLS
# compiler specific settings
darwin-g++*|macx-g++*|linux-g++*|win32-g++*|cygwin-g++* {
QMAKE_CXXFLAGS += -ansi -pedantic -Wno-long-long
......@@ -75,7 +78,8 @@ HEADERS += panowindow1.h \
image_read.h \
files.h
FORMS += panowindow1.ui
FORMS += panowindow1.ui \
extended_controls.ui
OTHER_FILES += \
shaders/fragment_shader.frag \
......
#include "panowindow1.h"
#ifdef PANO_EXTENDED_CONTROLS
#include "ui_extended_controls.h"
#else
#include "ui_panowindow1.h"
#endif
PanoWindow1::PanoWindow1(QWidget *parent) :
QWidget(parent),
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!