ccStereoModeDlg.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 "CCAppCommon.h"
  19. //qCC_gl
  20. #include <ccGLWindowInterface.h>
  21. //Qt
  22. #include <QDialog>
  23. namespace Ui
  24. {
  25. class StereoModeDialog;
  26. }
  27. //! Dialog to define the parameters of the stereo mode (for 3D views)
  28. class CCAPPCOMMON_LIB_API ccStereoModeDlg : public QDialog
  29. {
  30. Q_OBJECT
  31. public:
  32. //! Default constructor
  33. explicit ccStereoModeDlg(QWidget* parent);
  34. ~ccStereoModeDlg() override;
  35. //! Returns the current parameters
  36. ccGLWindowInterface::StereoParams getParameters() const;
  37. //! Sets the current parameters
  38. void setParameters(const ccGLWindowInterface::StereoParams& params);
  39. //! Returns whether the FOV should be updated or not
  40. bool updateFOV() const;
  41. protected:
  42. //! Slot called when the glass type is modified
  43. void glassTypeChanged(int);
  44. private:
  45. Ui::StereoModeDialog* m_ui;
  46. };