Warnings on vc14 were eliminated
[occt.git] / src / HLRBRep / HLRBRep_BCurveTool.lxx
1 // Created on: 1992-10-22
2 // Created by: Laurent BUCHARD
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 #include <GeomAbs_CurveType.hxx>
18 #include <GeomAbs_Shape.hxx>
19 #include <gp_Vec.hxx>
20 #include <gp_Lin.hxx>
21 #include <gp_Circ.hxx>
22 #include <gp_Elips.hxx>
23 #include <gp_Parab.hxx>
24 #include <gp_Hypr.hxx>
25 #include <BRepAdaptor_Curve.hxx>
26
27 //=======================================================================
28 //function : FirstParameter
29 //purpose  : 
30 //=======================================================================
31
32 inline Standard_Real
33 HLRBRep_BCurveTool::FirstParameter (const BRepAdaptor_Curve& C)
34 { return(C.FirstParameter()); }
35
36 //=======================================================================
37 //function : LastParameter
38 //purpose  : 
39 //=======================================================================
40
41 inline Standard_Real
42 HLRBRep_BCurveTool::LastParameter (const BRepAdaptor_Curve& C)
43 { return(C.LastParameter()); }
44
45 //=======================================================================
46 //function : Continuity
47 //purpose  : 
48 //=======================================================================
49
50 inline GeomAbs_Shape
51 HLRBRep_BCurveTool::Continuity (const BRepAdaptor_Curve& C)
52 { return(C.Continuity()); }
53
54 //=======================================================================
55 //function : NbIntervals
56 //purpose  : 
57 //=======================================================================
58
59 inline Standard_Integer
60 HLRBRep_BCurveTool::NbIntervals(const BRepAdaptor_Curve& C,
61                                 const GeomAbs_Shape Sh)
62 { return(C.NbIntervals(Sh)); }
63
64 //=======================================================================
65 //function : Intervals
66 //purpose  : 
67 //=======================================================================
68
69 inline void
70 HLRBRep_BCurveTool::Intervals(const BRepAdaptor_Curve& C,
71                               TColStd_Array1OfReal& Tab,
72                               const GeomAbs_Shape Sh)
73 { C.Intervals(Tab,Sh); }
74
75 //=======================================================================
76 //function : IsClosed
77 //purpose  : 
78 //=======================================================================
79
80 inline Standard_Boolean
81 HLRBRep_BCurveTool::IsClosed(const BRepAdaptor_Curve& C)
82 { return(C.IsClosed()); }
83
84 //=======================================================================
85 //function : IsPeriodic
86 //purpose  : 
87 //=======================================================================
88
89 inline Standard_Boolean
90 HLRBRep_BCurveTool::IsPeriodic(const BRepAdaptor_Curve& C)
91 { return(C.IsPeriodic()); }
92
93 //=======================================================================
94 //function : Period
95 //purpose  : 
96 //=======================================================================
97
98 inline Standard_Real
99 HLRBRep_BCurveTool::Period(const BRepAdaptor_Curve& C)
100 { return(C.Period()); }
101
102 //=======================================================================
103 //function : Value
104 //purpose  : 
105 //=======================================================================
106
107 inline gp_Pnt
108 HLRBRep_BCurveTool::Value (const BRepAdaptor_Curve& C,
109                            const Standard_Real U)
110 { return(C.Value(U)); }
111
112 //=======================================================================
113 //function : D0
114 //purpose  : 
115 //=======================================================================
116
117 inline void
118 HLRBRep_BCurveTool::D0(const BRepAdaptor_Curve& C,
119                        const Standard_Real U,
120                        gp_Pnt& P)
121 { C.D0(U,P); }
122
123 //=======================================================================
124 //function : D1
125 //purpose  : 
126 //=======================================================================
127
128 inline void
129 HLRBRep_BCurveTool::D1 (const BRepAdaptor_Curve& C,
130                         const Standard_Real U,
131                         gp_Pnt& P,
132                         gp_Vec& T)
133 { C.D1(U,P,T); }
134
135 inline void
136 HLRBRep_BCurveTool::D2 (const BRepAdaptor_Curve& C,
137                         const Standard_Real U,
138                         gp_Pnt& P,
139                         gp_Vec& T,
140                         gp_Vec& N)
141 { C.D2(U,P,T,N); }
142
143 //=======================================================================
144 //function : D3
145 //purpose  : 
146 //=======================================================================
147
148 inline void
149 HLRBRep_BCurveTool::D3 (const BRepAdaptor_Curve& C,
150                         const Standard_Real U,
151                         gp_Pnt& P,
152                         gp_Vec& V1,
153                         gp_Vec& V2,
154                         gp_Vec& V3)
155 { C.D3(U,P,V1,V2,V3); }
156
157 //=======================================================================
158 //function : DN
159 //purpose  : 
160 //=======================================================================
161
162 inline gp_Vec
163 HLRBRep_BCurveTool::DN (const BRepAdaptor_Curve& C,
164                         const Standard_Real U,
165                         const Standard_Integer N)
166 { return(C.DN(U,N)); }
167
168 //=======================================================================
169 //function : Resolution
170 //purpose  : 
171 //=======================================================================
172
173 inline Standard_Real
174 HLRBRep_BCurveTool::Resolution(const BRepAdaptor_Curve& C,
175                                const Standard_Real R3d)
176 { return(C.Resolution(R3d)); }
177
178 //=======================================================================
179 //function : GetType
180 //purpose  : 
181 //=======================================================================
182
183 inline GeomAbs_CurveType
184  HLRBRep_BCurveTool::GetType(const BRepAdaptor_Curve& C)
185 { return(C.GetType()); }
186
187 //=======================================================================
188 //function : Line
189 //purpose  : 
190 //=======================================================================
191
192 inline gp_Lin
193 HLRBRep_BCurveTool::Line (const BRepAdaptor_Curve& C)
194 { return(C.Line()); }
195
196 //=======================================================================
197 //function : Circle
198 //purpose  : 
199 //=======================================================================
200
201 inline gp_Circ
202 HLRBRep_BCurveTool::Circle (const BRepAdaptor_Curve& C)
203 { return(C.Circle()); }
204
205 //=======================================================================
206 //function : Ellipse
207 //purpose  : 
208 //=======================================================================
209
210 inline gp_Elips
211 HLRBRep_BCurveTool::Ellipse (const BRepAdaptor_Curve& C)
212 { return(C.Ellipse()); }
213
214 //=======================================================================
215 //function : Parabola
216 //purpose  : 
217 //=======================================================================
218
219 inline gp_Parab
220 HLRBRep_BCurveTool::Parabola (const BRepAdaptor_Curve& C)
221 { return(C.Parabola()); }
222
223 //=======================================================================
224 //function : Hyperbola
225 //purpose  : 
226 //=======================================================================
227
228 inline gp_Hypr
229 HLRBRep_BCurveTool::Hyperbola (const BRepAdaptor_Curve& C)
230 { return(C.Hyperbola()); }
231
232 //=======================================================================
233 //function : Degree
234 //purpose  : 
235 //=======================================================================
236
237 inline Standard_Integer
238 HLRBRep_BCurveTool::Degree (const BRepAdaptor_Curve& C)
239 { return(C.Degree()); }
240
241 //=======================================================================
242 //function : IsRational
243 //purpose  : 
244 //=======================================================================
245
246 inline Standard_Boolean
247 HLRBRep_BCurveTool::IsRational (const BRepAdaptor_Curve& C)
248 { return(C.IsRational()); }
249
250 //=======================================================================
251 //function : NbPoles
252 //purpose  : 
253 //=======================================================================
254
255 inline Standard_Integer
256 HLRBRep_BCurveTool::NbPoles (const BRepAdaptor_Curve& C)
257 { return(C.NbPoles()); }
258
259 //=======================================================================
260 //function : NbKnots
261 //purpose  : 
262 //=======================================================================
263
264 inline Standard_Integer
265 HLRBRep_BCurveTool::NbKnots(const BRepAdaptor_Curve& C)
266 { return(C.NbKnots()); }