MEPP2 Project
point_cloud_curvature_dialog.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.
12 #include "ui_point_cloud_curvature_dialog.h"
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_point_cloud_curvature.html";
25 }
29 void
30 FEVV::PointCloudCurvatureDialog::setParameters(unsigned int k, double radius, bool knn_search)
31 {
32  ui->lineEdit_K->setText(QString::number(k));
33  ui->lineEdit_Radius->setText(QString::number(radius));
34  if(knn_search)
35  ui->radioButton_knnsearch->setChecked(true);
36  else
37  ui->radioButton_radiussearch->setChecked(true);
38 }
40 void
41 FEVV::PointCloudCurvatureDialog::getParameters(unsigned int &k, double &radius, bool &knn_search)
42 {
43  k = ui->lineEdit_K->text().toUInt();
44  radius = ui->lineEdit_Radius->text().toDouble();
45  knn_search = ui->radioButton_knnsearch->isChecked();
46 }
FEVV::PointCloudCurvatureDialog::PointCloudCurvatureDialog
PointCloudCurvatureDialog(QWidget *parent=0)
Definition: point_cloud_curvature_dialog.cpp:14
FEVV::PointCloudCurvatureDialog::~PointCloudCurvatureDialog
~PointCloudCurvatureDialog()
Definition: point_cloud_curvature_dialog.cpp:27
FEVV::BasePluginDialogQt::helpButton
QPushButton * helpButton
Definition: BasePluginDialogQt.h:61
FEVV::BasePluginDialogQt::link
QString link
Definition: BasePluginDialogQt.h:63
FEVV::PointCloudCurvatureDialog::ui
Ui::PointCloudCurvatureDialog * ui
Definition: point_cloud_curvature_dialog.h:37
point_cloud_curvature_dialog.h
Ui
Definition: DialogBooleanOperations1.h:17
FEVV::PointCloudCurvatureDialog::setParameters
void setParameters(unsigned int k, double radius, bool knn_search)
Definition: point_cloud_curvature_dialog.cpp:30
FEVV::PointCloudCurvatureDialog
Definition: point_cloud_curvature_dialog.h:23
FEVV::PointCloudCurvatureDialog::getParameters
void getParameters(unsigned int &k, double &radius, bool &knn_search)
Definition: point_cloud_curvature_dialog.cpp:41
FEVV::BasePluginDialogQt
This class is intended to provide a help message to plugins dialogs.
Definition: BasePluginDialogQt.h:29
FEVV::PointCloudCurvatureDialog::onHelpTriggered
void onHelpTriggered()
Definition: point_cloud_curvature_dialog.h:34