1 // Created on: 1998-08-20
2 // Created by: Yves FRICAUD
3 // Copyright (c) 1998-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _TopOpeBRepDS_GapTool_HeaderFile
18 #define _TopOpeBRepDS_GapTool_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <TopOpeBRepDS_DataMapOfIntegerListOfInterference.hxx>
24 #include <TopOpeBRepDS_DataMapOfInterferenceShape.hxx>
25 #include <Standard_Transient.hxx>
26 #include <TopOpeBRepDS_ListOfInterference.hxx>
27 #include <Standard_Integer.hxx>
28 #include <Standard_Boolean.hxx>
29 #include <Standard_Real.hxx>
30 class TopOpeBRepDS_HDataStructure;
31 class TopOpeBRepDS_Interference;
32 class TopOpeBRepDS_Curve;
36 class TopOpeBRepDS_GapTool;
37 DEFINE_STANDARD_HANDLE(TopOpeBRepDS_GapTool, Standard_Transient)
40 class TopOpeBRepDS_GapTool : public Standard_Transient
46 Standard_EXPORT TopOpeBRepDS_GapTool();
48 Standard_EXPORT TopOpeBRepDS_GapTool(const Handle(TopOpeBRepDS_HDataStructure)& HDS);
50 Standard_EXPORT void Init (const Handle(TopOpeBRepDS_HDataStructure)& HDS);
52 Standard_EXPORT const TopOpeBRepDS_ListOfInterference& Interferences (const Standard_Integer IndexPoint) const;
54 Standard_EXPORT const TopOpeBRepDS_ListOfInterference& SameInterferences (const Handle(TopOpeBRepDS_Interference)& I) const;
56 Standard_EXPORT TopOpeBRepDS_ListOfInterference& ChangeSameInterferences (const Handle(TopOpeBRepDS_Interference)& I);
58 Standard_EXPORT Standard_Boolean Curve (const Handle(TopOpeBRepDS_Interference)& I, TopOpeBRepDS_Curve& C) const;
60 Standard_EXPORT Standard_Boolean EdgeSupport (const Handle(TopOpeBRepDS_Interference)& I, TopoDS_Shape& E) const;
62 //! Return les faces qui ont genere la section origine
64 Standard_EXPORT Standard_Boolean FacesSupport (const Handle(TopOpeBRepDS_Interference)& I, TopoDS_Shape& F1, TopoDS_Shape& F2) const;
66 Standard_EXPORT Standard_Boolean ParameterOnEdge (const Handle(TopOpeBRepDS_Interference)& I, const TopoDS_Shape& E, Standard_Real& U) const;
68 Standard_EXPORT void SetPoint (const Handle(TopOpeBRepDS_Interference)& I, const Standard_Integer IndexPoint);
70 Standard_EXPORT void SetParameterOnEdge (const Handle(TopOpeBRepDS_Interference)& I, const TopoDS_Shape& E, const Standard_Real U);
75 DEFINE_STANDARD_RTTIEXT(TopOpeBRepDS_GapTool,Standard_Transient)
85 Handle(TopOpeBRepDS_HDataStructure) myHDS;
86 TopOpeBRepDS_DataMapOfIntegerListOfInterference myGToI;
87 TopOpeBRepDS_DataMapOfInterferenceShape myInterToShape;
98 #endif // _TopOpeBRepDS_GapTool_HeaderFile