summaryrefslogtreecommitdiff
path: root/inc/IntTools.hxx
blob: 5de9399fcdb85a2e1063abf06dfda22da35120ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _IntTools_HeaderFile
#define _IntTools_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_Geom_Curve_HeaderFile
#include <Handle_Geom_Curve.hxx>
#endif
class TopoDS_Edge;
class IntTools_SequenceOfRoots;
class gp_Pnt;
class Geom_Curve;
class BRepAdaptor_Curve;
class IntTools_CArray1OfReal;
class IntTools_Range;
class IntTools_CommonPrt;
class IntTools_Root;
class IntTools_Compare;
class IntTools_CompareRange;
class IntTools_EdgeEdge;
class IntTools_EdgeFace;
class IntTools_FClass2d;
class IntTools_LineConstructor;
class IntTools_MarkedRangeSet;
class IntTools_BaseRangeSample;
class IntTools_CurveRangeSample;
class IntTools_SurfaceRangeSample;
class IntTools_CurveRangeLocalizeData;
class IntTools_SurfaceRangeLocalizeData;
class IntTools_BeanFaceIntersector;
class IntTools_BeanBeanIntersector;
class IntTools_Curve;
class IntTools_PntOnFace;
class IntTools_PntOn2Faces;
class IntTools_TopolTool;
class IntTools_FaceFace;
class IntTools_ShrunkRange;
class IntTools_Context;
class IntTools_Tools;
class IntTools_CArray1;
class IntTools_SequenceOfPntOn2Faces;
class IntTools_SequenceOfCurves;
class IntTools_SequenceOfRanges;
class IntTools_CArray1OfInteger;
class IntTools_CArray1OfReal;
class IntTools_SequenceOfRoots;
class IntTools_Array1OfRoots;
class IntTools_Array1OfRange;
class IntTools_QuickSort;
class IntTools_QuickSortRange;
class IntTools_SequenceOfCommonPrts;
class IntTools_IndexedDataMapOfTransientAddress;
class IntTools_ListOfCurveRangeSample;
class IntTools_ListOfSurfaceRangeSample;
class IntTools_ListOfBox;
class IntTools_CurveRangeSampleMapHasher;
class IntTools_SurfaceRangeSampleMapHasher;
class IntTools_MapOfCurveSample;
class IntTools_MapOfSurfaceSample;
class IntTools_DataMapOfCurveSampleBox;
class IntTools_DataMapOfSurfaceSampleBox;
class IntTools_SequenceNodeOfSequenceOfPntOn2Faces;
class IntTools_SequenceNodeOfSequenceOfCurves;
class IntTools_SequenceNodeOfSequenceOfRanges;
class IntTools_SequenceNodeOfSequenceOfRoots;
class IntTools_SequenceNodeOfSequenceOfCommonPrts;
class IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress;
class IntTools_ListNodeOfListOfCurveRangeSample;
class IntTools_ListIteratorOfListOfCurveRangeSample;
class IntTools_ListNodeOfListOfSurfaceRangeSample;
class IntTools_ListIteratorOfListOfSurfaceRangeSample;
class IntTools_ListNodeOfListOfBox;
class IntTools_ListIteratorOfListOfBox;
class IntTools_StdMapNodeOfMapOfCurveSample;
class IntTools_MapIteratorOfMapOfCurveSample;
class IntTools_StdMapNodeOfMapOfSurfaceSample;
class IntTools_MapIteratorOfMapOfSurfaceSample;
class IntTools_DataMapNodeOfDataMapOfCurveSampleBox;
class IntTools_DataMapIteratorOfDataMapOfCurveSampleBox;
class IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox;
class IntTools_DataMapIteratorOfDataMapOfSurfaceSampleBox;


//! Contains classes for intersection and classification <br>
//!         purposes and accompanying classes <br>
class IntTools  {
public:

  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  //!  returns the length of the edge; <br>
  Standard_EXPORT   static  Standard_Real Length(const TopoDS_Edge& E) ;
  //! Remove from  the  sequence aSeq the Roots  that  have <br>
//!          values ti and tj such as  |ti-tj]  <  anEpsT. <br>
  Standard_EXPORT   static  void RemoveIdenticalRoots(IntTools_SequenceOfRoots& aSeq,const Standard_Real anEpsT) ;
  //! Sort the sequence aSeq of the Roots to arrange the <br>
//!          Roons  in  increasing  order <br>
  Standard_EXPORT   static  void SortRoots(IntTools_SequenceOfRoots& aSeq,const Standard_Real anEpsT) ;
  //! Find the states (before  and  after) for  each  Root <br>
//!          from  the sequence aSeq <br>
  Standard_EXPORT   static  void FindRootStates(IntTools_SequenceOfRoots& aSeq,const Standard_Real anEpsNull) ;
  
  Standard_EXPORT   static  Standard_Integer Parameter(const gp_Pnt& P,const Handle(Geom_Curve)& Curve,Standard_Real& aParm) ;
  
  Standard_EXPORT   static  Standard_Integer GetRadius(const BRepAdaptor_Curve& C,const Standard_Real t1,const Standard_Real t3,Standard_Real& R) ;
  
  Standard_EXPORT   static  Standard_Integer PrepareArgs(BRepAdaptor_Curve& C,const Standard_Real tMax,const Standard_Real tMin,const Standard_Integer Discret,const Standard_Real Deflect,IntTools_CArray1OfReal& anArgs) ;





protected:





private:




friend class IntTools_Range;
friend class IntTools_CommonPrt;
friend class IntTools_Root;
friend class IntTools_Compare;
friend class IntTools_CompareRange;
friend class IntTools_EdgeEdge;
friend class IntTools_EdgeFace;
friend class IntTools_FClass2d;
friend class IntTools_LineConstructor;
friend class IntTools_MarkedRangeSet;
friend class IntTools_BaseRangeSample;
friend class IntTools_CurveRangeSample;
friend class IntTools_SurfaceRangeSample;
friend class IntTools_CurveRangeLocalizeData;
friend class IntTools_SurfaceRangeLocalizeData;
friend class IntTools_BeanFaceIntersector;
friend class IntTools_BeanBeanIntersector;
friend class IntTools_Curve;
friend class IntTools_PntOnFace;
friend class IntTools_PntOn2Faces;
friend class IntTools_TopolTool;
friend class IntTools_FaceFace;
friend class IntTools_ShrunkRange;
friend class IntTools_Context;
friend class IntTools_Tools;
friend class IntTools_CArray1;
friend class IntTools_SequenceOfPntOn2Faces;
friend class IntTools_SequenceOfCurves;
friend class IntTools_SequenceOfRanges;
friend class IntTools_CArray1OfInteger;
friend class IntTools_CArray1OfReal;
friend class IntTools_SequenceOfRoots;
friend class IntTools_Array1OfRoots;
friend class IntTools_Array1OfRange;
friend class IntTools_QuickSort;
friend class IntTools_QuickSortRange;
friend class IntTools_SequenceOfCommonPrts;
friend class IntTools_IndexedDataMapOfTransientAddress;
friend class IntTools_ListOfCurveRangeSample;
friend class IntTools_ListOfSurfaceRangeSample;
friend class IntTools_ListOfBox;
friend class IntTools_CurveRangeSampleMapHasher;
friend class IntTools_SurfaceRangeSampleMapHasher;
friend class IntTools_MapOfCurveSample;
friend class IntTools_MapOfSurfaceSample;
friend class IntTools_DataMapOfCurveSampleBox;
friend class IntTools_DataMapOfSurfaceSampleBox;
friend class IntTools_SequenceNodeOfSequenceOfPntOn2Faces;
friend class IntTools_SequenceNodeOfSequenceOfCurves;
friend class IntTools_SequenceNodeOfSequenceOfRanges;
friend class IntTools_SequenceNodeOfSequenceOfRoots;
friend class IntTools_SequenceNodeOfSequenceOfCommonPrts;
friend class IntTools_IndexedDataMapNodeOfIndexedDataMapOfTransientAddress;
friend class IntTools_ListNodeOfListOfCurveRangeSample;
friend class IntTools_ListIteratorOfListOfCurveRangeSample;
friend class IntTools_ListNodeOfListOfSurfaceRangeSample;
friend class IntTools_ListIteratorOfListOfSurfaceRangeSample;
friend class IntTools_ListNodeOfListOfBox;
friend class IntTools_ListIteratorOfListOfBox;
friend class IntTools_StdMapNodeOfMapOfCurveSample;
friend class IntTools_MapIteratorOfMapOfCurveSample;
friend class IntTools_StdMapNodeOfMapOfSurfaceSample;
friend class IntTools_MapIteratorOfMapOfSurfaceSample;
friend class IntTools_DataMapNodeOfDataMapOfCurveSampleBox;
friend class IntTools_DataMapIteratorOfDataMapOfCurveSampleBox;
friend class IntTools_DataMapNodeOfDataMapOfSurfaceSampleBox;
friend class IntTools_DataMapIteratorOfDataMapOfSurfaceSampleBox;

};





// other Inline functions and methods (like "C++: function call" methods)


#endif