7fd59977 |
1 | // OCC_3dBaseDoc.h: interface for the OCC_3dBaseDoc class. |
2 | // |
3 | ////////////////////////////////////////////////////////////////////// |
4 | |
5 | #if !defined(AFX_OCC_3DBASEDOC_H__02CE7BD9_39BE_11D7_8611_0060B0EE281E__INCLUDED_) |
6 | #define AFX_OCC_3DBASEDOC_H__02CE7BD9_39BE_11D7_8611_0060B0EE281E__INCLUDED_ |
7 | |
8 | #if _MSC_VER > 1000 |
9 | #pragma once |
10 | #endif // _MSC_VER > 1000 |
11 | |
12 | #include "OCC_BaseDoc.h" |
a6eb515f |
13 | #include "DimensionDlg.h" |
7fd59977 |
14 | #include <Standard_Macro.hxx> |
15 | |
12c76bee |
16 | class AFX_EXT_CLASS OCC_3dBaseDoc : public OCC_BaseDoc |
7fd59977 |
17 | { |
a6eb515f |
18 | protected: |
19 | CDimensionDlg myDimensionDlg; |
20 | int myPopupMenuNumber; |
7fd59977 |
21 | public: |
7fd59977 |
22 | |
5c1f974e |
23 | OCC_3dBaseDoc(); |
234e52be |
24 | ~OCC_3dBaseDoc(); |
5c1f974e |
25 | |
26 | void SetMaterial(Graphic3d_NameOfMaterial Material); |
27 | |
28 | |
29 | virtual void DragEvent (const Standard_Integer theMouseX, |
30 | const Standard_Integer theMouseY, |
31 | const Standard_Integer theState, |
32 | const Handle(V3d_View)& theView); |
33 | |
34 | virtual void InputEvent (const Standard_Integer theMouseX, |
35 | const Standard_Integer theMouseY, |
36 | const Handle(V3d_View)& theView); |
37 | |
38 | virtual void MoveEvent (const Standard_Integer theMouseX, |
39 | const Standard_Integer theMouseY, |
40 | const Handle(V3d_View)& theView); |
41 | |
42 | virtual void ShiftMoveEvent (const Standard_Integer theMouseX, |
43 | const Standard_Integer theMouseY, |
44 | const Handle(V3d_View)& theView); |
45 | |
46 | virtual void ShiftDragEvent (const Standard_Integer theMouseX, |
47 | const Standard_Integer theMouseY, |
48 | const Standard_Integer theState, |
49 | const Handle(V3d_View)& theView); |
50 | |
51 | virtual void ShiftInputEvent (const Standard_Integer theMouseX, |
52 | const Standard_Integer theMouseY, |
53 | const Handle(V3d_View)& theView); |
54 | |
55 | virtual void Popup (const Standard_Integer theMouseX, |
56 | const Standard_Integer theMouseY, |
57 | const Handle(V3d_View)& theView); |
58 | |
59 | static void Fit(); |
60 | |
61 | int OnFileImportBrep_WithInitDir(LPCTSTR InitialDir); |
62 | |
63 | // Generated message map functions |
64 | protected: |
65 | //{{AFX_MSG(OCC_3dBaseDoc) |
66 | afx_msg void OnFileImportBrep(); |
67 | afx_msg void OnFileExportBrep(); |
68 | afx_msg void OnObjectErase(); |
69 | afx_msg void OnUpdateObjectErase(CCmdUI* pCmdUI); |
70 | afx_msg void OnObjectColor(); |
71 | afx_msg void OnUpdateObjectColor(CCmdUI* pCmdUI); |
72 | afx_msg void OnObjectShading(); |
73 | afx_msg void OnUpdateObjectShading(CCmdUI* pCmdUI); |
74 | afx_msg void OnObjectWireframe(); |
75 | afx_msg void OnUpdateObjectWireframe(CCmdUI* pCmdUI); |
76 | afx_msg void OnObjectTransparency(); |
77 | afx_msg void OnUpdateObjectTransparency(CCmdUI* pCmdUI) ; |
78 | afx_msg void OnObjectMaterial(); |
79 | afx_msg void OnUpdateObjectMaterial(CCmdUI* pCmdUI); |
80 | afx_msg BOOL OnObjectMaterialRange(UINT nID); |
81 | afx_msg void OnUpdateObjectMaterialRange(CCmdUI* pCmdUI); |
82 | afx_msg void OnObjectDisplayall(); |
83 | afx_msg void OnUpdateObjectDisplayall(CCmdUI* pCmdUI); |
84 | afx_msg void OnObjectRemove(); |
85 | afx_msg void OnUpdateObjectRemove(CCmdUI* pCmdUI); |
a6eb515f |
86 | afx_msg void OnObjectAddDimensions(); |
87 | afx_msg void OnUpdateObjectAddDimensions(CCmdUI* pCmdUI); |
88 | |
5c1f974e |
89 | //}}AFX_MSG |
90 | DECLARE_MESSAGE_MAP() |
7fd59977 |
91 | }; |
92 | |
93 | #endif // !defined(AFX_OCC_3dBaseDoc_H__02CE7BD9_39BE_11D7_8611_0060B0EE281E__INCLUDED_) |