MEPP2 Project
DialogScaling1.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 "DialogScaling1.h"
12 #include "ui_DialogScaling1.h"
15  : BasePluginDialogQt(parent), ui(new Ui::DialogScaling1)
16 {
17  ui->setupUi(this);
18 
19  ui->verticalLayout->addWidget(helpButton, 0, Qt::AlignRight);
20  QObject::connect( helpButton, SIGNAL(clicked(bool)), this, SLOT(onHelpTriggered()) );
21 
22  // ---
23 
24  link = "https://liris.cnrs.fr/mepp/doc/nightly/_filter_scaling.html";
25 }
29 void
30 FEVV::DialogScaling1::setScale(double x, double y, double z)
31 {
32  ui->lineEdit_X->setText(QString::number(x));
33  ui->lineEdit_Y->setText(QString::number(y));
34  ui->lineEdit_Z->setText(QString::number(z));
35 }
37 void
38 FEVV::DialogScaling1::getScale(double &x, double &y, double &z)
39 {
40  x = ui->lineEdit_X->text().toDouble();
41  y = ui->lineEdit_Y->text().toDouble();
42  z = ui->lineEdit_Z->text().toDouble();
43 }
FEVV::DialogScaling1::DialogScaling1
DialogScaling1(QWidget *parent=0)
Definition: DialogScaling1.cpp:14
FEVV::DialogScaling1::setScale
void setScale(double x, double y, double z)
Definition: DialogScaling1.cpp:30
FEVV::DialogScaling1::onHelpTriggered
void onHelpTriggered()
Definition: DialogScaling1.h:34
FEVV::DialogScaling1::ui
Ui::DialogScaling1 * ui
Definition: DialogScaling1.h:37
FEVV::BasePluginDialogQt::helpButton
QPushButton * helpButton
Definition: BasePluginDialogQt.h:61
FEVV::BasePluginDialogQt::link
QString link
Definition: BasePluginDialogQt.h:63
DialogScaling1.h
Ui
Definition: DialogBooleanOperations1.h:17
FEVV::DialogScaling1
Definition: DialogScaling1.h:23
FEVV::DialogScaling1::~DialogScaling1
~DialogScaling1()
Definition: DialogScaling1.cpp:27
FEVV::BasePluginDialogQt
This class is intended to provide a help message to plugins dialogs.
Definition: BasePluginDialogQt.h:29
FEVV::DialogScaling1::getScale
void getScale(double &x, double &y, double &z)
Definition: DialogScaling1.cpp:38