42cf5bc1 |
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 |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
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. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _TopOpeBRepDS_GapTool_HeaderFile |
18 | #define _TopOpeBRepDS_GapTool_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <TopOpeBRepDS_DataMapOfIntegerListOfInterference.hxx> |
24 | #include <TopOpeBRepDS_DataMapOfInterferenceShape.hxx> |
25 | #include <MMgt_TShared.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; |
33 | class TopoDS_Shape; |
34 | |
35 | |
36 | class TopOpeBRepDS_GapTool; |
37 | DEFINE_STANDARD_HANDLE(TopOpeBRepDS_GapTool, MMgt_TShared) |
38 | |
39 | |
40 | class TopOpeBRepDS_GapTool : public MMgt_TShared |
41 | { |
42 | |
43 | public: |
44 | |
45 | |
46 | Standard_EXPORT TopOpeBRepDS_GapTool(); |
47 | |
48 | Standard_EXPORT TopOpeBRepDS_GapTool(const Handle(TopOpeBRepDS_HDataStructure)& HDS); |
49 | |
50 | Standard_EXPORT void Init (const Handle(TopOpeBRepDS_HDataStructure)& HDS); |
51 | |
52 | Standard_EXPORT const TopOpeBRepDS_ListOfInterference& Interferences (const Standard_Integer IndexPoint) const; |
53 | |
54 | Standard_EXPORT const TopOpeBRepDS_ListOfInterference& SameInterferences (const Handle(TopOpeBRepDS_Interference)& I) const; |
55 | |
56 | Standard_EXPORT TopOpeBRepDS_ListOfInterference& ChangeSameInterferences (const Handle(TopOpeBRepDS_Interference)& I); |
57 | |
58 | Standard_EXPORT Standard_Boolean Curve (const Handle(TopOpeBRepDS_Interference)& I, TopOpeBRepDS_Curve& C) const; |
59 | |
60 | Standard_EXPORT Standard_Boolean EdgeSupport (const Handle(TopOpeBRepDS_Interference)& I, TopoDS_Shape& E) const; |
61 | |
62 | //! Return les faces qui ont genere la section origine |
63 | //! de I |
64 | Standard_EXPORT Standard_Boolean FacesSupport (const Handle(TopOpeBRepDS_Interference)& I, TopoDS_Shape& F1, TopoDS_Shape& F2) const; |
65 | |
66 | Standard_EXPORT Standard_Boolean ParameterOnEdge (const Handle(TopOpeBRepDS_Interference)& I, const TopoDS_Shape& E, Standard_Real& U) const; |
67 | |
68 | Standard_EXPORT void SetPoint (const Handle(TopOpeBRepDS_Interference)& I, const Standard_Integer IndexPoint); |
69 | |
70 | Standard_EXPORT void SetParameterOnEdge (const Handle(TopOpeBRepDS_Interference)& I, const TopoDS_Shape& E, const Standard_Real U); |
71 | |
72 | |
73 | |
74 | |
92efcf78 |
75 | DEFINE_STANDARD_RTTIEXT(TopOpeBRepDS_GapTool,MMgt_TShared) |
42cf5bc1 |
76 | |
77 | protected: |
78 | |
79 | |
80 | |
81 | |
82 | private: |
83 | |
84 | |
85 | Handle(TopOpeBRepDS_HDataStructure) myHDS; |
86 | TopOpeBRepDS_DataMapOfIntegerListOfInterference myGToI; |
87 | TopOpeBRepDS_DataMapOfInterferenceShape myInterToShape; |
88 | |
89 | |
90 | }; |
91 | |
92 | |
93 | |
94 | |
95 | |
96 | |
97 | |
98 | #endif // _TopOpeBRepDS_GapTool_HeaderFile |