1 // OCC_2dView.h: interface for the OCC_2dView class.
3 //////////////////////////////////////////////////////////////////////
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_
10 #endif // _MSC_VER > 1000
12 #include "OCC_BaseView.h"
13 #include "OCC_2dDoc.h"
14 #include "Resource2d/RectangularGrid.h"
15 #include "Resource2d/CircularGrid.h"
17 class Standard_EXPORT OCC_2dView : public OCC_BaseView
19 DECLARE_DYNCREATE(OCC_2dView)
25 virtual ~OCC_2dView();
27 OCC_2dDoc* GetDocument();
30 // ClassWizard generated virtual function overrides
31 //{{AFX_VIRTUAL(OCC_2dView)
33 virtual void OnInitialUpdate(); // called first time after construct
37 virtual void AssertValid() const;
38 virtual void Dump(CDumpContext& dc) const;
43 // Generated message map functions
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();
72 CRectangularGrid TheRectangularGridDialog;
73 CCircularGrid TheCircularGridDialog;
76 #ifndef _DEBUG // debug version in 2DDisplayView.cpp
77 inline OCC_2dDoc* OCC_2dView::GetDocument()
78 { return (OCC_2dDoc*)m_pDocument; }
81 #endif // !defined(AFX_OCC_2dVIEW_H__2E048CC9_38F9_11D7_8611_0060B0EE281E__INCLUDED_)