MEPP2 Project
DialogJnd1.cpp
Go to the documentation of this file.
1 // Copyright (c) 2012-2019 University of Lyon and CNRS (France).
2 // All rights reserved.
3 //
4 // This file is part of MEPP2; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published
6 // by the Free Software Foundation; either version 3 of the License,
7 // or (at your option) any later version.
8 //
9 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
10 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11 #include "DialogJnd1.h"
12 #include "ui_DialogJnd1.h"
13 #include <cmath> // M_PI
16  : BasePluginDialogQt(parent), ui(new Ui::DialogJnd1)
17 {
18  ui->setupUi(this);
19 
20  ui->verticalLayout->addWidget(helpButton, 0, Qt::AlignRight);
21  QObject::connect( helpButton, SIGNAL(clicked(bool)), this, SLOT(onHelpTriggered()) );
22 
23  // ---
24 
25  link = "https://liris.cnrs.fr/mepp/doc/nightly/_filter_j_n_d.html";
26 }
30 void
32  int &screenW,
33  double &screenS,
34  int &sceneH,
35  double &sceneFov,
36  double &userD,
37  int &nbLights,
38  float &log_disp,
39  bool &use_log,
40  bool &force_jnd)
41 {
42  screenH = ui->spinBox_screenH->value();
43  screenW = ui->spinBox_screenW->value();
44  screenS = ui->doubleSpinBox_screenS->value();
45  sceneH = ui->spinBox_sceneH->value();
46  sceneFov = M_PI * ui->doubleSpinBox_sceneFOV->value();
47  userD = ui->doubleSpinBox_userDist->value();
48  nbLights = ui->spinBox_nbLights->value();
49  use_log = ui->checkBox_log->isChecked();
50  force_jnd = ui->checkBox_force->isChecked();
51  log_disp = ui->doubleSpinBox_logD->value();
52 }
FEVV::DialogJnd1::getProcess
void getProcess(int &screenH, int &screenW, double &screenS, int &sceneH, double &sceneFov, double &userD, int &nbLights, float &log_disp, bool &use_log, bool &force_jnd)
Definition: DialogJnd1.cpp:31
FEVV::BasePluginDialogQt::helpButton
QPushButton * helpButton
Definition: BasePluginDialogQt.h:61
FEVV::DialogJnd1::~DialogJnd1
~DialogJnd1()
Definition: DialogJnd1.cpp:28
FEVV::BasePluginDialogQt::link
QString link
Definition: BasePluginDialogQt.h:63
FEVV::DialogJnd1::ui
Ui::DialogJnd1 * ui
Definition: DialogJnd1.h:45
FEVV::DialogJnd1
Definition: DialogJnd1.h:23
FEVV::DialogJnd1::DialogJnd1
DialogJnd1(QWidget *parent=0)
Definition: DialogJnd1.cpp:15
Ui
Definition: DialogBooleanOperations1.h:17
FEVV::BasePluginDialogQt
This class is intended to provide a help message to plugins dialogs.
Definition: BasePluginDialogQt.h:29
DialogJnd1.h
FEVV::DialogJnd1::onHelpTriggered
void onHelpTriggered()
Definition: DialogJnd1.h:42