0024133: Development of improvement of dimensions implementation; new length, radius...
[occt.git] / samples / mfc / standard / Common / OCC_3dBaseDoc.h
CommitLineData
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
16class AFX_EXT_CLASS OCC_3dBaseDoc : public OCC_BaseDoc
17{
a6eb515f 18protected:
19 CDimensionDlg myDimensionDlg;
20 int myPopupMenuNumber;
7fd59977 21public:
7fd59977 22
5c1f974e 23 OCC_3dBaseDoc();
24
25 void SetMaterial(Graphic3d_NameOfMaterial Material);
26
27
28 virtual void DragEvent (const Standard_Integer theMouseX,
29 const Standard_Integer theMouseY,
30 const Standard_Integer theState,
31 const Handle(V3d_View)& theView);
32
33 virtual void InputEvent (const Standard_Integer theMouseX,
34 const Standard_Integer theMouseY,
35 const Handle(V3d_View)& theView);
36
37 virtual void MoveEvent (const Standard_Integer theMouseX,
38 const Standard_Integer theMouseY,
39 const Handle(V3d_View)& theView);
40
41 virtual void ShiftMoveEvent (const Standard_Integer theMouseX,
42 const Standard_Integer theMouseY,
43 const Handle(V3d_View)& theView);
44
45 virtual void ShiftDragEvent (const Standard_Integer theMouseX,
46 const Standard_Integer theMouseY,
47 const Standard_Integer theState,
48 const Handle(V3d_View)& theView);
49
50 virtual void ShiftInputEvent (const Standard_Integer theMouseX,
51 const Standard_Integer theMouseY,
52 const Handle(V3d_View)& theView);
53
54 virtual void Popup (const Standard_Integer theMouseX,
55 const Standard_Integer theMouseY,
56 const Handle(V3d_View)& theView);
57
58 static void Fit();
59
60 int OnFileImportBrep_WithInitDir(LPCTSTR InitialDir);
61
62 // Generated message map functions
63protected:
64 //{{AFX_MSG(OCC_3dBaseDoc)
65 afx_msg void OnFileImportBrep();
66 afx_msg void OnFileExportBrep();
67 afx_msg void OnObjectErase();
68 afx_msg void OnUpdateObjectErase(CCmdUI* pCmdUI);
69 afx_msg void OnObjectColor();
70 afx_msg void OnUpdateObjectColor(CCmdUI* pCmdUI);
71 afx_msg void OnObjectShading();
72 afx_msg void OnUpdateObjectShading(CCmdUI* pCmdUI);
73 afx_msg void OnObjectWireframe();
74 afx_msg void OnUpdateObjectWireframe(CCmdUI* pCmdUI);
75 afx_msg void OnObjectTransparency();
76 afx_msg void OnUpdateObjectTransparency(CCmdUI* pCmdUI) ;
77 afx_msg void OnObjectMaterial();
78 afx_msg void OnUpdateObjectMaterial(CCmdUI* pCmdUI);
79 afx_msg BOOL OnObjectMaterialRange(UINT nID);
80 afx_msg void OnUpdateObjectMaterialRange(CCmdUI* pCmdUI);
81 afx_msg void OnObjectDisplayall();
82 afx_msg void OnUpdateObjectDisplayall(CCmdUI* pCmdUI);
83 afx_msg void OnObjectRemove();
84 afx_msg void OnUpdateObjectRemove(CCmdUI* pCmdUI);
a6eb515f 85 afx_msg void OnObjectAddDimensions();
86 afx_msg void OnUpdateObjectAddDimensions(CCmdUI* pCmdUI);
87
5c1f974e 88 //}}AFX_MSG
89 DECLARE_MESSAGE_MAP()
7fd59977 90};
91
92#endif // !defined(AFX_OCC_3dBaseDoc_H__02CE7BD9_39BE_11D7_8611_0060B0EE281E__INCLUDED_)