0031642: Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying...
[occt.git] / src / HLRBRep / HLRBRep_TheIntConicCurveOfCInter.hxx
1 // Created on: 1992-10-14
2 // Created by: Christophe MARION
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 _HLRBRep_TheIntConicCurveOfCInter_HeaderFile
18 #define _HLRBRep_TheIntConicCurveOfCInter_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <IntRes2d_Intersection.hxx>
25 #include <Standard_Address.hxx>
26 #include <Standard_Real.hxx>
27 class IntCurve_IConicTool;
28 class HLRBRep_CurveTool;
29 class HLRBRep_TheProjPCurOfCInter;
30 class HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter;
31 class HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter;
32 class gp_Lin2d;
33 class IntRes2d_Domain;
34 class gp_Circ2d;
35 class gp_Elips2d;
36 class gp_Parab2d;
37 class gp_Hypr2d;
38
39
40
41 class HLRBRep_TheIntConicCurveOfCInter  : public IntRes2d_Intersection
42 {
43 public:
44
45   DEFINE_STANDARD_ALLOC
46
47   
48   //! Empty constructor.
49     HLRBRep_TheIntConicCurveOfCInter();
50   
51   //! Intersection between a line and a parametric curve.
52     HLRBRep_TheIntConicCurveOfCInter(const gp_Lin2d& L, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
53   
54   //! Intersection between a line and a parametric curve.
55   Standard_EXPORT HLRBRep_TheIntConicCurveOfCInter(const gp_Circ2d& C, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
56   
57   //! Intersection between an ellipse and a parametric curve.
58   Standard_EXPORT HLRBRep_TheIntConicCurveOfCInter(const gp_Elips2d& E, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
59   
60   //! Intersection between a parabola and a parametric curve.
61   Standard_EXPORT HLRBRep_TheIntConicCurveOfCInter(const gp_Parab2d& Prb, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
62   
63   //! Intersection between the main branch of an hyperbola
64   //! and a parametric curve.
65   Standard_EXPORT HLRBRep_TheIntConicCurveOfCInter(const gp_Hypr2d& H, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
66   
67   //! Intersection between a line and a parametric curve.
68     void Perform (const gp_Lin2d& L, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
69   
70   //! Intersection between a line and a parametric curve.
71     void Perform (const gp_Circ2d& C, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
72   
73   //! Intersection between an ellipse and a parametric curve.
74     void Perform (const gp_Elips2d& E, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
75   
76   //! Intersection between a parabola and a parametric curve.
77     void Perform (const gp_Parab2d& Prb, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
78   
79   //! Intersection between the main branch of an hyperbola
80   //! and a parametric curve.
81     void Perform (const gp_Hypr2d& H, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
82
83
84
85
86 protected:
87
88
89
90
91
92 private:
93
94   
95   //! Intersection between a conic fom gp
96   //! and a parametric curve.
97     void Perform (const IntCurve_IConicTool& ICurve, const IntRes2d_Domain& D1, const Standard_Address& PCurve, const IntRes2d_Domain& D2, const Standard_Real TolConf, const Standard_Real Tol);
98
99
100
101
102 };
103
104 #define TheImpTool IntCurve_IConicTool
105 #define TheImpTool_hxx <IntCurve_IConicTool.hxx>
106 #define ThePCurve Standard_Address
107 #define ThePCurve_hxx <Standard_Address.hxx>
108 #define ThePCurveTool HLRBRep_CurveTool
109 #define ThePCurveTool_hxx <HLRBRep_CurveTool.hxx>
110 #define TheProjPCur HLRBRep_TheProjPCurOfCInter
111 #define TheProjPCur_hxx <HLRBRep_TheProjPCurOfCInter.hxx>
112 #define IntCurve_TheIntersector HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter
113 #define IntCurve_TheIntersector_hxx <HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter.hxx>
114 #define IntCurve_MyImpParToolOfTheIntersector HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter
115 #define IntCurve_MyImpParToolOfTheIntersector_hxx <HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter.hxx>
116 #define IntCurve_MyImpParToolOfTheIntersector HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter
117 #define IntCurve_MyImpParToolOfTheIntersector_hxx <HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter.hxx>
118 #define IntCurve_IntConicCurveGen HLRBRep_TheIntConicCurveOfCInter
119 #define IntCurve_IntConicCurveGen_hxx <HLRBRep_TheIntConicCurveOfCInter.hxx>
120
121 #include <IntCurve_IntConicCurveGen.lxx>
122
123 #undef TheImpTool
124 #undef TheImpTool_hxx
125 #undef ThePCurve
126 #undef ThePCurve_hxx
127 #undef ThePCurveTool
128 #undef ThePCurveTool_hxx
129 #undef TheProjPCur
130 #undef TheProjPCur_hxx
131 #undef IntCurve_TheIntersector
132 #undef IntCurve_TheIntersector_hxx
133 #undef IntCurve_MyImpParToolOfTheIntersector
134 #undef IntCurve_MyImpParToolOfTheIntersector_hxx
135 #undef IntCurve_MyImpParToolOfTheIntersector
136 #undef IntCurve_MyImpParToolOfTheIntersector_hxx
137 #undef IntCurve_IntConicCurveGen
138 #undef IntCurve_IntConicCurveGen_hxx
139
140
141
142
143 #endif // _HLRBRep_TheIntConicCurveOfCInter_HeaderFile