1 // File generated by CPPExt (Transient)
3 // Copyright (C) 1991,1995 by
5 // MATRA DATAVISION, FRANCE
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.
13 // At the termination of the contract, the software and all copies of this
14 // software must be deleted.
16 #ifndef _ISession2D_Shape_HeaderFile
17 #define _ISession2D_Shape_HeaderFile
19 #ifndef _Standard_HeaderFile
20 #include <Standard.hxx>
22 #ifndef _Handle_ISession2D_Shape_HeaderFile
23 #include <Handle_ISession2D_Shape.hxx>
26 #ifndef _Standard_Integer_HeaderFile
27 #include <Standard_Integer.hxx>
29 #ifndef _TopTools_ListOfShape_HeaderFile
30 #include <TopTools_ListOfShape.hxx>
32 #ifndef _HLRAlgo_Projector_HeaderFile
33 #include <HLRAlgo_Projector.hxx>
35 #ifndef _Handle_HLRBRep_Algo_HeaderFile
36 #include <Handle_HLRBRep_Algo.hxx>
38 #ifndef _Handle_HLRBRep_PolyAlgo_HeaderFile
39 #include <Handle_HLRBRep_PolyAlgo.hxx>
41 #ifndef _AIS_InteractiveObject_HeaderFile
42 #include <AIS_InteractiveObject.hxx>
44 #ifndef _Standard_Boolean_HeaderFile
45 #include <Standard_Boolean.hxx>
47 #ifndef _Handle_PrsMgr_PresentationManager3d_HeaderFile
48 #include <Handle_PrsMgr_PresentationManager3d.hxx>
50 #ifndef _Handle_Prs3d_Presentation_HeaderFile
51 #include <Handle_Prs3d_Presentation.hxx>
53 #ifndef _Handle_Prs3d_Projector_HeaderFile
54 #include <Handle_Prs3d_Projector.hxx>
56 #ifndef _Handle_PrsMgr_PresentationManager2d_HeaderFile
57 #include <Handle_PrsMgr_PresentationManager2d.hxx>
59 #ifndef _Handle_Graphic2d_GraphicObject_HeaderFile
60 #include <Handle_Graphic2d_GraphicObject.hxx>
62 #ifndef _Handle_Graphic2d_SetOfSegments_HeaderFile
63 #include <Handle_Graphic2d_SetOfSegments.hxx>
65 #ifndef _Handle_GGraphic2d_SetOfCurves_HeaderFile
66 #include <Handle_GGraphic2d_SetOfCurves.hxx>
68 #ifndef _Handle_SelectMgr_Selection_HeaderFile
69 #include <Handle_SelectMgr_Selection.hxx>
72 class HLRBRep_PolyAlgo;
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;
85 class ISession2D_Shape : public AIS_InteractiveObject {
89 void* operator new(size_t,void* anAddress)
93 void* operator new(size_t size)
95 return Standard::Allocate(size);
97 void operator delete(void *anAddress)
99 if (anAddress) Standard::Free((Standard_Address&)anAddress);
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();
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;
148 Standard_Integer myNbIsos;
149 TopTools_ListOfShape myListOfShape;
150 HLRAlgo_Projector myProjector;
151 Handle_HLRBRep_Algo myAlgo;
152 Handle_HLRBRep_PolyAlgo myPolyAlgo;
158 #include <ISession2D_Shape.lxx>
162 // other Inline functions and methods (like "C++: function call" methods)