ccLabelingDlg.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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: EDF R&D / TELECOM ParisTech (ENST-TSI) #
  16. //# #
  17. //##########################################################################
  18. #include <ui_labelingDlg.h>
  19. //! Dialog to define connected components labelinng parameters
  20. class ccLabelingDlg : public QDialog, public Ui::LabelingDialog
  21. {
  22. Q_OBJECT
  23. public:
  24. //! Default constructor
  25. explicit ccLabelingDlg(QWidget* parent = nullptr);
  26. //! Returns octree level (defines grid step)
  27. int getOctreeLevel();
  28. //! Returns min number of points per extracted CC
  29. int getMinPointsNb();
  30. //! Specifies whether each extracted CC should get a random color
  31. bool randomColors();
  32. //! Sets the octree level (defines grid step)
  33. void setOctreeLevel(int octreeLevel);
  34. //! Sets the min number of points per extracted CC
  35. void setMinPointsNb(int minPointsNb);
  36. //! Specifies whether each extracted CC should get a random color
  37. void setRandomColors(bool state);
  38. };