0029780: [REGRESSION] Shape Healing - Operator FixShape failed with exception
[occt.git] / samples / mfc / standard / 01_Geometry / src / GeometryView.cpp
CommitLineData
7fd59977 1// GeometryView.cpp : implementation of the CGeometryView class
2//
3
4#include "stdafx.h"
5#include "GeometryApp.h"
6
7#include <GeometryApp.h>
8#include "GeometryDoc.h"
9#include "GeometryView.h"
10
11#define ValZWMin 1
12
13#ifdef _DEBUG
14#undef THIS_FILE
15static char THIS_FILE[] = __FILE__;
16#endif
17
18/////////////////////////////////////////////////////////////////////////////
19// CGeometryView
20
21IMPLEMENT_DYNCREATE(CGeometryView, OCC_3dView)
22
23BEGIN_MESSAGE_MAP(CGeometryView, OCC_3dView)
5c1f974e 24 //{{AFX_MSG_MAP(CGeometryView)
25 ON_COMMAND(ID_FILE_EXPORT_IMAGE, OnFileExportImage)
5c1f974e 26 //}}AFX_MSG_MAP
7fd59977 27END_MESSAGE_MAP()
28
29/////////////////////////////////////////////////////////////////////////////
30// CGeometryView construction/destruction
31
32CGeometryView::CGeometryView()
33{
34}
35
36CGeometryView::~CGeometryView()
37{
38}
39
40/////////////////////////////////////////////////////////////////////////////
41// CGeometryView diagnostics
42
43#ifdef _DEBUG
44void CGeometryView::AssertValid() const
45{
5c1f974e 46 CView::AssertValid();
7fd59977 47}
48
49void CGeometryView::Dump(CDumpContext& dc) const
50{
5c1f974e 51 CView::Dump(dc);
7fd59977 52}
53
54CGeometryDoc* CGeometryView::GetDocument() // non-debug version is inline
55{
5c1f974e 56 ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CGeometryDoc)));
57 return (CGeometryDoc*)m_pDocument;
7fd59977 58}
59#endif //_DEBUG
60
61/////////////////////////////////////////////////////////////////////////////
62// CGeometryView message handlers
63
7fd59977 64void CGeometryView::OnFileExportImage()
65{
12c76bee 66 GetDocument()->ExportView (myView);
7fd59977 67}