1 #ifndef _ISession2D_Shape_HeaderFile
2 #define _ISession2D_Shape_HeaderFile
4 #include <Standard_Macro.hxx>
5 #include <Standard_DefineHandle.hxx>
6 #include "TopoDS_Shape.hxx"
8 #include "SelectMgr_SelectableObject.hxx"
9 #include "Graphic3d_ArrayOfPolylines.hxx"
10 #include "AIS_InteractiveObject.hxx"
12 #include <HLRAlgo_Projector.hxx>
13 #include <HLRBRep_Algo.hxx>
14 #include <HLRBRep_PolyAlgo.hxx>
16 DEFINE_STANDARD_HANDLE(ISession2D_Shape,AIS_InteractiveObject)
17 class ISession2D_Shape : public AIS_InteractiveObject {
23 Standard_EXPORT ISession2D_Shape ();
24 void Standard_EXPORT Add(const TopoDS_Shape& aShape);
26 DEFINE_STANDARD_RTTI(ISession2D_Shape)
30 HLRAlgo_Projector& Projector() { return myProjector;};
31 Standard_EXPORT void SetProjector(HLRAlgo_Projector& aProjector);
34 Standard_Integer myNbIsos;
36 Standard_Integer& NbIsos() { return myNbIsos;};
37 Standard_EXPORT void SetNbIsos(Standard_Integer& aNbIsos) ;
39 Standard_Boolean AcceptShapeDecomposition() {return Standard_True;};
41 virtual Standard_Boolean AcceptSelectionMode(const Standard_Integer aMode) const
42 {return Standard_True; }
52 void DrawCompound(const Handle(Prs3d_Presentation)& thePresentation,const TopoDS_Shape& theCompound, const Handle(Prs3d_LineAspect) theAspect);
55 Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,const Handle(Prs3d_Presentation)& thePresentation,const Standard_Integer theMode = 0) ;
57 virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,const Standard_Integer aMode) ;
60 TopTools_ListOfShape myListOfShape;
61 HLRAlgo_Projector myProjector;
62 Handle(HLRBRep_Algo) myAlgo;
63 Handle(HLRBRep_PolyAlgo) myPolyAlgo;
69 // other inCurve functions and methods (like "C++: function call" methods)