ccSORFilterDlg.cpp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //##########################################################################
  2. //# #
  3. //# CLOUDCOMPARE #
  4. //# #
  5. //# This program is free software; you can redistribute it and/or modify #
  6. //# it under the terms of the GNU General Public License as published by #
  7. //# the Free Software Foundation; version 2 or later of the License. #
  8. //# #
  9. //# This program is distributed in the hope that it will be useful, #
  10. //# but WITHOUT ANY WARRANTY; without even the implied warranty of #
  11. //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
  12. //# GNU General Public License for more details. #
  13. //# #
  14. //# COPYRIGHT: EDF R&D / TELECOM ParisTech (ENST-TSI) #
  15. //# #
  16. //##########################################################################
  17. #include "ccSORFilterDlg.h"
  18. #include "ui_sorFilterDlg.h"
  19. ccSORFilterDlg::ccSORFilterDlg(QWidget* parent/*=nullptr*/)
  20. : QDialog(parent, Qt::Tool)
  21. , m_ui( new Ui::SorFilterDialog )
  22. {
  23. m_ui->setupUi(this);
  24. }
  25. ccSORFilterDlg::~ccSORFilterDlg()
  26. {
  27. delete m_ui;
  28. }
  29. int ccSORFilterDlg::KNN() const
  30. {
  31. return m_ui->knnSpinBox->value();
  32. }
  33. void ccSORFilterDlg::setKNN(int knn)
  34. {
  35. m_ui->knnSpinBox->setValue( knn );
  36. }
  37. double ccSORFilterDlg::nSigma() const
  38. {
  39. return m_ui->nSigmaDoubleSpinBox->value();
  40. }
  41. void ccSORFilterDlg::setNSigma(double nSigma)
  42. {
  43. m_ui->nSigmaDoubleSpinBox->setValue( nSigma );
  44. }