0023931: Incorrect image export code in MFC sample: Added OCC_BaseDoc::ExportView...
[occt.git] / samples / mfc / standard / 10_Convert / src / WNT / OCCDemoDoc.h
CommitLineData
7fd59977 1// OCCDemoDoc.h : interface of the COCCDemoDoc class
2//
3/////////////////////////////////////////////////////////////////////////////
4
5#if !defined(AFX_OCCDEMODOC_H__57A6A22E_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_)
6#define AFX_OCCDEMODOC_H__57A6A22E_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_
7
8#if _MSC_VER > 1000
9#pragma once
10#endif // _MSC_VER > 1000
11
12c76bee 12#include <OCC_BaseDoc.h>
7fd59977 13#include "ResultDialog.h"
14class OCCDemo_Presentation;
15
12c76bee 16class COCCDemoDoc : public OCC_BaseDoc
7fd59977 17{
18public:
7fd59977 19 CResultDialog* GetResultDialog () {return &myCResultDialog;}
20 Standard_CString GetDataDir() {return myDataDir;}
21
22protected: // create from serialization only
23 COCCDemoDoc();
24 DECLARE_DYNCREATE(COCCDemoDoc)
25
26// Attributes
27public:
28 BOOL& IsShowResult() {return myShowResult;}
29
30// Operations
31public:
32 void Start();
33 static void Fit();
34
35
36// Overrides
37 // ClassWizard generated virtual function overrides
38 //{{AFX_VIRTUAL(COCCDemoDoc)
39 public:
40 virtual BOOL OnNewDocument();
41 virtual void Serialize(CArchive& ar);
42 //}}AFX_VIRTUAL
43
44// Implementation
45public:
46 virtual ~COCCDemoDoc();
47#ifdef _DEBUG
48 virtual void AssertValid() const;
49 virtual void Dump(CDumpContext& dc) const;
50#endif
51
52protected:
53 void InitViewButtons();
54 void DoSample();
55
56// Generated message map functions
57protected:
58 //{{AFX_MSG(COCCDemoDoc)
59 afx_msg void OnBUTTONNext();
60 afx_msg void OnBUTTONStart();
61 afx_msg void OnBUTTONRepeat();
62 afx_msg void OnBUTTONPrev();
63 afx_msg void OnBUTTONEnd();
64 afx_msg void OnUpdateBUTTONNext(CCmdUI* pCmdUI);
65 afx_msg void OnUpdateBUTTONPrev(CCmdUI* pCmdUI);
66 afx_msg void OnFileNew();
67 afx_msg void OnBUTTONShowResult();
68 afx_msg void OnUpdateBUTTONShowResult(CCmdUI* pCmdUI);
69 afx_msg void OnDumpView();
70 //}}AFX_MSG
71 DECLARE_MESSAGE_MAP()
72
73private:
7fd59977 74 OCCDemo_Presentation *myPresentation;
75 CResultDialog myCResultDialog;
76 BOOL myShowResult;
77 char myDataDir[5]; // for "Data\0"
78 char myLastPath[MAX_PATH]; // directory of lastly saved file in DumpView()
79};
80
81/////////////////////////////////////////////////////////////////////////////
82
83//{{AFX_INSERT_LOCATION}}
84// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
85
86#endif // !defined(AFX_OCCDEMODOC_H__57A6A22E_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_)