Integration of OCCT 6.5.0 from SVN
[occt.git] / src / BRepBlend / BRepBlend_RstRstEvolRad.cdl
CommitLineData
7fd59977 1-- File: BRepBlend_RstRstEvolRad.cdl
2-- Created: Thu Feb 6 16:22:22 1997
3-- Author: Jacques GOUSSARD
4-- Author: Laurent BOURESCHE
5-- <lbo@pomalox.paris1.matra-dtv.fr>
6---Copyright: Matra Datavision 1997
7
8class RstRstEvolRad from BRepBlend
9inherits RstRstFunction from Blend
10
11
12uses Vector from math,
13 Matrix from math,
14 Ax1 from gp,
15 Vec from gp,
16 Vec2d from gp,
17 Pnt from gp,
18 Pnt2d from gp,
19 Circ from gp,
20 Array1OfPnt from TColgp,
21 Array1OfVec from TColgp,
22 Array1OfPnt2d from TColgp,
23 Array1OfVec2d from TColgp,
24 Array1OfReal from TColStd,
25 Array1OfInteger from TColStd,
26 Shape from GeomAbs,
27 Point from Blend,
28 SectionShape from BlendFunc,
29 HSurface from Adaptor3d,
30 HCurve from Adaptor3d,
31 HCurve2d from Adaptor2d,
32 CurveOnSurface from Adaptor3d,
33 ParameterisationType from Convert,
34 DecrochStatus from Blend,
35 Function from Law
36
37is
38
39 Create(Surf1 : HSurface from Adaptor3d;
40 Rst1 : HCurve2d from Adaptor2d;
41 Surf2 : HSurface from Adaptor3d;
42 Rst2 : HCurve2d from Adaptor2d;
43 CGuide : HCurve from Adaptor3d;
44 Evol : Function from Law)
45 returns RstRstEvolRad from BRepBlend;
46
47 NbVariables(me)
48 ---Purpose: Returns 2.
49 returns Integer from Standard;
50
51 NbEquations(me)
52 ---Purpose: Returns 2.
53 returns Integer from Standard;
54
55 Value(me: in out; X: Vector; F: out Vector)
56 ---Purpose: computes the values <F> of the Functions for the
57 -- variable <X>.
58 -- Returns True if the computation was done successfully,
59 -- False otherwise.
60 returns Boolean from Standard;
61
62 Derivatives(me: in out; X: Vector; D: out Matrix)
63 ---Purpose: returns the values <D> of the derivatives for the
64 -- variable <X>.
65 -- Returns True if the computation was done successfully,
66 -- False otherwise.
67 returns Boolean from Standard;
68
69 Values(me: in out; X: Vector; F: out Vector; D: out Matrix)
70 ---Purpose: returns the values <F> of the functions and the derivatives
71 -- <D> for the variable <X>.
72 -- Returns True if the computation was done successfully,
73 -- False otherwise.
74 returns Boolean from Standard;
75
76 Set(me : in out;
77 SurfRef1 : HSurface from Adaptor3d;
78 RstRef1 : HCurve2d from Adaptor2d;
79 SurfRef2 : HSurface from Adaptor3d;
80 RstRef2 : HCurve2d from Adaptor2d);
81
82 Set(me: in out; Param: Real from Standard);
83
84 Set(me: in out; First, Last: Real from Standard);
85 ---Purpose: Sets the bounds of the parametric interval on
86 -- the guide line.
87 -- This determines the derivatives in these values if the
88 -- function is not Cn.
89
90 GetTolerance(me; Tolerance: out Vector from math; Tol: Real from Standard);
91
92 GetBounds(me; InfBound,SupBound: out Vector from math);
93
94 IsSolution(me: in out; Sol: Vector from math; Tol: Real from Standard)
95 returns Boolean from Standard;
96
97 GetMinimalDistance(me)
98 ---Purpose: Returns the minimal Distance beetween two
99 -- extremitys of calculed sections.
100 returns Real from Standard
101 is redefined;
102
103--- TheFollowing methods are called only when
104-- IsSolution returns Standard_True.
105
106 PointOnRst1(me)
107 ---C++: return const&
108 returns Pnt from gp;
109
110 PointOnRst2(me)
111 ---C++: return const&
112 returns Pnt from gp;
113
114 Pnt2dOnRst1(me)
115 ---Purpose: Returns U,V coordinates of the point on the surface.
116 ---C++: return const&
117 returns Pnt2d from gp;
118
119 Pnt2dOnRst2(me)
120 ---Purpose: Returns U,V coordinates of the point on the curve on
121 -- surface.
122 ---C++: return const&
123 returns Pnt2d from gp;
124
125 ParameterOnRst1(me)
126 ---Purpose: Returns parameter of the point on the curve.
127 returns Real from Standard;
128
129 ParameterOnRst2(me)
130 ---Purpose: Returns parameter of the point on the curve.
131 returns Real from Standard;
132
133 IsTangencyPoint(me)
134 returns Boolean from Standard;
135
136 TangentOnRst1(me)
137 ---C++: return const&
138 returns Vec from gp;
139
140 Tangent2dOnRst1(me)
141 ---C++: return const&
142 returns Vec2d from gp;
143
144 TangentOnRst2(me)
145 ---C++: return const&
146 returns Vec from gp;
147
148 Tangent2dOnRst2(me)
149 ---C++: return const&
150 returns Vec2d from gp;
151
152 Decroch(me;
153 Sol : Vector from math;
154 NRst1, TgRst1 : out Vec from gp;
155 NRst2, TgRst2 : out Vec from gp)
156
157 ---Purpose: Enables implementation of a criterion of decrochage
158 -- specific to the function.
159 ---Warning: Can be called without previous call of issolution
160 -- but the calculated values risquent de ne pas avoir
161 -- grand sens.
162 returns DecrochStatus from Blend
163 is static;
164
165-- methodes hors template (en plus du create)
166
167 Set(me : in out;
168 Choix : Integer from Standard)
169 is static;
170
171 Set(me: in out; TypeSection: SectionShape from BlendFunc)
172 ---Purpose: Sets the type of section generation for the
173 -- approximations.
174 is static;
175
176 CenterCircleRst1Rst2(me;
177 PtRst1 : Pnt from gp;
178 PtRst2 : Pnt from gp;
179 np : Vec from gp;
180 Center : out Pnt from gp;
181 VdMed : out Vec from gp)
182 ---Purpose: Gives the center of circle defined by PtRst1, PtRst2 and
183 -- radius ray.
184 returns Boolean from Standard
185 is static;
186
187 Section(me : in out;
188 Param : Real from Standard;
189 U,V : Real from Standard;
190 Pdeb,Pfin : out Real from Standard;
191 C : out Circ from gp)
192 is static;
193
194-- Methods for the approximation
195--
196 IsRational(me) returns Boolean
197 ---Purpose: Returns if the section is rationnal
198 is static;
199
200 GetSectionSize(me) returns Real
201 ---Purpose: Returns the length of the maximum section
202 is static;
203
204 GetMinimalWeight(me; Weigths : out Array1OfReal from TColStd)
205 ---Purpose: Compute the minimal value of weight for each poles
206 -- of all sections.
207 is static;
208
209 NbIntervals(me; S : Shape from GeomAbs) returns Integer
210 ---Purpose: Returns the number of intervals for continuity
211 -- <S>. May be one if Continuity(me) >= <S>
212 is static;
213
214 Intervals(me; T : in out Array1OfReal from TColStd;
215 S : Shape from GeomAbs)
216 ---Purpose: Stores in <T> the parameters bounding the intervals
217 -- of continuity <S>.
218 -- The array must provide enough room to accomodate
219 -- for the parameters. i.e. T.Length() > NbIntervals()
220 is static;
221
222 GetShape(me : in out;
223 NbPoles : out Integer from Standard;
224 NbKnots : out Integer from Standard;
225 Degree : out Integer from Standard;
226 NbPoles2d : out Integer from Standard)
227 is static;
228
229 GetTolerance(me;
230 BoundTol, SurfTol, AngleTol : Real;
231 Tol3d : out Vector;
232 Tol1D : out Vector )
233 ---Purpose: Returns the tolerance to reach in approximation
234 -- to respecte
235 -- BoundTol error at the Boundary
236 -- AngleTol tangent error at the Boundary
237 -- SurfTol error inside the surface.
238 is static;
239
240 Knots(me: in out; TKnots: out Array1OfReal from TColStd)
241 is static;
242
243 Mults(me: in out; TMults: out Array1OfInteger from TColStd)
244 is static;
245
246 Section(me : in out ;
247 P : Point from Blend;
248 Poles : out Array1OfPnt from TColgp;
249 DPoles : out Array1OfVec from TColgp;
250 Poles2d : out Array1OfPnt2d from TColgp;
251 DPoles2d : out Array1OfVec2d from TColgp;
252 Weigths : out Array1OfReal from TColStd;
253 DWeigths : out Array1OfReal from TColStd)
254 ---Purpose: Used for the first and last section
255 returns Boolean from Standard
256 is static;
257
258 Section(me : in out ;
259 P : Point from Blend;
260 Poles : out Array1OfPnt from TColgp;
261 Poles2d : out Array1OfPnt2d from TColgp;
262 Weigths : out Array1OfReal from TColStd)
263 is static;
264
265
266 Section(me: in out; P: Point from Blend;
267 Poles : out Array1OfPnt from TColgp;
268 DPoles : out Array1OfVec from TColgp;
269 D2Poles : out Array1OfVec from TColgp;
270 Poles2d : out Array1OfPnt2d from TColgp;
271 DPoles2d : out Array1OfVec2d from TColgp;
272 D2Poles2d : out Array1OfVec2d from TColgp;
273 Weigths : out Array1OfReal from TColStd;
274 DWeigths : out Array1OfReal from TColStd;
275 D2Weigths : out Array1OfReal from TColStd)
276 ---Purpose: Used for the first and last section
277 -- The method returns Standard_True if the derivatives
278 -- are computed, otherwise it returns Standard_False.
279 returns Boolean from Standard
280 is static;
281
282 Resolution(me;
283 IC2d : Integer from Standard;
284 Tol : Real from Standard;
285 TolU, TolV : out Real from Standard);
286
287fields
288
289 surf1 : HSurface from Adaptor3d;
290 surf2 : HSurface from Adaptor3d;
291 rst1 : HCurve2d from Adaptor2d;
292 rst2 : HCurve2d from Adaptor2d;
293 cons1 : CurveOnSurface from Adaptor3d;
294 cons2 : CurveOnSurface from Adaptor3d;
295 guide : HCurve from Adaptor3d;
296 tguide : HCurve from Adaptor3d;
297 ptrst1 : Pnt from gp;
298 ptrst2 : Pnt from gp;
299 pt2drst1 : Pnt2d from gp;
300 pt2drst2 : Pnt2d from gp;
301 prmrst1 : Real from Standard;
302 prmrst2 : Real from Standard;
303 istangent: Boolean from Standard;
304 tgrst1 : Vec from gp;
305 tg2drst1 : Vec2d from gp;
306 tgrst2 : Vec from gp;
307 tg2drst2 : Vec2d from gp;
308
309 ray : Real from Standard;
310 dray : Real from Standard;
311 choix : Integer from Standard;
312 ptgui : Pnt from gp;
313 d1gui : Vec from gp;
314 d2gui : Vec from gp;
315 nplan : Vec from gp;
316 normtg : Real from Standard;
317 theD : Real from Standard;
318
319 surfref1 : HSurface from Adaptor3d;
320 rstref1 : HCurve2d from Adaptor2d;
321 surfref2 : HSurface from Adaptor3d;
322 rstref2 : HCurve2d from Adaptor2d;
323 maxang : Real from Standard;
324 minang : Real from Standard;
325 distmin : Real from Standard;
326 mySShape : SectionShape from BlendFunc;
327 myTConv : ParameterisationType from Convert;
328 tevol : Function from Law ;
329 fevol : Function from Law ;
330
331end RstRstEvolRad;
332
333
334
335
336
337
338
339
340