0024001: Stereographic rendering support
[occt.git] / samples / mfc / standard / Common / OCC_StereoConfigDlg.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // OCC_StereoConfigDlg.h : header file
3 ///////////////////////////////////////////////////////////////////////////////
4
5 #ifndef OCC_StereoConfigDlg_Header
6 #define OCC_StereoConfigDlg_Header
7
8 #if _MSC_VER >= 1000
9 #pragma once
10 #endif // _MSC_VER >= 1000
11
12 #include "res\OCC_Resource.h"
13 #include <V3d_View.hxx>
14
15 // Dialog to dynamically configure 3D Viewer stereo
16 // projection properties.
17 class AFX_EXT_CLASS OCC_StereoConfigDlg : public CDialog
18 {
19 public:
20
21   OCC_StereoConfigDlg (CWnd* theParent = NULL)
22     : CDialog (IDD_DIALOG_STEREO, theParent) {}
23
24   void SetView (const Handle(V3d_View)& theView);
25
26 protected:
27
28   virtual void DoDataExchange (CDataExchange* theDX);
29
30   void UpdateCamera();
31
32 // Implementation
33 protected:
34
35   afx_msg void OnCheckFocus();
36   afx_msg void OnCheckIOD();
37   afx_msg void OnChangeFocus();
38   afx_msg void OnChangeIOD();
39   afx_msg void OnSpinFocus (NMHDR* theNMHDR, LRESULT* theResult);
40   afx_msg void OnSpinIOD (NMHDR* theNMHDR, LRESULT* theResult);
41   afx_msg void OnHScroll(UINT theSBCode, UINT thePos, CScrollBar* theScrollBar);
42
43   DECLARE_MESSAGE_MAP()
44
45 private:
46
47   Standard_Real myIOD;
48   Standard_Real myFocus;
49   Standard_Integer mySliderFocus;
50   Standard_Boolean myIsRelativeIOD;
51   Standard_Boolean myIsRelativeFocus;
52   Handle(V3d_View) myView;
53 };
54
55 #endif