1 // OCCDemoDoc.h : interface of the COCCDemoDoc class
3 /////////////////////////////////////////////////////////////////////////////
5 #if !defined(AFX_OCCDEMODOC_H__57A6A22E_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_)
6 #define AFX_OCCDEMODOC_H__57A6A22E_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_
10 #endif // _MSC_VER > 1000
12 #include "ResultDialog.h"
13 class OCCDemo_Presentation;
15 class COCCDemoDoc : public CDocument
18 Handle(V3d_Viewer) GetViewer() const { return myViewer; };
19 Handle(AIS_InteractiveContext) GetAISContext() const { return myAISContext; };
20 CResultDialog* GetResultDialog () {return &myCResultDialog;}
21 Standard_CString GetDataDir() {return myDataDir;}
23 protected: // create from serialization only
25 DECLARE_DYNCREATE(COCCDemoDoc)
29 BOOL& IsShowResult() {return myShowResult;}
37 // ClassWizard generated virtual function overrides
38 //{{AFX_VIRTUAL(COCCDemoDoc)
40 virtual BOOL OnNewDocument();
41 virtual void Serialize(CArchive& ar);
46 virtual ~COCCDemoDoc();
48 virtual void AssertValid() const;
49 virtual void Dump(CDumpContext& dc) const;
53 void InitViewButtons();
56 // Generated message map functions
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();
74 Handle(V3d_Viewer) myViewer;
75 Handle(AIS_InteractiveContext) myAISContext;
76 OCCDemo_Presentation *myPresentation;
77 CResultDialog myCResultDialog;
79 char myDataDir[8]; // for "..\Data\0"
80 char myLastPath[MAX_PATH]; // directory of lastly saved file in DumpView()
83 /////////////////////////////////////////////////////////////////////////////
85 //{{AFX_INSERT_LOCATION}}
86 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
88 #endif // !defined(AFX_OCCDEMODOC_H__57A6A22E_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_)