Integration of OCCT 6.5.0 from SVN
[occt.git] / samples / mfc / standard / 01_Geometry / src / GeometryView.h
1 // GeometryView.h : interface of the CGeometryView class
2 //
3 /////////////////////////////////////////////////////////////////////////////
4
5 #if !defined(AFX_VIEWERVIEW_H__4EF39FBC_4EBB_11D1_8D67_0800369C8A03__INCLUDED_)
6 #define AFX_VIEWERVIEW_H__4EF39FBC_4EBB_11D1_8D67_0800369C8A03__INCLUDED_
7
8 #if _MSC_VER >= 1000
9 #pragma once
10 #endif // _MSC_VER >= 1000
11
12 #include <OCC_3dView.h>
13
14 class CGeometryView : public OCC_3dView
15 {
16 protected: // create from serialization only
17 public:
18         CGeometryView();
19         DECLARE_DYNCREATE(CGeometryView)
20
21 // Attributes
22 public:
23         CGeometryDoc* GetDocument();
24
25 // Operations
26 public:
27
28 // Overrides
29         // ClassWizard generated virtual function overrides
30         //{{AFX_VIRTUAL(CGeometryView)
31         public:
32         //}}AFX_VIRTUAL
33
34 // Implementation
35 public:
36         virtual ~CGeometryView();
37         void FitAll(Quantity_Coefficient Coef) {   if (Coef != -1)      myView->FitAll(Coef);
38                                                                                                 else myView->FitAll();
39                                                                                                 myView->ZFitAll();  };
40 #ifdef _DEBUG
41         virtual void AssertValid() const;
42         virtual void Dump(CDumpContext& dc) const;
43 #endif
44
45 // Generated message map functions
46 protected:
47         //{{AFX_MSG(CGeometryView)
48         afx_msg void OnFileExportImage();
49         afx_msg void OnSize(UINT nType, int cx, int cy);
50         afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
51         afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
52         afx_msg void OnMButtonDown(UINT nFlags, CPoint point);
53         afx_msg void OnMButtonUp(UINT nFlags, CPoint point);
54         afx_msg void OnMouseMove(UINT nFlags, CPoint point);
55         afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
56         afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
57         afx_msg void OnUpdateBUTTONHlrOff(CCmdUI* pCmdUI);
58         afx_msg void OnUpdateBUTTONHlrOn(CCmdUI* pCmdUI);
59         afx_msg void OnUpdateBUTTONPanGlo(CCmdUI* pCmdUI);
60         afx_msg void OnUpdateBUTTONPan(CCmdUI* pCmdUI);
61         afx_msg void OnUpdateBUTTONZoomProg(CCmdUI* pCmdUI);
62         afx_msg void OnUpdateBUTTONZoomWin(CCmdUI* pCmdUI);
63         afx_msg void OnUpdateBUTTONRot(CCmdUI* pCmdUI);
64         //}}AFX_MSG
65         DECLARE_MESSAGE_MAP()
66
67 private:
68         void DragEvent      (const Standard_Integer  x       ,
69                                      const Standard_Integer  y       ,
70                                      const Standard_Integer  TheState);
71     void InputEvent     (const Standard_Integer  x       ,
72                                      const Standard_Integer  y       );  
73     void MoveEvent      (const Standard_Integer  x       ,
74                          const Standard_Integer  y       ); 
75     void ShiftMoveEvent (const Standard_Integer  x       ,
76                          const Standard_Integer  y       ); 
77     void ShiftDragEvent (const Standard_Integer  x       ,
78                                          const Standard_Integer  y       ,
79                                          const Standard_Integer  TheState); 
80     void ShiftInputEvent(const Standard_Integer  x       ,
81                                          const Standard_Integer  y       ); 
82     void Popup          (const Standard_Integer  x       ,
83                                          const Standard_Integer  y       ); 
84
85 };
86
87 #ifndef _DEBUG  // debug version in GeometryView.cpp
88 inline CGeometryDoc* CGeometryView::GetDocument()
89    { return (CGeometryDoc*)m_pDocument; }
90 #endif
91
92 /////////////////////////////////////////////////////////////////////////////
93
94 //{{AFX_INSERT_LOCATION}}
95 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
96
97 #endif // !defined(AFX_VIEWERVIEW_H__4EF39FBC_4EBB_11D1_8D67_0800369C8A03__INCLUDED_)