Integration of OCCT 6.5.0 from SVN
[occt.git] / samples / mfc / standard / 01_Geometry / src / GeometryView2D.h
1 // NSGViewBib.h : interface of the CNSGView class
2 //
3
4 #if !defined(AFX_NSGVIEWBIB_H__7BCE3513_40A8_11D1_8BEC_00C04FB657CF__INCLUDED_)
5 #define AFX_NSGVIEWBIB_H__7BCE3513_40A8_11D1_8BEC_00C04FB657CF__INCLUDED_
6
7 #if _MSC_VER >= 1000
8 #pragma once
9 #endif // _MSC_VER >= 1000
10
11
12 #include <OCC_2dView.h>
13
14 /////////////////////////////////////////////////////////////////////////////
15 /*
16 enum CurrentAction2d { 
17   CurAction_Nothing,
18   CurAction_DynamicZooming,
19   CurAction_WindowZooming,
20   CurAction_DynamicPanning,
21   CurAction_GlobalPanning,
22 };
23 */
24 #define ValZWMin 1
25
26
27
28 class CGeometryView2D : public OCC_2dView
29 {
30 protected: // create from serialization only
31         CGeometryView2D();
32         DECLARE_DYNCREATE(CGeometryView2D)
33
34 // Attributes
35 public:
36         CGeometryDoc* GetDocument();
37 public:
38
39 // Overrides
40         // ClassWizard generated virtual function overrides
41         //{{AFX_VIRTUAL(CNSGViewBib)
42         public:
43         virtual void OnDraw(CDC* pDC);  // overridden to draw this view
44         virtual void OnInitialUpdate(); // called first time after construct
45
46         //}}AFX_VIRTUAL
47
48
49
50 // Implementation
51 public:
52         virtual ~CGeometryView2D();
53 #ifdef _DEBUG
54         virtual void AssertValid() const;
55         virtual void Dump(CDumpContext& dc) const;
56 #endif
57
58 // Generated message map functions
59 protected:
60         //{{AFX_MSG(CGeometryView2D)
61         afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
62         afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
63         afx_msg void OnMButtonDown(UINT nFlags, CPoint point);
64         afx_msg void OnMButtonUp(UINT nFlags, CPoint point);
65         afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
66         afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
67         afx_msg void OnMouseMove(UINT nFlags, CPoint point);
68         afx_msg void OnSize(UINT nType, int cx, int cy);
69         //}}AFX_MSG
70         DECLARE_MESSAGE_MAP()
71 };
72
73 #ifndef _DEBUG  // debug version in NSGViewBibliotheque.cpp
74 inline CGeometryDoc* CGeometryView2D::GetDocument()
75    { return (CGeometryDoc*)m_pDocument; }
76 #endif
77
78 /////////////////////////////////////////////////////////////////////////////
79 #endif