0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / Geom2dInt / Geom2dInt_GInter.hxx
CommitLineData
42cf5bc1 1// Created on: 1992-06-04
2// Created by: Jacques GOUSSARD
3// Copyright (c) 1992-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 _Geom2dInt_GInter_HeaderFile
18#define _Geom2dInt_GInter_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <Standard_Real.hxx>
25#include <IntCurve_IntConicConic.hxx>
26#include <Geom2dInt_TheIntConicCurveOfGInter.hxx>
27#include <Geom2dInt_TheIntPCurvePCurveOfGInter.hxx>
28#include <IntRes2d_Intersection.hxx>
29#include <Standard_Boolean.hxx>
30#include <Standard_Integer.hxx>
31#include <TColStd_Array1OfReal.hxx>
32class Standard_ConstructionError;
33class Adaptor2d_Curve2d;
34class Geom2dInt_Geom2dCurveTool;
35class Geom2dInt_TheProjPCurOfGInter;
36class Geom2dInt_TheCurveLocatorOfTheProjPCurOfGInter;
37class Geom2dInt_TheLocateExtPCOfTheProjPCurOfGInter;
38class Geom2dInt_TheIntConicCurveOfGInter;
39class Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter;
40class Geom2dInt_IntConicCurveOfGInter;
41class Geom2dInt_TheIntPCurvePCurveOfGInter;
42class Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter;
43class Geom2dInt_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfGInter;
44class Geom2dInt_ExactIntersectionPointOfTheIntPCurvePCurveOfGInter;
45class IntRes2d_Domain;
46
47
48
49class Geom2dInt_GInter : public IntRes2d_Intersection
50{
51public:
52
53 DEFINE_STANDARD_ALLOC
54
55
56 Geom2dInt_GInter();
57
58 Geom2dInt_GInter(const Adaptor2d_Curve2d& C, const Standard_Real TolConf, const Standard_Real Tol);
59
60 Geom2dInt_GInter(const Adaptor2d_Curve2d& C, const IntRes2d_Domain& D, const Standard_Real TolConf, const Standard_Real Tol);
61
62 Geom2dInt_GInter(const Adaptor2d_Curve2d& C1, const Adaptor2d_Curve2d& C2, const Standard_Real TolConf, const Standard_Real Tol);
63
64 Geom2dInt_GInter(const Adaptor2d_Curve2d& C1, const IntRes2d_Domain& D1, const Adaptor2d_Curve2d& C2, const Standard_Real TolConf, const Standard_Real Tol);
65
66 Geom2dInt_GInter(const Adaptor2d_Curve2d& C1, const Adaptor2d_Curve2d& C2, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
67
68 Geom2dInt_GInter(const Adaptor2d_Curve2d& C1, const IntRes2d_Domain& D1, const Adaptor2d_Curve2d& C2, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
69
70 Standard_EXPORT void Perform (const Adaptor2d_Curve2d& C1, const IntRes2d_Domain& D1, const Adaptor2d_Curve2d& C2, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
71
72 void Perform (const Adaptor2d_Curve2d& C1, const Adaptor2d_Curve2d& C2, const Standard_Real TolConf, const Standard_Real Tol);
73
74 Standard_EXPORT void Perform (const Adaptor2d_Curve2d& C1, const IntRes2d_Domain& D1, const Standard_Real TolConf, const Standard_Real Tol);
75
76 Standard_EXPORT void Perform (const Adaptor2d_Curve2d& C1, const Standard_Real TolConf, const Standard_Real Tol);
77
78 void Perform (const Adaptor2d_Curve2d& C1, const IntRes2d_Domain& D1, const Adaptor2d_Curve2d& C2, const Standard_Real TolConf, const Standard_Real Tol);
79
80 void Perform (const Adaptor2d_Curve2d& C1, const Adaptor2d_Curve2d& C2, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
81
82 Standard_EXPORT IntRes2d_Domain ComputeDomain (const Adaptor2d_Curve2d& C1, const Standard_Real TolDomain) const;
83
84
85
86
87protected:
88
89
90
91
92
93private:
94
95
96 Standard_EXPORT void InternalPerform (const Adaptor2d_Curve2d& C1, const IntRes2d_Domain& D1, const Adaptor2d_Curve2d& C2, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol, const Standard_Boolean Composite);
97
98 Standard_EXPORT void InternalCompositePerform_noRecurs (const Standard_Integer NbInterC1, const Adaptor2d_Curve2d& C1, const Standard_Integer NumInterC1, const TColStd_Array1OfReal& Tab1, const IntRes2d_Domain& D1, const Standard_Integer NbInterC2, const Adaptor2d_Curve2d& C2, const Standard_Integer NumInterC2, const TColStd_Array1OfReal& Tab2, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
99
100 Standard_EXPORT void InternalCompositePerform (const Adaptor2d_Curve2d& C1, const IntRes2d_Domain& D1, const Standard_Integer N1, const Standard_Integer NB1, const TColStd_Array1OfReal& Tab1, const Adaptor2d_Curve2d& C2, const IntRes2d_Domain& D2, const Standard_Integer N2, const Standard_Integer NB2, const TColStd_Array1OfReal& Tab2, const Standard_Real TolConf, const Standard_Real Tol, const Standard_Boolean Composite);
101
102
103 Standard_Real param1inf;
104 Standard_Real param1sup;
105 Standard_Real param2inf;
106 Standard_Real param2sup;
107 IntCurve_IntConicConic intconiconi;
108 Geom2dInt_TheIntConicCurveOfGInter intconicurv;
109 Geom2dInt_TheIntPCurvePCurveOfGInter intcurvcurv;
110
111
112};
113
114#define TheCurve Adaptor2d_Curve2d
115#define TheCurve_hxx <Adaptor2d_Curve2d.hxx>
116#define TheCurveTool Geom2dInt_Geom2dCurveTool
117#define TheCurveTool_hxx <Geom2dInt_Geom2dCurveTool.hxx>
118#define IntCurve_TheProjPCur Geom2dInt_TheProjPCurOfGInter
119#define IntCurve_TheProjPCur_hxx <Geom2dInt_TheProjPCurOfGInter.hxx>
120#define IntCurve_TheCurveLocatorOfTheProjPCur Geom2dInt_TheCurveLocatorOfTheProjPCurOfGInter
121#define IntCurve_TheCurveLocatorOfTheProjPCur_hxx <Geom2dInt_TheCurveLocatorOfTheProjPCurOfGInter.hxx>
122#define IntCurve_TheLocateExtPCOfTheProjPCur Geom2dInt_TheLocateExtPCOfTheProjPCurOfGInter
123#define IntCurve_TheLocateExtPCOfTheProjPCur_hxx <Geom2dInt_TheLocateExtPCOfTheProjPCurOfGInter.hxx>
124#define IntCurve_TheCurveLocatorOfTheProjPCur Geom2dInt_TheCurveLocatorOfTheProjPCurOfGInter
125#define IntCurve_TheCurveLocatorOfTheProjPCur_hxx <Geom2dInt_TheCurveLocatorOfTheProjPCurOfGInter.hxx>
126#define IntCurve_TheLocateExtPCOfTheProjPCur Geom2dInt_TheLocateExtPCOfTheProjPCurOfGInter
127#define IntCurve_TheLocateExtPCOfTheProjPCur_hxx <Geom2dInt_TheLocateExtPCOfTheProjPCurOfGInter.hxx>
128#define IntCurve_TheIntConicCurve Geom2dInt_TheIntConicCurveOfGInter
129#define IntCurve_TheIntConicCurve_hxx <Geom2dInt_TheIntConicCurveOfGInter.hxx>
130#define IntCurve_TheIntersectorOfTheIntConicCurve Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter
131#define IntCurve_TheIntersectorOfTheIntConicCurve_hxx <Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter.hxx>
132#define IntCurve_TheIntersectorOfTheIntConicCurve Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter
133#define IntCurve_TheIntersectorOfTheIntConicCurve_hxx <Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter.hxx>
134#define IntCurve_IntConicCurve Geom2dInt_IntConicCurveOfGInter
135#define IntCurve_IntConicCurve_hxx <Geom2dInt_IntConicCurveOfGInter.hxx>
136#define IntCurve_TheIntPCurvePCurve Geom2dInt_TheIntPCurvePCurveOfGInter
137#define IntCurve_TheIntPCurvePCurve_hxx <Geom2dInt_TheIntPCurvePCurveOfGInter.hxx>
138#define IntCurve_ThePolygon2dOfTheIntPCurvePCurve Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter
139#define IntCurve_ThePolygon2dOfTheIntPCurvePCurve_hxx <Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter.hxx>
140#define IntCurve_TheDistBetweenPCurvesOfTheIntPCurvePCurve Geom2dInt_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfGInter
141#define IntCurve_TheDistBetweenPCurvesOfTheIntPCurvePCurve_hxx <Geom2dInt_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfGInter.hxx>
142#define IntCurve_ExactIntersectionPointOfTheIntPCurvePCurve Geom2dInt_ExactIntersectionPointOfTheIntPCurvePCurveOfGInter
143#define IntCurve_ExactIntersectionPointOfTheIntPCurvePCurve_hxx <Geom2dInt_ExactIntersectionPointOfTheIntPCurvePCurveOfGInter.hxx>
144#define IntCurve_ThePolygon2dOfTheIntPCurvePCurve Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter
145#define IntCurve_ThePolygon2dOfTheIntPCurvePCurve_hxx <Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter.hxx>
146#define IntCurve_TheDistBetweenPCurvesOfTheIntPCurvePCurve Geom2dInt_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfGInter
147#define IntCurve_TheDistBetweenPCurvesOfTheIntPCurvePCurve_hxx <Geom2dInt_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfGInter.hxx>
148#define IntCurve_ExactIntersectionPointOfTheIntPCurvePCurve Geom2dInt_ExactIntersectionPointOfTheIntPCurvePCurveOfGInter
149#define IntCurve_ExactIntersectionPointOfTheIntPCurvePCurve_hxx <Geom2dInt_ExactIntersectionPointOfTheIntPCurvePCurveOfGInter.hxx>
150#define IntCurve_IntCurveCurveGen Geom2dInt_GInter
151#define IntCurve_IntCurveCurveGen_hxx <Geom2dInt_GInter.hxx>
152
153#include <IntCurve_IntCurveCurveGen.lxx>
154
155#undef TheCurve
156#undef TheCurve_hxx
157#undef TheCurveTool
158#undef TheCurveTool_hxx
159#undef IntCurve_TheProjPCur
160#undef IntCurve_TheProjPCur_hxx
161#undef IntCurve_TheCurveLocatorOfTheProjPCur
162#undef IntCurve_TheCurveLocatorOfTheProjPCur_hxx
163#undef IntCurve_TheLocateExtPCOfTheProjPCur
164#undef IntCurve_TheLocateExtPCOfTheProjPCur_hxx
165#undef IntCurve_TheCurveLocatorOfTheProjPCur
166#undef IntCurve_TheCurveLocatorOfTheProjPCur_hxx
167#undef IntCurve_TheLocateExtPCOfTheProjPCur
168#undef IntCurve_TheLocateExtPCOfTheProjPCur_hxx
169#undef IntCurve_TheIntConicCurve
170#undef IntCurve_TheIntConicCurve_hxx
171#undef IntCurve_TheIntersectorOfTheIntConicCurve
172#undef IntCurve_TheIntersectorOfTheIntConicCurve_hxx
173#undef IntCurve_TheIntersectorOfTheIntConicCurve
174#undef IntCurve_TheIntersectorOfTheIntConicCurve_hxx
175#undef IntCurve_IntConicCurve
176#undef IntCurve_IntConicCurve_hxx
177#undef IntCurve_TheIntPCurvePCurve
178#undef IntCurve_TheIntPCurvePCurve_hxx
179#undef IntCurve_ThePolygon2dOfTheIntPCurvePCurve
180#undef IntCurve_ThePolygon2dOfTheIntPCurvePCurve_hxx
181#undef IntCurve_TheDistBetweenPCurvesOfTheIntPCurvePCurve
182#undef IntCurve_TheDistBetweenPCurvesOfTheIntPCurvePCurve_hxx
183#undef IntCurve_ExactIntersectionPointOfTheIntPCurvePCurve
184#undef IntCurve_ExactIntersectionPointOfTheIntPCurvePCurve_hxx
185#undef IntCurve_ThePolygon2dOfTheIntPCurvePCurve
186#undef IntCurve_ThePolygon2dOfTheIntPCurvePCurve_hxx
187#undef IntCurve_TheDistBetweenPCurvesOfTheIntPCurvePCurve
188#undef IntCurve_TheDistBetweenPCurvesOfTheIntPCurvePCurve_hxx
189#undef IntCurve_ExactIntersectionPointOfTheIntPCurvePCurve
190#undef IntCurve_ExactIntersectionPointOfTheIntPCurvePCurve_hxx
191#undef IntCurve_IntCurveCurveGen
192#undef IntCurve_IntCurveCurveGen_hxx
193
194
195
196
197#endif // _Geom2dInt_GInter_HeaderFile