ccAdjustZoomDlg.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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_ADJUST_ZOOM_DIALOG_HEADER
  18. #define CC_ADJUST_ZOOM_DIALOG_HEADER
  19. #include <QDialog>
  20. #include <ui_adjustZoomDlg.h>
  21. class ccGLWindowInterface;
  22. //! Dialog to set the current focal of a 3D view (or equivalently the pixel size)
  23. /** Orthographic mode only.
  24. **/
  25. class ccAdjustZoomDlg: public QDialog, public Ui::AdjustZoomDialog
  26. {
  27. Q_OBJECT
  28. public:
  29. ccAdjustZoomDlg(ccGLWindowInterface* win, QWidget* parent = nullptr);
  30. virtual ~ccAdjustZoomDlg() = default;
  31. //! Returns requested focal distance
  32. double getFocalDistance() const;
  33. protected Q_SLOTS:
  34. void onFocalChanged(double);
  35. void onPixelSizeChanged(double);
  36. void onPixelCountChanged(int);
  37. protected:
  38. int m_windowWidth_pix;
  39. double m_distanceToWidthRatio;
  40. };
  41. #endif // CC_ADJUST_ZOOM_DIALOG_HEADER