0023776: Redesign of MFC samples after V2d viewer removing
[occt.git] / samples / mfc / standard / Common / OCC_BaseDoc.h
CommitLineData
7fd59977 1// OCC_BaseDoc.h: interface for the OCC_BaseDoc class.
2//
3//////////////////////////////////////////////////////////////////////
4
5#if !defined(AFX_OCC_BASEDOC_H__2E048CC8_38F9_11D7_8611_0060B0EE281E__INCLUDED_)
6#define AFX_OCC_BASEDOC_H__2E048CC8_38F9_11D7_8611_0060B0EE281E__INCLUDED_
7
8#if _MSC_VER > 1000
9#pragma once
10#endif // _MSC_VER > 1000
11
12#include <stdafx.h>
13
14class OCC_BaseDoc : public CDocument
15{
16public:
7fd59977 17
5c1f974e 18 OCC_BaseDoc();
19
20 virtual ~OCC_BaseDoc();
21
22 Handle(AIS_InteractiveContext)& GetAISContext() { return myAISContext; }
23
24 Handle(V3d_Viewer) GetViewer() { return myViewer; }
25
26 //Events
27 virtual void DragEvent (const Standard_Integer theMouseX,
28 const Standard_Integer theMouseY,
29 const Standard_Integer theState,
30 const Handle(V3d_View)& theView) {}
31
32 virtual void InputEvent (const Standard_Integer theMouseX,
33 const Standard_Integer theMouseY,
34 const Handle(V3d_View)& theView) {}
35
36 virtual void MoveEvent (const Standard_Integer theMouseX,
37 const Standard_Integer theMouseY,
38 const Handle(V3d_View)& theView) {}
39
40 virtual void ShiftMoveEvent (const Standard_Integer theMouseX,
41 const Standard_Integer theMouseY,
42 const Handle(V3d_View)& theView) {}
43
44 virtual void ShiftDragEvent (const Standard_Integer theMouseX,
45 const Standard_Integer theMouseY,
46 const Standard_Integer theState,
47 const Handle(V3d_View)& theView) {}
48
49 virtual void ShiftInputEvent(const Standard_Integer theMouseX,
50 const Standard_Integer theMouseY,
51 const Handle(V3d_View)& theView) {}
52
53 virtual void Popup (const Standard_Integer theMouseX,
54 const Standard_Integer theMouseY,
55 const Handle(V3d_View)& theView) {}
56protected:
57
58 Handle(V3d_Viewer) myViewer;
59 Handle(AIS_InteractiveContext) myAISContext;
7fd59977 60};
61
62#endif // !defined(AFX_OCC_BASEDOC_H__2E048CC8_38F9_11D7_8611_0060B0EE281E__INCLUDED_)