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 | |
12 | #include "ResultDialog.h" |
13 | class OCCDemo_Presentation; |
14 | |
15 | class COCCDemoDoc : public CDocument |
16 | { |
17 | public: |
92efcf78 |
18 | Handle(V3d_Viewer) GetViewer() const { return myViewer; }; |
19 | Handle(AIS_InteractiveContext) GetAISContext() const { return myAISContext; }; |
7fd59977 |
20 | CResultDialog* GetResultDialog () {return &myCResultDialog;} |
21 | Standard_CString GetDataDir() {return myDataDir;} |
22 | |
23 | protected: // create from serialization only |
24 | COCCDemoDoc(); |
25 | DECLARE_DYNCREATE(COCCDemoDoc) |
26 | |
27 | // Attributes |
28 | public: |
29 | BOOL& IsShowResult() {return myShowResult;} |
30 | |
31 | // Operations |
32 | public: |
33 | void Start(); |
34 | static void Fit(); |
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 |
45 | public: |
46 | virtual ~COCCDemoDoc(); |
47 | #ifdef _DEBUG |
48 | virtual void AssertValid() const; |
49 | virtual void Dump(CDumpContext& dc) const; |
50 | #endif |
51 | |
52 | protected: |
53 | void InitViewButtons(); |
54 | void DoSample(); |
55 | |
56 | // Generated message map functions |
57 | protected: |
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 | |
73 | private: |
92efcf78 |
74 | Handle(V3d_Viewer) myViewer; |
75 | Handle(AIS_InteractiveContext) myAISContext; |
7fd59977 |
76 | OCCDemo_Presentation *myPresentation; |
77 | CResultDialog myCResultDialog; |
78 | BOOL myShowResult; |
79 | char myDataDir[8]; // for "..\Data\0" |
80 | char myLastPath[MAX_PATH]; // directory of lastly saved file in DumpView() |
81 | }; |
82 | |
83 | ///////////////////////////////////////////////////////////////////////////// |
84 | |
85 | //{{AFX_INSERT_LOCATION}} |
86 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. |
87 | |
88 | #endif // !defined(AFX_OCCDEMODOC_H__57A6A22E_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_) |