]>
Commit | Line | Data |
---|---|---|
7fd59977 | 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 | ||
b12e1c7b | 14 | #include "OCC_BaseDoc.h" |
15 | #include "AIS_RubberBand.hxx" | |
16 | ||
7fd59977 | 17 | class AFX_EXT_CLASS OCC_BaseView : public CView |
18 | { | |
b12e1c7b | 19 | |
7fd59977 | 20 | public: |
b12e1c7b | 21 | |
7fd59977 | 22 | OCC_BaseView(); |
23 | virtual ~OCC_BaseView(); | |
b12e1c7b | 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 | ||
ee2be2a8 | 39 | Standard_Real myCurZoom; |
b12e1c7b | 40 | Standard_Integer myXmin; |
41 | Standard_Integer myYmin; | |
42 | Standard_Integer myXmax; | |
43 | Standard_Integer myYmax; | |
7fd59977 | 44 | |
b12e1c7b | 45 | Handle(AIS_RubberBand) myRect; //!< Rubber rectangle for selection |
7fd59977 | 46 | }; |
47 | ||
48 | #endif // !defined(AFX_OCC_BASEVIEW_H__2E048CCA_38F9_11D7_8611_0060B0EE281E__INCLUDED_) |