0026788: Compiler warnings when OCCT_DEBUG is enabled
[occt.git] / src / Blend / Blend_Point.hxx
1 // Created on: 1993-12-02
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1993-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 _Blend_Point_HeaderFile
18 #define _Blend_Point_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <gp_Pnt.hxx>
25 #include <gp_Vec.hxx>
26 #include <Standard_Real.hxx>
27 #include <Standard_Boolean.hxx>
28 #include <gp_Vec2d.hxx>
29 class Standard_DomainError;
30 class gp_Pnt;
31 class gp_Vec;
32 class gp_Vec2d;
33
34
35
36 class Blend_Point 
37 {
38 public:
39
40   DEFINE_STANDARD_ALLOC
41
42   
43   Standard_EXPORT Blend_Point();
44   
45   //! Creates a point on 2 surfaces, with tangents.
46   Standard_EXPORT Blend_Point(const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const gp_Vec& Tg1, const gp_Vec& Tg2, const gp_Vec2d& Tg12d, const gp_Vec2d& Tg22d);
47   
48   //! Creates a point on 2 surfaces, without tangents.
49   Standard_EXPORT Blend_Point(const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2);
50   
51   //! Creates a point on a surface and a curve, with tangents.
52   Standard_EXPORT Blend_Point(const gp_Pnt& Pts, const gp_Pnt& Ptc, const Standard_Real Param, const Standard_Real U, const Standard_Real V, const Standard_Real W, const gp_Vec& Tgs, const gp_Vec& Tgc, const gp_Vec2d& Tg2d);
53   
54   //! Creates a point on a surface and a curve, without tangents.
55   Standard_EXPORT Blend_Point(const gp_Pnt& Pts, const gp_Pnt& Ptc, const Standard_Real Param, const Standard_Real U, const Standard_Real V, const Standard_Real W);
56   
57   //! Creates a point on a surface and a curve on surface,
58   //! with tangents.
59   Standard_EXPORT Blend_Point(const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const Standard_Real PC, const gp_Vec& Tg1, const gp_Vec& Tg2, const gp_Vec2d& Tg12d, const gp_Vec2d& Tg22d);
60   
61   //! Creates a point on a surface and a curve on surface,
62   //! without tangents.
63   Standard_EXPORT Blend_Point(const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const Standard_Real PC);
64   
65   //! Creates a point on two curves on surfaces, with tangents.
66   Standard_EXPORT Blend_Point(const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const Standard_Real PC1, const Standard_Real PC2, const gp_Vec& Tg1, const gp_Vec& Tg2, const gp_Vec2d& Tg12d, const gp_Vec2d& Tg22d);
67   
68   //! Creates a point on two curves on surfaces, with tangents.
69   Standard_EXPORT Blend_Point(const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const Standard_Real PC1, const Standard_Real PC2);
70   
71   //! Set the values for a point on 2 surfaces, with tangents.
72   Standard_EXPORT void SetValue (const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const gp_Vec& Tg1, const gp_Vec& Tg2, const gp_Vec2d& Tg12d, const gp_Vec2d& Tg22d);
73   
74   //! Set the values for a point on 2 surfaces, without tangents.
75   Standard_EXPORT void SetValue (const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2);
76   
77   //! Set the values for a point on a surface and a curve,
78   //! with tangents.
79   Standard_EXPORT void SetValue (const gp_Pnt& Pts, const gp_Pnt& Ptc, const Standard_Real Param, const Standard_Real U, const Standard_Real V, const Standard_Real W, const gp_Vec& Tgs, const gp_Vec& Tgc, const gp_Vec2d& Tg2d);
80   
81   //! Set the values for a point on a surface and a curve,
82   //! without tangents.
83   Standard_EXPORT void SetValue (const gp_Pnt& Pts, const gp_Pnt& Ptc, const Standard_Real Param, const Standard_Real U, const Standard_Real V, const Standard_Real W);
84   
85   //! Creates a point on a surface and a curve on surface,
86   //! with tangents.
87   Standard_EXPORT void SetValue (const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const Standard_Real PC, const gp_Vec& Tg1, const gp_Vec& Tg2, const gp_Vec2d& Tg12d, const gp_Vec2d& Tg22d);
88   
89   //! Creates a point on a surface and a curve on surface,
90   //! without tangents.
91   Standard_EXPORT void SetValue (const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const Standard_Real PC);
92   
93   //! Creates a point on two curves on surfaces, with tangents.
94   Standard_EXPORT void SetValue (const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const Standard_Real PC1, const Standard_Real PC2, const gp_Vec& Tg1, const gp_Vec& Tg2, const gp_Vec2d& Tg12d, const gp_Vec2d& Tg22d);
95   
96   //! Creates a point on two curves on surfaces, without tangents.
97   Standard_EXPORT void SetValue (const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, const Standard_Real PC1, const Standard_Real PC2);
98   
99   //! Creates a point on two curves.
100   Standard_EXPORT void SetValue (const gp_Pnt& Pt1, const gp_Pnt& Pt2, const Standard_Real Param, const Standard_Real PC1, const Standard_Real PC2);
101   
102   //! Changes parameter on existing point
103     void SetParameter (const Standard_Real Param);
104   
105     Standard_Real Parameter() const;
106   
107   //! Returns Standard_True if it was not possible to compute
108   //! the tangent vectors at PointOnS1 and/or PointOnS2.
109     Standard_Boolean IsTangencyPoint() const;
110   
111     const gp_Pnt& PointOnS1() const;
112   
113     const gp_Pnt& PointOnS2() const;
114   
115     void ParametersOnS1 (Standard_Real& U, Standard_Real& V) const;
116   
117     void ParametersOnS2 (Standard_Real& U, Standard_Real& V) const;
118   
119     const gp_Vec& TangentOnS1() const;
120   
121     const gp_Vec& TangentOnS2() const;
122   
123     gp_Vec2d Tangent2dOnS1() const;
124   
125     gp_Vec2d Tangent2dOnS2() const;
126   
127     const gp_Pnt& PointOnS() const;
128   
129     const gp_Pnt& PointOnC() const;
130   
131     void ParametersOnS (Standard_Real& U, Standard_Real& V) const;
132   
133     Standard_Real ParameterOnC() const;
134   
135     const gp_Vec& TangentOnS() const;
136   
137     const gp_Vec& TangentOnC() const;
138   
139     gp_Vec2d Tangent2d() const;
140   
141     const gp_Pnt& PointOnC1() const;
142   
143     const gp_Pnt& PointOnC2() const;
144   
145     Standard_Real ParameterOnC1() const;
146   
147     Standard_Real ParameterOnC2() const;
148   
149     const gp_Vec& TangentOnC1() const;
150   
151     const gp_Vec& TangentOnC2() const;
152
153
154
155
156 protected:
157
158
159
160
161
162 private:
163
164
165
166   gp_Pnt pt1;
167   gp_Pnt pt2;
168   gp_Vec tg1;
169   gp_Vec tg2;
170   Standard_Real prm;
171   Standard_Real u1;
172   Standard_Real v1;
173   Standard_Real u2;
174   Standard_Real v2;
175   Standard_Real pc1;
176   Standard_Real pc2;
177   Standard_Real utg12d;
178   Standard_Real vtg12d;
179   Standard_Real utg22d;
180   Standard_Real vtg22d;
181   Standard_Boolean hass1;
182   Standard_Boolean hass2;
183   Standard_Boolean hasc1;
184   Standard_Boolean hasc2;
185   Standard_Boolean istgt;
186
187
188 };
189
190
191 #include <Blend_Point.lxx>
192
193
194
195
196
197 #endif // _Blend_Point_HeaderFile