0031521: Samples - update MFC ImportExport sample to use AIS_ViewController
[occt.git] / samples / mfc / standard / 01_Geometry / src / GeometryView2D.h
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 /////////////////////////////////////////////////////////////////////////////
15
16 #define ValZWMin 1
17
18 class CGeometryView2D : public OCC_2dView
19 {
20 protected: // create from serialization only
21   CGeometryView2D();
22   DECLARE_DYNCREATE(CGeometryView2D)
23
24   // Attributes
25 public:
26   CGeometryDoc* GetDocument();
27 public:
28   // Overrides
29   // ClassWizard generated virtual function overrides
30 public:
31   virtual void OnInitialUpdate(); // called first time after construct
32
33   // Implementation
34 public:
35   virtual ~CGeometryView2D();
36 #ifdef _DEBUG
37   virtual void AssertValid() const;
38   virtual void Dump(CDumpContext& dc) const;
39 #endif
40
41   //! Return interactive context for 2d presentations.
42   virtual const Handle(AIS_InteractiveContext)& GetAISContext() const Standard_OVERRIDE;
43
44   // Generated message map functions
45 protected:
46   //{{AFX_MSG(CGeometryView2D)
47   //}}AFX_MSG
48   DECLARE_MESSAGE_MAP()
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