0028316: Coding Rules - Elimilate confusing aliases of Standard_Real type in V3d_View
[occt.git] / samples / mfc / standard / Common / OCC_BaseView.h
1 // OCC_BaseView.h: interface for the OCC_BaseView class.
2 //
3 //////////////////////////////////////////////////////////////////////
4
5 #if !defined(AFX_OCC_BASEVIEW_H__2E048CCA_38F9_11D7_8611_0060B0EE281E__INCLUDED_)
6 #define AFX_OCC_BASEVIEW_H__2E048CCA_38F9_11D7_8611_0060B0EE281E__INCLUDED_
7
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
11
12 #include <stdafx.h>
13
14 #include "OCC_BaseDoc.h"
15 #include "AIS_RubberBand.hxx"
16
17 class AFX_EXT_CLASS OCC_BaseView  : public CView
18 {
19   
20 public:
21   
22         OCC_BaseView();
23         virtual ~OCC_BaseView();
24   
25   OCC_BaseDoc* GetDocument();
26
27 protected:
28   
29   virtual void drawRectangle (const Standard_Integer theMinX,
30                               const Standard_Integer theMinY,
31                               const Standard_Integer theMaxX,
32                               const Standard_Integer theMaxY,
33                               const Handle(AIS_InteractiveContext)& theContext,
34                               const Standard_Boolean toDraw = Standard_True);
35
36
37 protected:
38
39   Standard_Real    myCurZoom;
40   Standard_Integer myXmin;
41   Standard_Integer myYmin;
42   Standard_Integer myXmax;
43   Standard_Integer myYmax;
44
45   Handle(AIS_RubberBand) myRect; //!< Rubber rectangle for selection
46 };
47
48 #endif // !defined(AFX_OCC_BASEVIEW_H__2E048CCA_38F9_11D7_8611_0060B0EE281E__INCLUDED_)