0028316: Coding Rules - Elimilate confusing aliases of Standard_Real type in V3d_View
[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(Standard_Real Coef)
38   {
39     if (Coef != -1)
40       myView->FitAll(Coef);
41     else myView->FitAll();
42     myView->ZFitAll();
43   };
44
45 #ifdef _DEBUG
46   virtual void AssertValid() const;
47   virtual void Dump(CDumpContext& dc) const;
48 #endif
49
50 // Generated message map functions
51 protected:
52   //{{AFX_MSG(CGeometryView)
53   afx_msg void OnFileExportImage();
54   //}}AFX_MSG
55   DECLARE_MESSAGE_MAP()
56 };
57
58 #ifndef _DEBUG  // debug version in GeometryView.cpp
59 inline CGeometryDoc* CGeometryView::GetDocument()
60    { return (CGeometryDoc*)m_pDocument; }
61 #endif
62
63 /////////////////////////////////////////////////////////////////////////////
64
65 //{{AFX_INSERT_LOCATION}}
66 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
67
68 #endif // !defined(AFX_VIEWERVIEW_H__4EF39FBC_4EBB_11D1_8D67_0800369C8A03__INCLUDED_)