1 -- Created on: 1995-01-12
2 -- Created by: Laurent BOURESCHE
3 -- Copyright (c) 1995-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class Linear from Law inherits Function from Law
19 ---Purpose: Describes an linear evolution law.
21 Array1OfReal from TColStd,
24 raises OutOfRange from Standard
30 returns Linear from Law;
31 ---Purpose: Constructs an empty linear evolution law.
33 Set(me: mutable; Pdeb,Valdeb,Pfin,Valfin: Real from Standard)
35 -- Defines this linear evolution law by assigning both:
36 -- - the bounds Pdeb and Pfin of the parameter, and
37 -- - the values Valdeb and Valfin of the function at these
38 -- two parametric bounds.
40 Continuity(me) returns Shape from GeomAbs
41 ---Purpose: Returns GeomAbs_CN
44 NbIntervals(me; S : Shape from GeomAbs) returns Integer
48 Intervals(me; T : in out Array1OfReal from TColStd;
49 S : Shape from GeomAbs)
51 OutOfRange from Standard
56 Value(me: mutable; X: Real from Standard)
58 returns Real from Standard;
59 ---Purpose: Returns the value of this function at the point of parameter X.
61 D1(me: mutable; X: Real from Standard; F,D: out Real from Standard);
63 -- Returns the value F and the first derivative D of this
64 -- function at the point of parameter X.
65 D2(me: mutable; X: Real from Standard;
66 F,D, D2: out Real from Standard);
67 ---Purpose: Returns the value, first and second derivatives
70 Trim(me; PFirst, PLast, Tol :Real from Standard) returns Function
72 ---Purpose: Returns a law equivalent of <me> between
73 -- parameters <First> and <Last>. <Tol> is used to
74 -- test for 3d points confusion.
75 -- It is usfule to determines the derivatives
76 -- in these values <First> and <Last> if
80 Bounds(me: mutable; PFirst,PLast: out Real from Standard);
81 ---Purpose: Returns the parametric bounds of the function.
85 valdeb : Real from Standard;
86 valfin : Real from Standard;
87 pdeb : Real from Standard;
88 pfin : Real from Standard;