ccSmoothPolylineDlg.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #pragma once
  2. //##########################################################################
  3. //# #
  4. //# CLOUDCOMPARE #
  5. //# #
  6. //# This program is free software; you can redistribute it and/or modify #
  7. //# it under the terms of the GNU General Public License as published by #
  8. //# the Free Software Foundation; version 2 or later of the License. #
  9. //# #
  10. //# This program is distributed in the hope that it will be useful, #
  11. //# but WITHOUT ANY WARRANTY; without even the implied warranty of #
  12. //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
  13. //# GNU General Public License for more details. #
  14. //# #
  15. //# COPYRIGHT: CloudCompare project #
  16. //# #
  17. //##########################################################################
  18. //qCC_db
  19. #include <ccHObject.h>
  20. //Qt
  21. #include <QDialog>
  22. class Ui_SmoothPolylineDialog;
  23. //! Dialog to smooth a polyline (Chaikin algorithm)
  24. class ccSmoothPolylineDialog : public QDialog
  25. {
  26. public:
  27. //! Default constructor
  28. ccSmoothPolylineDialog(QWidget* parent = nullptr);
  29. //! Destructor
  30. virtual ~ccSmoothPolylineDialog();
  31. //! Sets the number of iterations
  32. void setIerationCount(int count);
  33. //! Sets the smoothing ratio
  34. void setRatio(double ratio);
  35. //! Returns the number of iterations
  36. int getIerationCount() const;
  37. //! Returns the smoothing ratio
  38. double getRatio() const;
  39. protected:
  40. //! Associated ui
  41. Ui_SmoothPolylineDialog* m_ui;
  42. };