7fd59977 |
1 | // NSGViewBib.h : interface of the CNSGView class |
2 | // |
3 | |
4 | #if !defined(AFX_NSGVIEWBIB_H__7BCE3513_40A8_11D1_8BEC_00C04FB657CF__INCLUDED_) |
5 | #define AFX_NSGVIEWBIB_H__7BCE3513_40A8_11D1_8BEC_00C04FB657CF__INCLUDED_ |
6 | |
7 | #if _MSC_VER >= 1000 |
8 | #pragma once |
9 | #endif // _MSC_VER >= 1000 |
10 | |
11 | |
12 | #include <OCC_2dView.h> |
13 | |
14 | ///////////////////////////////////////////////////////////////////////////// |
7fd59977 |
15 | |
5c1f974e |
16 | #define ValZWMin 1 |
7fd59977 |
17 | |
18 | class CGeometryView2D : public OCC_2dView |
19 | { |
20 | protected: // create from serialization only |
5c1f974e |
21 | CGeometryView2D(); |
22 | DECLARE_DYNCREATE(CGeometryView2D) |
7fd59977 |
23 | |
5c1f974e |
24 | // Attributes |
7fd59977 |
25 | public: |
5c1f974e |
26 | CGeometryDoc* GetDocument(); |
7fd59977 |
27 | public: |
5c1f974e |
28 | // Overrides |
29 | // ClassWizard generated virtual function overrides |
30 | public: |
5c1f974e |
31 | virtual void OnInitialUpdate(); // called first time after construct |
7fd59977 |
32 | |
5c1f974e |
33 | // Implementation |
7fd59977 |
34 | public: |
5c1f974e |
35 | virtual ~CGeometryView2D(); |
7fd59977 |
36 | #ifdef _DEBUG |
5c1f974e |
37 | virtual void AssertValid() const; |
38 | virtual void Dump(CDumpContext& dc) const; |
7fd59977 |
39 | #endif |
40 | |
7ff18fb9 |
41 | //! Return interactive context for 2d presentations. |
42 | virtual const Handle(AIS_InteractiveContext)& GetAISContext() const Standard_OVERRIDE; |
43 | |
5c1f974e |
44 | // Generated message map functions |
7fd59977 |
45 | protected: |
5c1f974e |
46 | //{{AFX_MSG(CGeometryView2D) |
5c1f974e |
47 | //}}AFX_MSG |
48 | DECLARE_MESSAGE_MAP() |
7fd59977 |
49 | }; |
50 | |
51 | #ifndef _DEBUG // debug version in NSGViewBibliotheque.cpp |
52 | inline CGeometryDoc* CGeometryView2D::GetDocument() |
53 | { return (CGeometryDoc*)m_pDocument; } |
54 | #endif |
55 | |
56 | ///////////////////////////////////////////////////////////////////////////// |
57 | #endif |