0031431: Visualization, PrsMgr_PresentableObject - simplify HLR computing interface
[occt.git] / samples / mfc / standard / 04_Viewer3d / src / ModelClippingDlg.h
1 #if !defined(AFX_MODELCLIPPINGDLG_H__E206D99D_646E_11D3_8D0A_00AA00D10994__INCLUDED_)
2 #define AFX_MODELCLIPPINGDLG_H__E206D99D_646E_11D3_8D0A_00AA00D10994__INCLUDED_
3
4 #if _MSC_VER >= 1000
5 #pragma once
6 #endif // _MSC_VER >= 1000
7 // ModelClippingDlg.h : header file
8 //
9
10 /////////////////////////////////////////////////////////////////////////////
11 // CModelClippingDlg dialog
12 #include "Viewer3dDoc.h"
13
14 #include <Graphic3d_ClipPlane.hxx>
15
16 class CModelClippingDlg : public CDialog
17 {
18 public:
19
20   //! Standard constructor.
21   CModelClippingDlg (Handle(V3d_View)            theView,
22                      Handle(AIS_Shape)           theShape,
23                      Handle(Graphic3d_ClipPlane) theClippingPlane,
24                      CViewer3dDoc*               theDoc,
25                      CWnd*                       theParent = NULL);
26
27 // Dialog Data
28         //{{AFX_DATA(CModelClippingDlg)
29         enum { IDD = IDD_MODELCLIPPING };
30         CSliderCtrl     m_ModelClippingZSlidCtrl;
31         double  m_ModelClipping_Z;
32         BOOL    m_ModelClippingONOFF;
33         //}}AFX_DATA
34
35
36 // Overrides
37         // ClassWizard generated virtual function overrides
38         //{{AFX_VIRTUAL(CModelClippingDlg)
39         protected:
40         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
41         //}}AFX_VIRTUAL
42
43 // Implementation
44 protected:
45
46         // Generated message map functions
47         //{{AFX_MSG(CModelClippingDlg)
48         afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
49         virtual BOOL OnInitDialog();
50         afx_msg void OnChangeEditModelclippingZ();
51         afx_msg void OnCheckModelclippingonoff();
52         virtual void OnCancel();
53         virtual void OnOK();
54         //}}AFX_MSG
55         DECLARE_MESSAGE_MAP()
56
57 private:
58   Handle(V3d_View)            myView;
59   Handle(AIS_Shape)           myShape;
60   Handle(Graphic3d_ClipPlane) myClippingPlane;
61   CViewer3dDoc*               myDoc;
62   double                      myModelClipping_Z;
63 };
64
65 //{{AFX_INSERT_LOCATION}}
66 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
67
68 #endif // !defined(AFX_MODELCLIPPINGDLG_H__E206D99D_646E_11D3_8D0A_00AA00D10994__INCLUDED_)