6e4f1767021002f29ee737e39e1e4b921641731d
[occt.git] / src / BRepApprox / BRepApprox_TheImpPrmSvSurfacesOfApprox.hxx
1 // Created on: 1995-06-06
2 // Created by: Jean Yves LEBEY
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 _BRepApprox_TheImpPrmSvSurfacesOfApprox_HeaderFile
18 #define _BRepApprox_TheImpPrmSvSurfacesOfApprox_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 <BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox.hxx>
30 #include <ApproxInt_SvSurfaces.hxx>
31 #include <Standard_Real.hxx>
32 class BRepAdaptor_Surface;
33 class BRepApprox_SurfaceTool;
34 class IntSurf_Quadric;
35 class IntSurf_QuadricTool;
36 class BRepApprox_ApproxLine;
37 class BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox;
38 class gp_Pnt;
39 class gp_Vec;
40 class gp_Vec2d;
41
42
43
44 class BRepApprox_TheImpPrmSvSurfacesOfApprox  : public ApproxInt_SvSurfaces
45 {
46 public:
47
48   DEFINE_STANDARD_ALLOC
49
50   
51   Standard_EXPORT BRepApprox_TheImpPrmSvSurfacesOfApprox(const BRepAdaptor_Surface& Surf1, const IntSurf_Quadric& Surf2);
52   
53   Standard_EXPORT BRepApprox_TheImpPrmSvSurfacesOfApprox(const IntSurf_Quadric& Surf1, const BRepAdaptor_Surface& Surf2);
54   
55   Standard_EXPORT Standard_Boolean Compute (Standard_Real& u1, Standard_Real& v1, Standard_Real& u2, Standard_Real& v2, gp_Pnt& Pt, gp_Vec& Tg, gp_Vec2d& Tguv1, gp_Vec2d& Tguv2);
56   
57   Standard_EXPORT void Pnt (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Pnt& P);
58   
59   Standard_EXPORT Standard_Boolean Tangency (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Vec& Tg);
60   
61   Standard_EXPORT Standard_Boolean TangencyOnSurf1 (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Vec2d& Tg);
62   
63   Standard_EXPORT Standard_Boolean TangencyOnSurf2 (const Standard_Real u1, const Standard_Real v1, const Standard_Real u2, const Standard_Real v2, gp_Vec2d& Tg);
64
65
66
67
68 protected:
69
70
71
72
73
74 private:
75
76
77
78   gp_Pnt2d MyParOnS1;
79   gp_Pnt2d MyParOnS2;
80   gp_Pnt MyPnt;
81   gp_Vec2d MyTguv1;
82   gp_Vec2d MyTguv2;
83   gp_Vec MyTg;
84   Standard_Boolean MyIsTangent;
85   Standard_Boolean MyHasBeenComputed;
86   gp_Pnt2d MyParOnS1bis;
87   gp_Pnt2d MyParOnS2bis;
88   gp_Pnt MyPntbis;
89   gp_Vec2d MyTguv1bis;
90   gp_Vec2d MyTguv2bis;
91   gp_Vec MyTgbis;
92   Standard_Boolean MyIsTangentbis;
93   Standard_Boolean MyHasBeenComputedbis;
94   Standard_Boolean MyImplicitFirst;
95   BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox MyZerImpFunc;
96
97
98 };
99
100
101
102
103
104
105
106 #endif // _BRepApprox_TheImpPrmSvSurfacesOfApprox_HeaderFile