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