24cdb6bcb68b58f93727f559873d2b2eb9a77885
[occt.git] / samples / mfc / standard / Common / OCC_2dView.h
1 // OCC_2dView.h: interface for the OCC_2dView class.
2 //
3 //////////////////////////////////////////////////////////////////////
4
5 #if !defined(AFX_OCC_2dVIEW_H__2E048CC9_38F9_11D7_8611_0060B0EE281E__INCLUDED_)
6 #define AFX_OCC_2dVIEW_H__2E048CC9_38F9_11D7_8611_0060B0EE281E__INCLUDED_
7
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
11
12 #include "OCC_BaseView.h"
13 #include "OCC_2dDoc.h"
14 #include "Resource2d/RectangularGrid.h"
15 #include "Resource2d/CircularGrid.h"
16
17 class Standard_EXPORT OCC_2dView : public OCC_BaseView  
18 {
19   DECLARE_DYNCREATE(OCC_2dView)
20
21 public:
22
23   OCC_2dView();
24
25   virtual ~OCC_2dView();
26
27   OCC_2dDoc* GetDocument();
28
29 // Overrides
30   // ClassWizard generated virtual function overrides
31   //{{AFX_VIRTUAL(OCC_2dView)
32 protected:
33   virtual void OnInitialUpdate(); // called first time after construct
34     //}}AFX_VIRTUAL
35
36 #ifdef _DEBUG
37   virtual void AssertValid() const;
38   virtual void Dump(CDumpContext& dc) const;
39 #endif
40
41 protected:
42
43 // Generated message map functions
44 protected:
45   //{{AFX_MSG(OCC_2dView)
46     // NOTE - the ClassWizard will add and remove member functions here.
47     //    DO NOT EDIT what you see in these blocks of generated code !
48   afx_msg void OnFileExportImage();
49   afx_msg void OnBUTTONGridRectLines();
50   afx_msg void OnBUTTONGridRectPoints();
51   afx_msg void OnBUTTONGridCircLines();
52   afx_msg void OnBUTTONGridCircPoints();
53   afx_msg void OnBUTTONGridValues();
54   afx_msg void OnUpdateBUTTONGridValues(CCmdUI* pCmdUI);
55   afx_msg void OnBUTTONGridCancel();
56   afx_msg void OnUpdateBUTTONGridCancel(CCmdUI* pCmdUI);
57   afx_msg void OnSize(UINT nType, int cx, int cy);
58   afx_msg void OnBUTTONFitAll();
59   afx_msg void OnBUTTONGlobPanning();
60   afx_msg void OnBUTTONPanning();
61   afx_msg void OnBUTTONZoomProg();
62   afx_msg void OnBUTTONZoomWin();
63   afx_msg void OnUpdateBUTTON2DGlobPanning(CCmdUI* pCmdUI);
64   afx_msg void OnUpdateBUTTON2DPanning(CCmdUI* pCmdUI);
65   afx_msg void OnUpdateBUTTON2DZoomProg(CCmdUI* pCmdUI);
66   afx_msg void OnUpdateBUTTON2DZoomWin(CCmdUI* pCmdUI);
67   afx_msg void OnChangeBackground();
68   //}}AFX_MSG
69   DECLARE_MESSAGE_MAP()
70
71 protected:
72   CRectangularGrid TheRectangularGridDialog;
73   CCircularGrid    TheCircularGridDialog;
74 };
75
76 #ifndef _DEBUG  // debug version in 2DDisplayView.cpp
77 inline OCC_2dDoc* OCC_2dView::GetDocument()
78    { return (OCC_2dDoc*)m_pDocument; }
79 #endif
80
81 #endif // !defined(AFX_OCC_2dVIEW_H__2E048CC9_38F9_11D7_8611_0060B0EE281E__INCLUDED_)