0030480: Visualization - Clear of Select3D_SensitiveGroup does not update internal...
[occt.git] / src / GeomInt / GeomInt_TheImpPrmSvSurfacesOfWLApprox.hxx
1 // Created on: 1995-01-27
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1995-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 _GeomInt_TheImpPrmSvSurfacesOfWLApprox_HeaderFile
18 #define _GeomInt_TheImpPrmSvSurfacesOfWLApprox_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <gp_Pnt2d.hxx>
25 #include <gp_Pnt.hxx>
26 #include <gp_Vec2d.hxx>
27 #include <gp_Vec.hxx>
28 #include <Standard_Boolean.hxx>
29 #include <GeomInt_TheZerImpFuncOfTheImpPrmSvSurfacesOfWLApprox.hxx>
30 #include <ApproxInt_SvSurfaces.hxx>
31 #include <Standard_Real.hxx>
32 class Adaptor3d_HSurface;
33 class Adaptor3d_HSurfaceTool;
34 class IntSurf_Quadric;
35 class IntSurf_QuadricTool;
36 class IntPatch_WLine;
37 class GeomInt_TheZerImpFuncOfTheImpPrmSvSurfacesOfWLApprox;
38 class gp_Pnt;
39 class gp_Vec;
40 class gp_Vec2d;
41
42
43
44 class GeomInt_TheImpPrmSvSurfacesOfWLApprox  : public ApproxInt_SvSurfaces
45 {
46 public:
47
48   DEFINE_STANDARD_ALLOC
49
50   
51   Standard_EXPORT GeomInt_TheImpPrmSvSurfacesOfWLApprox(const Handle(Adaptor3d_HSurface)& Surf1, const IntSurf_Quadric& Surf2);
52   
53   Standard_EXPORT GeomInt_TheImpPrmSvSurfacesOfWLApprox(const IntSurf_Quadric& Surf1, const Handle(Adaptor3d_HSurface)& Surf2);
54   
55   //! returns True if Tg,Tguv1 Tguv2 can be computed.
56   Standard_EXPORT Standard_Boolean Compute (Standard_Real& u1, Standard_Real& v1, Standard_Real& u2, Standard_Real& v2,
57                                             gp_Pnt& Pt, gp_Vec& Tg, gp_Vec2d& Tguv1, gp_Vec2d& Tguv2);
58   
59   Standard_EXPORT void Pnt (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Pnt& P);
60   
61   Standard_EXPORT Standard_Boolean SeekPoint(const Standard_Real u1,
62                                              const Standard_Real v1,
63                                              const Standard_Real u2,
64                                              const Standard_Real v2,
65                                              IntSurf_PntOn2S& Point);
66   
67   Standard_EXPORT Standard_Boolean Tangency (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Vec& Tg);
68   
69   Standard_EXPORT Standard_Boolean TangencyOnSurf1 (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Vec2d& Tg);
70   
71   Standard_EXPORT Standard_Boolean TangencyOnSurf2 (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Vec2d& Tg);
72
73   Standard_Boolean FillInitialVectorOfSolution(const Standard_Real u1,
74                                                const Standard_Real v1,
75                                                const Standard_Real u2,
76                                                const Standard_Real v2,
77                                                const Standard_Real binfu,
78                                                const Standard_Real bsupu,
79                                                const Standard_Real binfv,
80                                                const Standard_Real bsupv,
81                                                math_Vector& X,
82                                                Standard_Real& TranslationU,
83                                                Standard_Real& TranslationV);
84
85
86 protected:
87
88
89
90
91
92 private:
93
94
95
96   gp_Pnt2d MyParOnS1;
97   gp_Pnt2d MyParOnS2;
98   gp_Pnt MyPnt;
99   gp_Vec2d MyTguv1;
100   gp_Vec2d MyTguv2;
101   gp_Vec MyTg;
102   Standard_Boolean MyIsTangent;
103   Standard_Boolean MyHasBeenComputed;
104   gp_Pnt2d MyParOnS1bis;
105   gp_Pnt2d MyParOnS2bis;
106   gp_Pnt MyPntbis;
107   gp_Vec2d MyTguv1bis;
108   gp_Vec2d MyTguv2bis;
109   gp_Vec MyTgbis;
110   Standard_Boolean MyIsTangentbis;
111   Standard_Boolean MyHasBeenComputedbis;
112   Standard_Boolean MyImplicitFirst;
113   GeomInt_TheZerImpFuncOfTheImpPrmSvSurfacesOfWLApprox MyZerImpFunc;
114
115
116 };
117
118
119
120
121
122
123
124 #endif // _GeomInt_TheImpPrmSvSurfacesOfWLApprox_HeaderFile