0028316: Coding Rules - Elimilate confusing aliases of Standard_Real type in V3d_View
[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();
ee2be2a8 37 void FitAll(Standard_Real Coef)
5c1f974e 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();
5c1f974e 54 //}}AFX_MSG
55 DECLARE_MESSAGE_MAP()
7fd59977 56};
57
58#ifndef _DEBUG // debug version in GeometryView.cpp
59inline 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_)