0023821: Improve qmake project files for Qt samples
[occt.git] / samples / mfc / standard / 01_Geometry / src / ISession2D / ISession2D_InteractiveContext.h
CommitLineData
7fd59977 1// File generated by CPPExt (Transient)
2//
3// Copyright (C) 1991,1995 by
4//
5// MATRA DATAVISION, FRANCE
6//
7// This software is furnished in accordance with the terms and conditions
8// of the contract and with the inclusion of the above copyright notice.
9// This software or any other copy thereof may not be provided or otherwise
10// be made available to any other person. No title to an ownership of the
11// software is hereby transferred.
12//
13// At the termination of the contract, the software and all copies of this
14// software must be deleted.
15//
16#ifndef _ISession2D_InteractiveContext_HeaderFile
17#define _ISession2D_InteractiveContext_HeaderFile
18
19#include <Standard_Macro.hxx>
20#include <Standard_DefineHandle.hxx>
21
22#include <Handle_V2d_Viewer.hxx>
23#include <Handle_PrsMgr_PresentationManager2d.hxx>
24#include <Handle_SelectMgr_SelectionManager.hxx>
25#include <Handle_StdSelect_ViewerSelector2d.hxx>
26#include <MMgt_TShared.hxx>
27#include <Handle_SelectMgr_SelectableObject.hxx>
28#include <Standard_Boolean.hxx>
29#include <Handle_V2d_View.hxx>
30#include <Graphic2d_Buffer.hxx>
31
32class V2d_Viewer;
33class PrsMgr_PresentationManager2d;
34class SelectMgr_SelectionManager;
35#include <StdSelect_ViewerSelector2d.hxx>
36class SelectMgr_SelectableObject;
37class V2d_View;
38#include "TColStd_MapOfTransient.hxx"
39DEFINE_STANDARD_HANDLE(ISession2D_InteractiveContext,MMgt_TShared)
40class ISession2D_InteractiveContext : public MMgt_TShared {
41
42public:
43 void EraseAll();
44
45 // Methods PUBLIC
46 //
47ISession2D_InteractiveContext();
48ISession2D_InteractiveContext(const Handle(V2d_Viewer)& aViewer);
49void Initialize(const Handle(V2d_Viewer)& aViewer) ;
50void Display(const Handle(AIS_InteractiveObject)& anObject,const Standard_Boolean Redraw = Standard_True) ;
51void Erase(const Handle(AIS_InteractiveObject)& anObject,const Standard_Boolean Redraw = Standard_True) ;
52virtual void Move(const Handle(V2d_View)& aView,const Standard_Integer x1,const Standard_Integer y1) ;
53void Pick(const Handle(V2d_View)& aView,
54 const Standard_Integer x1,
55 const Standard_Integer y1);
56
57void DisplayAreas() ;
58void ClearAreas() ;
59
60DEFINE_STANDARD_RTTI(ISession2D_InteractiveContext)
61
62protected:
63
64 // Methods PROTECTED
65 //
66
67
68 // Fields PROTECTED
69 //
70
71
72private:
73 TColStd_MapOfTransient myMapOfObject;
74
75 // Methods PRIVATE
76 //
77
78
79 // Fields PRIVATE
80 //
81Handle(V2d_Viewer) myViewer;
82Handle_PrsMgr_PresentationManager2d myPrsmgr;
83Handle_SelectMgr_SelectionManager mySelectionManager;
84Handle_StdSelect_ViewerSelector2d mySelector;
85
86
87// for dynamic selection
88Handle(Graphic2d_Buffer) aBuffer;
89
90
91};
92
93
94// other inline functions and methods (like "C++: function call" methods)
95//
96
97
98#endif