ccMatchScalesDlg.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. #ifndef CC_MATCH_SCALES_DIALOG_HEADER
  18. #define CC_MATCH_SCALES_DIALOG_HEADER
  19. #include <ui_matchScalesDlg.h>
  20. //Local
  21. #include "ccLibAlgorithms.h"
  22. //! Scales matching tool dialog
  23. class ccMatchScalesDlg : public QDialog, public Ui::MatchScalesDialog
  24. {
  25. Q_OBJECT
  26. public:
  27. //! Default constructor
  28. ccMatchScalesDlg( const ccHObject::Container& entities,
  29. int defaultSelectedIndex = 0,
  30. QWidget* parent = nullptr);
  31. //! Returns selected index
  32. int getSelectedIndex() const;
  33. //! Sets the selected matching algorithm
  34. void setSelectedAlgorithm(ccLibAlgorithms::ScaleMatchingAlgorithm algorithm);
  35. //! Returns the selected matching algorithm
  36. ccLibAlgorithms::ScaleMatchingAlgorithm getSelectedAlgorithm() const;
  37. };
  38. #endif //CC_ENTITY_PICKER_DIALOG_HEADER