ccFilterByValueDlg.cpp 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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: Daniel Girardeau-Montaut #
  15. //# #
  16. //##########################################################################
  17. #include "ccFilterByValueDlg.h"
  18. ccFilterByValueDlg::ccFilterByValueDlg( double minRange,
  19. double maxRange,
  20. double minVal/*=-1.0e9*/,
  21. double maxVal/*=1.0e9*/,
  22. QWidget* parent/*=nullptr*/)
  23. : QDialog(parent, Qt::Tool)
  24. , Ui::FilterByValueDialog()
  25. , m_mode(CANCEL)
  26. {
  27. setupUi(this);
  28. minDoubleSpinBox->setRange(minVal, maxVal);
  29. maxDoubleSpinBox->setRange(minVal, maxVal);
  30. minDoubleSpinBox->setValue(minRange);
  31. maxDoubleSpinBox->setValue(maxRange);
  32. connect(exportPushButton, &QAbstractButton::clicked, this, &ccFilterByValueDlg::onExport);
  33. connect(splitPushButton, &QAbstractButton::clicked, this, &ccFilterByValueDlg::onSplit);
  34. }