ccFilterByValueDlg.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. #ifndef CC_FILTER_BY_VALUE_DIALOG_HEADER
  18. #define CC_FILTER_BY_VALUE_DIALOG_HEADER
  19. #include <ui_filterByValueDlg.h>
  20. //Qt
  21. #include <QDialog>
  22. //! Dialog to sepcify a range of SF values and how the corresponding points should be extracted
  23. class ccFilterByValueDlg : public QDialog, public Ui::FilterByValueDialog
  24. {
  25. Q_OBJECT
  26. public:
  27. //! Default constructor
  28. ccFilterByValueDlg( double minRange,
  29. double maxRange,
  30. double minVal = -1.0e9,
  31. double maxVal = 1.0e9,
  32. QWidget* parent = nullptr);
  33. //! Mode
  34. enum Mode { EXPORT, SPLIT, CANCEL };
  35. //! Returns the selected mode
  36. Mode mode() const { return m_mode; }
  37. protected:
  38. void onExport() { m_mode = EXPORT; accept(); }
  39. void onSplit() { m_mode = SPLIT; accept(); }
  40. protected:
  41. Mode m_mode;
  42. };
  43. #endif //CC_FILTER_BY_VALUE_DIALOG_HEADER