0023097: MFC Samples do not compile after redesigning the TKOpenGl driver
[occt.git] / samples / java / inc / ISession2D_Shape.hxx
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_Shape_HeaderFile
17 #define _ISession2D_Shape_HeaderFile
18
19 #ifndef _Standard_HeaderFile
20 #include <Standard.hxx>
21 #endif
22 #ifndef _Handle_ISession2D_Shape_HeaderFile
23 #include <Handle_ISession2D_Shape.hxx>
24 #endif
25
26 #ifndef _Standard_Integer_HeaderFile
27 #include <Standard_Integer.hxx>
28 #endif
29 #ifndef _TopTools_ListOfShape_HeaderFile
30 #include <TopTools_ListOfShape.hxx>
31 #endif
32 #ifndef _HLRAlgo_Projector_HeaderFile
33 #include <HLRAlgo_Projector.hxx>
34 #endif
35 #ifndef _Handle_HLRBRep_Algo_HeaderFile
36 #include <Handle_HLRBRep_Algo.hxx>
37 #endif
38 #ifndef _Handle_HLRBRep_PolyAlgo_HeaderFile
39 #include <Handle_HLRBRep_PolyAlgo.hxx>
40 #endif
41 #ifndef _AIS_InteractiveObject_HeaderFile
42 #include <AIS_InteractiveObject.hxx>
43 #endif
44 #ifndef _Standard_Boolean_HeaderFile
45 #include <Standard_Boolean.hxx>
46 #endif
47 #ifndef _Handle_PrsMgr_PresentationManager3d_HeaderFile
48 #include <Handle_PrsMgr_PresentationManager3d.hxx>
49 #endif
50 #ifndef _Handle_Prs3d_Presentation_HeaderFile
51 #include <Handle_Prs3d_Presentation.hxx>
52 #endif
53 #ifndef _Handle_Prs3d_Projector_HeaderFile
54 #include <Handle_Prs3d_Projector.hxx>
55 #endif
56 #ifndef _Handle_PrsMgr_PresentationManager2d_HeaderFile
57 #include <Handle_PrsMgr_PresentationManager2d.hxx>
58 #endif
59 #ifndef _Handle_Graphic2d_GraphicObject_HeaderFile
60 #include <Handle_Graphic2d_GraphicObject.hxx>
61 #endif
62 #ifndef _Handle_Graphic2d_SetOfSegments_HeaderFile
63 #include <Handle_Graphic2d_SetOfSegments.hxx>
64 #endif
65 #ifndef _Handle_GGraphic2d_SetOfCurves_HeaderFile
66 #include <Handle_GGraphic2d_SetOfCurves.hxx>
67 #endif
68 #ifndef _Handle_SelectMgr_Selection_HeaderFile
69 #include <Handle_SelectMgr_Selection.hxx>
70 #endif
71 class HLRBRep_Algo;
72 class HLRBRep_PolyAlgo;
73 class TopoDS_Shape;
74 class HLRAlgo_Projector;
75 class PrsMgr_PresentationManager3d;
76 class Prs3d_Presentation;
77 class Prs3d_Projector;
78 class PrsMgr_PresentationManager2d;
79 class Graphic2d_GraphicObject;
80 class Graphic2d_SetOfSegments;
81 class GGraphic2d_SetOfCurves;
82 class SelectMgr_Selection;
83
84
85 class ISession2D_Shape : public AIS_InteractiveObject {
86
87 public:
88
89     void* operator new(size_t,void* anAddress) 
90       {
91         return anAddress;
92       }
93     void* operator new(size_t size) 
94       { 
95         return Standard::Allocate(size); 
96       }
97     void  operator delete(void *anAddress) 
98       { 
99         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
100       }
101  // Methods PUBLIC
102  // 
103 Standard_EXPORT ISession2D_Shape();
104 Standard_EXPORT   void Add(const TopoDS_Shape& aShape) ;
105 Standard_EXPORT   HLRAlgo_Projector Projector() ;
106 Standard_EXPORT   void SetProjector(HLRAlgo_Projector& aProjector) ;
107 Standard_EXPORT   Standard_Integer NbIsos() ;
108 Standard_EXPORT   void SetNbIsos(const Standard_Integer aNbIsos) ;
109 Standard_EXPORT virtual  Standard_Boolean AcceptShapeDecomposition() ;
110 Standard_EXPORT   Standard_Boolean AcceptSelectionMode(const Standard_Integer aMode) ;
111 Standard_EXPORT   void BuildAlgo() ;
112 Standard_EXPORT   void BuildPolyAlgo() ;
113 Standard_EXPORT virtual  void Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode = 0) ;
114 Standard_EXPORT virtual  void Compute(const Handle(Prs3d_Projector)& aProjector,const Handle(Prs3d_Presentation)& aPresentation) ;
115 Standard_EXPORT virtual  void Compute(const Handle(PrsMgr_PresentationManager2d)& aPresentationManager,const Handle(Graphic2d_GraphicObject)& aGrObj,const Standard_Integer aMode = 0) ;
116 Standard_EXPORT   void DrawCompound(const TopoDS_Shape& aCompound,const Handle(Graphic2d_SetOfSegments)& aSetOfSegments) ;
117 Standard_EXPORT   void DrawCompound(const TopoDS_Shape& aCompound,const Handle(GGraphic2d_SetOfCurves)& aSetOfCurves) ;
118 Standard_EXPORT virtual  void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,const Standard_Integer aMode) ;
119 Standard_EXPORT ~ISession2D_Shape();
120
121
122
123
124  // Type management
125  //
126  Standard_EXPORT friend Handle_Standard_Type& ISession2D_Shape_Type_();
127  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
128  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
129
130 protected:
131
132  // Methods PROTECTED
133  // 
134
135
136  // Fields PROTECTED
137  //
138
139
140 private: 
141
142  // Methods PRIVATE
143  // 
144
145
146  // Fields PRIVATE
147  //
148 Standard_Integer myNbIsos;
149 TopTools_ListOfShape myListOfShape;
150 HLRAlgo_Projector myProjector;
151 Handle_HLRBRep_Algo myAlgo;
152 Handle_HLRBRep_PolyAlgo myPolyAlgo;
153
154
155 };
156
157
158 #include <ISession2D_Shape.lxx>
159
160
161
162 // other Inline functions and methods (like "C++: function call" methods)
163 //
164
165
166 #endif