1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0023776: Redesign of MFC samples after V2d viewer removing

This commit is contained in:
aba
2013-03-12 09:19:35 +04:00
parent fad8962a72
commit 5c1f974e17
212 changed files with 9053 additions and 19513 deletions

View File

@@ -15,71 +15,71 @@
class AFX_EXT_CLASS OCC_3dBaseDoc : public OCC_BaseDoc
{
public:
OCC_3dBaseDoc();
virtual ~OCC_3dBaseDoc();
Handle_AIS_InteractiveContext& GetAISContext(){ return myAISContext; };
Handle_V3d_Viewer GetViewer() { return myViewer; };
void SetMaterial(Graphic3d_NameOfMaterial Material);
OCC_3dBaseDoc();
virtual void DragEvent (const Standard_Integer x ,
const Standard_Integer y ,
const Standard_Integer TheState,
const Handle(V3d_View)& aView );
virtual void InputEvent (const Standard_Integer x ,
const Standard_Integer y ,
const Handle(V3d_View)& aView );
virtual void MoveEvent (const Standard_Integer x ,
const Standard_Integer y ,
const Handle(V3d_View)& aView );
virtual void ShiftMoveEvent (const Standard_Integer x ,
const Standard_Integer y ,
const Handle(V3d_View)& aView );
virtual void ShiftDragEvent (const Standard_Integer x ,
const Standard_Integer y ,
const Standard_Integer TheState,
const Handle(V3d_View)& aView );
virtual void ShiftInputEvent(const Standard_Integer x ,
const Standard_Integer y ,
const Handle(V3d_View)& aView );
virtual void Popup (const Standard_Integer x ,
const Standard_Integer y ,
const Handle(V3d_View)& aView );
static void Fit();
int OnFileImportBrep_WithInitDir(LPCTSTR InitialDir);
void SetMaterial(Graphic3d_NameOfMaterial Material);
// Generated message map functions
virtual void DragEvent (const Standard_Integer theMouseX,
const Standard_Integer theMouseY,
const Standard_Integer theState,
const Handle(V3d_View)& theView);
virtual void InputEvent (const Standard_Integer theMouseX,
const Standard_Integer theMouseY,
const Handle(V3d_View)& theView);
virtual void MoveEvent (const Standard_Integer theMouseX,
const Standard_Integer theMouseY,
const Handle(V3d_View)& theView);
virtual void ShiftMoveEvent (const Standard_Integer theMouseX,
const Standard_Integer theMouseY,
const Handle(V3d_View)& theView);
virtual void ShiftDragEvent (const Standard_Integer theMouseX,
const Standard_Integer theMouseY,
const Standard_Integer theState,
const Handle(V3d_View)& theView);
virtual void ShiftInputEvent (const Standard_Integer theMouseX,
const Standard_Integer theMouseY,
const Handle(V3d_View)& theView);
virtual void Popup (const Standard_Integer theMouseX,
const Standard_Integer theMouseY,
const Handle(V3d_View)& theView);
static void Fit();
int OnFileImportBrep_WithInitDir(LPCTSTR InitialDir);
// Generated message map functions
protected:
//{{AFX_MSG(OCC_3dBaseDoc)
afx_msg void OnFileImportBrep();
afx_msg void OnFileExportBrep();
afx_msg void OnObjectErase();
afx_msg void OnUpdateObjectErase(CCmdUI* pCmdUI);
afx_msg void OnObjectColor();
afx_msg void OnUpdateObjectColor(CCmdUI* pCmdUI);
afx_msg void OnObjectShading();
afx_msg void OnUpdateObjectShading(CCmdUI* pCmdUI);
afx_msg void OnObjectWireframe();
afx_msg void OnUpdateObjectWireframe(CCmdUI* pCmdUI);
afx_msg void OnObjectTransparency();
afx_msg void OnUpdateObjectTransparency(CCmdUI* pCmdUI) ;
afx_msg void OnObjectMaterial();
afx_msg void OnUpdateObjectMaterial(CCmdUI* pCmdUI);
afx_msg BOOL OnObjectMaterialRange(UINT nID);
afx_msg void OnUpdateObjectMaterialRange(CCmdUI* pCmdUI);
afx_msg void OnObjectDisplayall();
afx_msg void OnUpdateObjectDisplayall(CCmdUI* pCmdUI);
afx_msg void OnObjectRemove();
afx_msg void OnUpdateObjectRemove(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
//Attributes
protected:
Handle_V3d_Viewer myViewer;
Handle_AIS_InteractiveContext myAISContext;
//{{AFX_MSG(OCC_3dBaseDoc)
afx_msg void OnFileImportBrep();
afx_msg void OnFileExportBrep();
afx_msg void OnObjectErase();
afx_msg void OnUpdateObjectErase(CCmdUI* pCmdUI);
afx_msg void OnObjectColor();
afx_msg void OnUpdateObjectColor(CCmdUI* pCmdUI);
afx_msg void OnObjectShading();
afx_msg void OnUpdateObjectShading(CCmdUI* pCmdUI);
afx_msg void OnObjectWireframe();
afx_msg void OnUpdateObjectWireframe(CCmdUI* pCmdUI);
afx_msg void OnObjectTransparency();
afx_msg void OnUpdateObjectTransparency(CCmdUI* pCmdUI) ;
afx_msg void OnObjectMaterial();
afx_msg void OnUpdateObjectMaterial(CCmdUI* pCmdUI);
afx_msg BOOL OnObjectMaterialRange(UINT nID);
afx_msg void OnUpdateObjectMaterialRange(CCmdUI* pCmdUI);
afx_msg void OnObjectDisplayall();
afx_msg void OnUpdateObjectDisplayall(CCmdUI* pCmdUI);
afx_msg void OnObjectRemove();
afx_msg void OnUpdateObjectRemove(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif // !defined(AFX_OCC_3dBaseDoc_H__02CE7BD9_39BE_11D7_8611_0060B0EE281E__INCLUDED_)