ccOrthoSectionGenerationDlg.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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_ORTHO_SECTION_GENERATION_DIALOG_HEADER
  18. #define CC_ORTHO_SECTION_GENERATION_DIALOG_HEADER
  19. //Qt
  20. #include <QDialog>
  21. #include <ui_orthoSectionGenerationDlg.h>
  22. //! Dialog for generating orthogonal sections along a path (Section Extraction Tool)
  23. class ccOrthoSectionGenerationDlg : public QDialog, public Ui::OrthoSectionGenerationDlg
  24. {
  25. Q_OBJECT
  26. public:
  27. //! Default constructor
  28. explicit ccOrthoSectionGenerationDlg(QWidget* parent = nullptr);
  29. //! Sets the path legnth
  30. void setPathLength(double l);
  31. //! Sets whether the generatrix should be automatically saved and removed
  32. void setAutoSaveAndRemove(bool state);
  33. //! Returns whether the generatrix should be automatically saved and removed
  34. bool autoSaveAndRemove() const;
  35. //! Sets the generation step
  36. void setGenerationStep(double s);
  37. //! Sets he sections width
  38. void setSectionsWidth(double w);
  39. //! Returns the generation step
  40. double getGenerationStep() const;
  41. //! Returns the sections width
  42. double getSectionsWidth() const;
  43. protected:
  44. void onStepChanged(double);
  45. protected:
  46. //! Path length
  47. double m_pathLength;
  48. };
  49. #endif // CC_ORTHO_SECTION_GENERATION_DIALOG_HEADER