1 // OcafDoc.h : interface of the COcafDoc class 2 // 3 ///////////////////////////////////////////////////////////////////////////// 4 5 #if !defined(AFX_OCAFDOC_H__49324D7C_7836_11D4_8D45_00AA00D10994__INCLUDED_) 6 #define AFX_OCAFDOC_H__49324D7C_7836_11D4_8D45_00AA00D10994__INCLUDED_ 7 8 #if _MSC_VER >= 1000 9 #pragma once 10 #endif // _MSC_VER >= 1000 11 12 #include <OCC_3dDoc.h> 13 #include <OCC_3dView.h> 14 15 class COcafDoc : public OCC_3dDoc 16 { 17 protected: // create from serialization only 18 COcafDoc(); 19 DECLARE_DYNCREATE(COcafDoc) 20 21 // Overrides 22 // ClassWizard generated virtual function overrides 23 //{{AFX_VIRTUAL(COcafDoc) 24 public: 25 virtual void OnCloseDocument(); 26 virtual BOOL OnOpenDocument(LPCTSTR lpszPathName); 27 virtual BOOL COcafDoc::OnNewDocument(); 28 29 //}}AFX_VIRTUAL 30 31 // Implementation 32 public: 33 virtual ~COcafDoc(); 34 virtual void Popup (const Standard_Integer x , 35 const Standard_Integer y , 36 const Handle(V3d_View)& aView ); 37 38 #ifdef _DEBUG 39 virtual void AssertValid() const; 40 virtual void Dump(CDumpContext& dc) const; 41 #endif 42 43 protected: 44 45 // Generated message map functions 46 protected: 47 //{{AFX_MSG(COcafDoc) 48 afx_msg void OnCreatebox(); 49 afx_msg void OnEditRedo(); 50 afx_msg void OnEditUndo(); 51 afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI); 52 afx_msg void OnModify(); 53 afx_msg void OnUpdateModify(CCmdUI* pCmdUI); 54 afx_msg void OnUpdateEditRedo(CCmdUI* pCmdUI); 55 afx_msg void OnCut(); 56 afx_msg void OnObjectDelete(); 57 afx_msg void OnUpdateObjectDelete(CCmdUI* pCmdUI); 58 afx_msg void OnFileSave(); 59 afx_msg void OnFileSaveAs(); 60 afx_msg void OnCreatecyl(); 61 afx_msg void OnDfbr(); 62 //}}AFX_MSG 63 DECLARE_MESSAGE_MAP() 64 public : 65 void ActivateFrame(CRuntimeClass* pViewClass, int nCmdShow = SW_RESTORE ); GetOcafDoc()66 Handle(TDocStd_Document) GetOcafDoc() {return myOcafDoc;}; 67 CString PathName; 68 69 private: 70 Handle(TDocStd_Document) myOcafDoc; 71 72 public : 73 void EraseAll(); 74 75 private: 76 void DisplayPrs(); 77 void Fit3DViews(); 78 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_OCAFDOC_H__49324D7C_7836_11D4_8D45_00AA00D10994__INCLUDED_) 87