7fd59977 |
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 | |
0553a8ea |
17 | class Standard_EXPORT OCC_2dView : public OCC_BaseView |
5c1f974e |
18 | { |
19 | DECLARE_DYNCREATE(OCC_2dView) |
20 | |
7fd59977 |
21 | public: |
7fd59977 |
22 | |
5c1f974e |
23 | OCC_2dView(); |
24 | |
25 | virtual ~OCC_2dView(); |
26 | |
27 | OCC_2dDoc* GetDocument(); |
28 | |
7fd59977 |
29 | // Overrides |
5c1f974e |
30 | // ClassWizard generated virtual function overrides |
31 | //{{AFX_VIRTUAL(OCC_2dView) |
7ff18fb9 |
32 | protected: |
5c1f974e |
33 | virtual void OnInitialUpdate(); // called first time after construct |
7fd59977 |
34 | //}}AFX_VIRTUAL |
35 | |
36 | #ifdef _DEBUG |
5c1f974e |
37 | virtual void AssertValid() const; |
38 | virtual void Dump(CDumpContext& dc) const; |
7fd59977 |
39 | #endif |
40 | |
41 | protected: |
42 | |
43 | // Generated message map functions |
44 | protected: |
5c1f974e |
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); |
5c1f974e |
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() |
7fd59977 |
70 | |
71 | protected: |
7fd59977 |
72 | CRectangularGrid TheRectangularGridDialog; |
73 | CCircularGrid TheCircularGridDialog; |
7fd59977 |
74 | }; |
75 | |
76 | #ifndef _DEBUG // debug version in 2DDisplayView.cpp |
5c1f974e |
77 | inline OCC_2dDoc* OCC_2dView::GetDocument() |
78 | { return (OCC_2dDoc*)m_pDocument; } |
7fd59977 |
79 | #endif |
80 | |
81 | #endif // !defined(AFX_OCC_2dVIEW_H__2E048CC9_38F9_11D7_8611_0060B0EE281E__INCLUDED_) |